spherely.get_type_id#
- spherely.get_type_id(geography, /)#
Returns the type ID of a geography.
None (missing) is -1
POINT is 0
LINESTRING is 1
POLYGON is 2
MULTIPOINT is 3
MULTILINESTRING is 4
MULTIPOLYGON is 5
GEOMETRYCOLLECTION is 6
- Parameters:
geography (
Geographyor array_like) – Geography object(s).- Returns:
type_id (
intor array) – The type id(s) of the input geography object(s). See also thevalueproperty of theGeographyTypeenumeration.
See also