pub struct ShapefileWriter { /* private fields */ }Expand description
Shapefile writer that coordinates .shp, .dbf, and .shx files
Implementations§
Source§impl ShapefileWriter
impl ShapefileWriter
Sourcepub fn new<P: AsRef<Path>>(
base_path: P,
shape_type: ShapeType,
field_descriptors: Vec<FieldDescriptor>,
) -> Result<Self>
pub fn new<P: AsRef<Path>>( base_path: P, shape_type: ShapeType, field_descriptors: Vec<FieldDescriptor>, ) -> Result<Self>
Creates a new Shapefile writer
Sourcepub fn write_features(&mut self, features: &[ShapefileFeature]) -> Result<()>
pub fn write_features(&mut self, features: &[ShapefileFeature]) -> Result<()>
Writes features to the Shapefile
Sourcepub fn write_oxigdal_features(&mut self, features: &[Feature]) -> Result<()>
pub fn write_oxigdal_features(&mut self, features: &[Feature]) -> Result<()>
Writes OxiGDAL features to the Shapefile
Auto Trait Implementations§
impl Freeze for ShapefileWriter
impl RefUnwindSafe for ShapefileWriter
impl Send for ShapefileWriter
impl Sync for ShapefileWriter
impl Unpin for ShapefileWriter
impl UnsafeUnpin for ShapefileWriter
impl UnwindSafe for ShapefileWriter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more