isogeo_pysdk.enums.search_filters_georelations module

Isogeo API v1 - Enums for Search geographic filter’s geometric relationship

class isogeo_pysdk.enums.search_filters_georelations.SearchGeoRelations[source]

Bases: enum.Enum

Closed list of accepted geometric relationship as search filters.

Example:
>>> # parse members and values
>>> print("{0:<30} {1:>20}".format("Enum", "Value"))
>>> for i in SearchGeoRelations:
>>>     print("{0:<30} {1:>20}".format(i, i.value))
Enum                                          Value
SearchGeoRelations.contains                       1
SearchGeoRelations.disjoint                       2
SearchGeoRelations.equal                          3
SearchGeoRelations.intersects                     4
SearchGeoRelations.overlaps                       5
SearchGeoRelations.within                         6
>>> # check if a var is an accepted value
>>> print("contains" in SearchGeoRelations.__members__)
True
>>> print("Overlaps" in SearchGeoRelations.__members__)  # case sensitive
False
>>> print("crosses" in SearchGeoRelations.__members__)
False

See: https://docs.python.org/3/library/enum.html

contains = 1
disjoint = 2
equal = 3
has_value = <bound method SearchGeoRelations.has_value of <enum 'SearchGeoRelations'>>[source]
intersects = 4
overlaps = 5
within = 6