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 (
Geography
or array_like) – Geography object(s).- Returns:
type_id (
int
or array) – The type id(s) of the input geography object(s). See also thevalue
property of theGeographyType
enumeration.
See also