@property
    def dimension(self):
        return get_dims(self._ptr)
Returns 0 for points, 1 for lines, and 2 for surfaces.
dataset/ETHPy150Open dcramer/django-compositepks/django/contrib/gis/gdal/geometries.py/OGRGeometry.dimension