pub struct Shapefile { /* private fields */ }Expand description
One opened shapefile (.shp + .shx + .dbf + optional .prj).
Implementations§
Source§impl Shapefile
impl Shapefile
pub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn schema(&self) -> &Schema
pub fn feature_count(&self) -> usize
pub fn shape_type(&self) -> ShapeType
Sourcepub fn read(&self) -> FeatureIter<'_> ⓘ
pub fn read(&self) -> FeatureIter<'_> ⓘ
Iterate features in record order. Lazy — each step does one shape decode + one DBF row decode.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shapefile
impl RefUnwindSafe for Shapefile
impl Send for Shapefile
impl Sync for Shapefile
impl Unpin for Shapefile
impl UnsafeUnpin for Shapefile
impl UnwindSafe for Shapefile
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