Struct geozero::geojson::GeoJsonWriter
source · [−]pub struct GeoJsonWriter<'a, W: Write> {
pub dims: CoordDimensions,
/* private fields */
}
Expand description
GeoJSON writer.
Fields
dims: CoordDimensions
Implementations
sourceimpl<'a, W: Write> GeoJsonWriter<'a, W>
impl<'a, W: Write> GeoJsonWriter<'a, W>
pub fn new(out: &'a mut W) -> GeoJsonWriter<'a, W>
Trait Implementations
sourceimpl<W: Write> FeatureProcessor for GeoJsonWriter<'_, W>
impl<W: Write> FeatureProcessor for GeoJsonWriter<'_, W>
sourcefn dataset_end(&mut self) -> Result<()>
fn dataset_end(&mut self) -> Result<()>
End of dataset processing
sourcefn feature_begin(&mut self, idx: u64) -> Result<()>
fn feature_begin(&mut self, idx: u64) -> Result<()>
Begin of feature processing
sourcefn feature_end(&mut self, _idx: u64) -> Result<()>
fn feature_end(&mut self, _idx: u64) -> Result<()>
End of feature processing
sourcefn properties_begin(&mut self) -> Result<()>
fn properties_begin(&mut self) -> Result<()>
Begin of feature property processing
sourcefn properties_end(&mut self) -> Result<()>
fn properties_end(&mut self) -> Result<()>
End of feature property processing
sourcefn geometry_begin(&mut self) -> Result<()>
fn geometry_begin(&mut self) -> Result<()>
Begin of feature geometry processing
sourcefn geometry_end(&mut self) -> Result<()>
fn geometry_end(&mut self) -> Result<()>
End of feature geometry processing
sourceimpl<W: Write> GeomProcessor for GeoJsonWriter<'_, W>
impl<W: Write> GeomProcessor for GeoJsonWriter<'_, W>
sourcefn dimensions(&self) -> CoordDimensions
fn dimensions(&self) -> CoordDimensions
Additional dimensions requested when processing coordinates
sourcefn xy(&mut self, x: f64, y: f64, idx: usize) -> Result<()>
fn xy(&mut self, x: f64, y: f64, idx: usize) -> Result<()>
Process coordinate with x,y dimensions
sourcefn coordinate(
&mut self,
x: f64,
y: f64,
z: Option<f64>,
_m: Option<f64>,
_t: Option<f64>,
_tm: Option<u64>,
idx: usize
) -> Result<()>
fn coordinate(
&mut self,
x: f64,
y: f64,
z: Option<f64>,
_m: Option<f64>,
_t: Option<f64>,
_tm: Option<u64>,
idx: usize
) -> Result<()>
Process coordinate with all requested dimensions
sourcefn multipoint_begin(&mut self, _size: usize, idx: usize) -> Result<()>
fn multipoint_begin(&mut self, _size: usize, idx: usize) -> Result<()>
Begin of MultiPoint processing Read more
sourcefn multipoint_end(&mut self, _idx: usize) -> Result<()>
fn multipoint_end(&mut self, _idx: usize) -> Result<()>
End of MultiPoint processing
sourcefn linestring_begin(
&mut self,
tagged: bool,
_size: usize,
idx: usize
) -> Result<()>
fn linestring_begin(
&mut self,
tagged: bool,
_size: usize,
idx: usize
) -> Result<()>
Begin of LineString processing Read more
sourcefn linestring_end(&mut self, tagged: bool, _idx: usize) -> Result<()>
fn linestring_end(&mut self, tagged: bool, _idx: usize) -> Result<()>
End of LineString processing
sourcefn multilinestring_begin(&mut self, _size: usize, idx: usize) -> Result<()>
fn multilinestring_begin(&mut self, _size: usize, idx: usize) -> Result<()>
Begin of MultiLineString processing Read more
sourcefn multilinestring_end(&mut self, _idx: usize) -> Result<()>
fn multilinestring_end(&mut self, _idx: usize) -> Result<()>
End of MultiLineString processing
sourcefn polygon_begin(
&mut self,
tagged: bool,
_size: usize,
idx: usize
) -> Result<()>
fn polygon_begin(
&mut self,
tagged: bool,
_size: usize,
idx: usize
) -> Result<()>
Begin of Polygon processing Read more
sourcefn multipolygon_begin(&mut self, _size: usize, idx: usize) -> Result<()>
fn multipolygon_begin(&mut self, _size: usize, idx: usize) -> Result<()>
Begin of MultiPolygon processing Read more
sourcefn multipolygon_end(&mut self, _idx: usize) -> Result<()>
fn multipolygon_end(&mut self, _idx: usize) -> Result<()>
End of MultiPolygon processing
sourcefn empty_point(&mut self, idx: usize) -> Result<()>
fn empty_point(&mut self, idx: usize) -> Result<()>
Process empty coordinates, like WKT’s POINT EMPTY
sourcefn geometrycollection_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn geometrycollection_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of GeometryCollection processing
sourcefn geometrycollection_end(&mut self, idx: usize) -> Result<()>
fn geometrycollection_end(&mut self, idx: usize) -> Result<()>
End of GeometryCollection processing
sourcefn circularstring_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn circularstring_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of CircularString processing Read more
sourcefn circularstring_end(&mut self, idx: usize) -> Result<()>
fn circularstring_end(&mut self, idx: usize) -> Result<()>
End of CircularString processing
sourcefn compoundcurve_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn compoundcurve_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of CompoundCurve processing Read more
sourcefn compoundcurve_end(&mut self, idx: usize) -> Result<()>
fn compoundcurve_end(&mut self, idx: usize) -> Result<()>
End of CompoundCurve processing
sourcefn curvepolygon_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn curvepolygon_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of CurvePolygon processing Read more
sourcefn curvepolygon_end(&mut self, idx: usize) -> Result<()>
fn curvepolygon_end(&mut self, idx: usize) -> Result<()>
End of CurvePolygon processing
sourcefn multicurve_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn multicurve_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of MultiCurve processing Read more
sourcefn multicurve_end(&mut self, idx: usize) -> Result<()>
fn multicurve_end(&mut self, idx: usize) -> Result<()>
End of MultiCurve processing
sourcefn multisurface_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn multisurface_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of MultiSurface processing Read more
sourcefn multisurface_end(&mut self, idx: usize) -> Result<()>
fn multisurface_end(&mut self, idx: usize) -> Result<()>
End of MultiSurface processing
sourcefn triangle_begin(
&mut self,
tagged: bool,
size: usize,
idx: usize
) -> Result<()>
fn triangle_begin(
&mut self,
tagged: bool,
size: usize,
idx: usize
) -> Result<()>
Begin of Triangle processing Read more
sourcefn polyhedralsurface_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn polyhedralsurface_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of PolyhedralSurface processing Read more
sourcefn polyhedralsurface_end(&mut self, idx: usize) -> Result<()>
fn polyhedralsurface_end(&mut self, idx: usize) -> Result<()>
End of PolyhedralSurface processing
sourceimpl<W: Write> PropertyProcessor for GeoJsonWriter<'_, W>
impl<W: Write> PropertyProcessor for GeoJsonWriter<'_, W>
Auto Trait Implementations
impl<'a, W> RefUnwindSafe for GeoJsonWriter<'a, W> where
W: RefUnwindSafe,
impl<'a, W> Send for GeoJsonWriter<'a, W> where
W: Send,
impl<'a, W> Sync for GeoJsonWriter<'a, W> where
W: Sync,
impl<'a, W> Unpin for GeoJsonWriter<'a, W>
impl<'a, W> !UnwindSafe for GeoJsonWriter<'a, W>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more