spherely.get_dimensions

Contents

spherely.get_dimensions#

spherely.get_dimensions(geography: Geography | array_like) object#

Returns the inherent dimensionality of a geography.

The inherent dimension is 0 for points, 1 for linestrings and 2 for polygons. For geometrycollections it is the max of the containing elements. Empty collections and None values return -1.

Parameters:

geography (Geography or array_like) – Geography object(s)