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