예제 #1
0
파일: geometries.py 프로젝트: gimo/django
 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))
예제 #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))
예제 #3
0
파일: geometries.py 프로젝트: 007lva/mmddpp
 def geom_name(self):
     "Returns the Name of this Geometry."
     return capi.get_geom_name(self.ptr)
예제 #4
0
 def geom_name(self):
     "Returns the Name of this Geometry."
     return capi.get_geom_name(self.ptr)
예제 #5
0
    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."
=======