コード例 #1
0
ファイル: geometries.py プロジェクト: huicheese/Django-test3
 def area(self):
     "Returns the area for a LinearRing, Polygon, or MultiPolygon; 0 otherwise."
     return capi.get_area(self.ptr)
コード例 #2
0
ファイル: geometries.py プロジェクト: 007lva/mmddpp
 def area(self):
     "Returns the area for a LinearRing, Polygon, or MultiPolygon; 0 otherwise."
     return capi.get_area(self.ptr)
コード例 #3
0
    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."
=======
        "Return the envelope for this Geometry."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        # TODO: Fix Envelope() for Point geometries.
        return Envelope(capi.get_envelope(self.ptr, byref(OGREnvelope())))

    @property
    def empty(self):
        return capi.is_empty(self.ptr)