pub fn into_feature(&mut self, geom_data: GeomData) -> Feature {
        let mut feature = Tile_Feature::new();
        feature.set_field_type(match geom_data.geom_type() {
            GeomType::Point => Tile_GeomType::POINT,
            GeomType::Linestring => Tile_GeomType::LINESTRING,
            GeomType::Polygon => Tile_GeomType::POLYGON,
        });
        feature.set_geometry(geom_data.into_vec());
        Feature {
            feature,
            layer: self,
        }
    }
/// Create a new feature, giving it ownership of the layer.
///
/// * `geom_data` Geometry data (consumed by this method).
Create a new feature, giving it ownership of the layer.
`geom_data` Geometry data (consumed by this method).
Create a new feature giving it ownership of the layer . ` geom_data ` Geometry data ( consumed by this method ) .
pub fn into_feature(&mut self, geom_data: GeomData) -> Feature {
        let mut feature = Tile_Feature::new();
        feature.set_field_type(match geom_data.geom_type() {
            GeomType::Point => Tile_GeomType::POINT,
            GeomType::Linestring => Tile_GeomType::LINESTRING,
            GeomType::Polygon => Tile_GeomType::POLYGON,
        });
        feature.set_geometry(geom_data.into_vec());
        Feature {
            feature,
            layer: self,
        }
    }
pub fn into_feature ( & mut self , geom_data : GeomData ) -> Feature { let mut feature = Tile_Feature :: new ( ) ; feature . set_field_type ( match geom_data . geom_type ( ) { GeomType :: Point => Tile_GeomType :: POINT , GeomType :: Linestring => Tile_GeomType :: LINESTRING , GeomType :: Polygon => Tile_GeomType :: POLYGON , } ) ; feature . set_geometry ( geom_data . into_vec ( ) ) ; Feature { feature , layer : self , } }
Create a new feature, giving it ownership of the layer.
Create a new feature giving it ownership of the layer .
&mut self
geom_data
GeomData