Пример #1
0
 def geom_type(self):
     "Return the OGR Geometry Type for this Feature."
     return OGRGeomType(capi.get_fd_geom_type(self._layer._ldefn))
Пример #2
0
 def geom_type(self):
     "Returns the geometry type (OGRGeomType) of the Layer."
     return OGRGeomType(get_fd_geom_type(self._ldefn))
Пример #3
0
 def geom_type(self):
     "Returns the OGR Geometry Type for this Feture."
     return OGRGeomType(capi.get_fd_geom_type(self._fdefn))
Пример #4
0
    @property
    def geom(self):
        "Return the OGR Geometry for this Feature."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        # Retrieving the geometry pointer for the feature.
        geom_ptr = capi.get_feat_geom_ref(self.ptr)
        return OGRGeometry(geom_api.clone_geom(geom_ptr))

    @property
    def geom_type(self):
<<<<<<< HEAD
        "Returns the OGR Geometry Type for this Feture."
=======
        "Return the OGR Geometry Type for this Feture."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return OGRGeomType(capi.get_fd_geom_type(self._layer._ldefn))

    # #### Feature Methods ####
    def get(self, field):
        """
<<<<<<< HEAD
        Returns the value of the field, instead of an instance of the Field
=======
        Return the value of the field, instead of an instance of the Field
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        object.  May take a string of the field name or a Field object as
        parameters.
        """
        field_name = getattr(field, 'name', field)
        return self[field_name].value