Example #1
0
 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))
Example #2
0
 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))
Example #3
0
 def geom_type(self):
     "Returns the Type for this Geometry."
     return OGRGeomType(capi.get_geom_type(self.ptr))
Example #4
0
 def geom_type(self):
     "Returns the Type for this Geometry."
     return OGRGeomType(capi.get_geom_type(self.ptr))
Example #5
0
    def num_coords(self):
<<<<<<< HEAD
        "Alais for `point_count`."
=======
        "Alias for `point_count`."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return self.point_count

    @property
    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."
=======