Beispiel #1
0
 def envelope(self):
     "Returns the envelope for this Geometry."
     # TODO: Fix Envelope() for Point geometries.
     return Envelope(capi.get_envelope(self.ptr, byref(OGREnvelope())))
Beispiel #2
0
 def envelope(self):
     "Returns the envelope for this Geometry."
     # TODO: Fix Envelope() for Point geometries.
     return Envelope(capi.get_envelope(self.ptr, byref(OGREnvelope())))
Beispiel #3
0
<<<<<<< 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)

    @property
    def extent(self):
<<<<<<< HEAD
        "Returns the envelope as a 4-tuple, instead of as an Envelope object."
=======
        "Return the envelope as a 4-tuple, instead of as an Envelope object."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return self.envelope.tuple

    # #### SpatialReference-related Properties ####