Пример #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(capi.get_fd_geom_type(self._ldefn))
Пример #3
0
 def geom_type(self):
     "Return the OGR Geometry Type for this Feture."
     return OGRGeomType(capi.get_fd_geom_type(self._layer._ldefn))
Пример #4
0
 def geom_type(self):
     "Returns the geometry type (OGRGeomType) of the Layer."
     return OGRGeomType(capi.get_fd_geom_type(self._ldefn))
Пример #5
0
 def geom_type(self):
     "Returns the OGR Geometry Type for this Feture."
     return OGRGeomType(capi.get_fd_geom_type(self._fdefn))
Пример #6
0
from django.contrib.gis.gdal.base import GDALBase
Пример #7
0
 def geom_type(self):
     "Returns the OGR Geometry Type for this Feture."
     return OGRGeomType(get_fd_geom_type(self._fdefn))
Пример #8
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
Пример #9
0
from ctypes import byref, c_double