def geom_type(self): "Returns the Type for this Geometry." try: return OGRGeomType(capi.get_geom_type(self.ptr)) except OGRException: # VRT datasources return an invalid geometry type # number, but a valid name -- we'll try that instead. # See: http://trac.osgeo.org/gdal/ticket/2491 return OGRGeomType(capi.get_geom_name(self.ptr))
def geom_type(self): "Returns the Type for this Geometry." try: return OGRGeomType(capi.get_geom_type(self.ptr)) except OGRException: # VRT datasources return an invalid geometry type # number, but a valid name -- we'll try that instead. # See: http://trac.osgeo.org/gdal/ticket/2491 return OGRGeomType(capi.get_geom_name(self.ptr))
def geom_name(self): "Returns the Name of this Geometry." return capi.get_geom_name(self.ptr)
def geom_name(self): "Returns the Name of this Geometry." return capi.get_geom_name(self.ptr)
def geom_type(self): <<<<<<< HEAD "Returns the Type for this Geometry." ======= "Return the Type for this Geometry." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 return OGRGeomType(capi.get_geom_type(self.ptr)) @property def geom_name(self): <<<<<<< HEAD "Returns the Name of this Geometry." ======= "Return the Name of this Geometry." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 return capi.get_geom_name(self.ptr) @property def area(self): <<<<<<< HEAD "Returns the area for a LinearRing, Polygon, or MultiPolygon; 0 otherwise." ======= "Return the area for a LinearRing, Polygon, or MultiPolygon; 0 otherwise." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 return capi.get_area(self.ptr) @property def envelope(self): <<<<<<< HEAD "Returns the envelope for this Geometry." =======