spherely.get_dimension#
- spherely.get_dimension(geography, /)#
Returns the inherent dimensionality of a geography.
- Parameters:
geography (
Geography
or array_like) – Geography object(s).- Returns:
int
or array – The inherent dimension is 0 for points, 1 for linestrings and 2 for polygons. For geometrycollections it is either the max of the containing elements or -1 for empty collections.