Struct geozero::geojson::GeoJsonWriter
source · pub struct GeoJsonWriter<W: Write> { /* private fields */ }
Expand description
GeoJSON writer.
Implementations§
source§impl<W: Write> GeoJsonWriter<W>
impl<W: Write> GeoJsonWriter<W>
pub fn new(out: W) -> Self
pub fn with_dims(out: W, dims: CoordDimensions) -> Self
Trait Implementations§
source§impl<W: Write> FeatureProcessor for GeoJsonWriter<W>
impl<W: Write> FeatureProcessor for GeoJsonWriter<W>
source§impl<W: Write> GeomProcessor for GeoJsonWriter<W>
impl<W: Write> GeomProcessor for GeoJsonWriter<W>
source§fn dimensions(&self) -> CoordDimensions
fn dimensions(&self) -> CoordDimensions
Additional dimensions requested when processing coordinates
source§fn 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
source§fn 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
source§fn empty_point(&mut self, idx: usize) -> Result<()>
fn empty_point(&mut self, idx: usize) -> Result<()>
Process empty coordinates, like WKT’s
POINT EMPTY
Read moresource§fn 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
source§fn multipoint_end(&mut self, _idx: usize) -> Result<()>
fn multipoint_end(&mut self, _idx: usize) -> Result<()>
End of MultiPoint processing Read more
source§fn 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 moresource§fn linestring_end(&mut self, tagged: bool, _idx: usize) -> Result<()>
fn linestring_end(&mut self, tagged: bool, _idx: usize) -> Result<()>
End of
LineString
processingsource§fn multilinestring_begin(&mut self, _size: usize, idx: usize) -> Result<()>
fn multilinestring_begin(&mut self, _size: usize, idx: usize) -> Result<()>
Begin of
MultiLineString
processing Read moresource§fn multilinestring_end(&mut self, _idx: usize) -> Result<()>
fn multilinestring_end(&mut self, _idx: usize) -> Result<()>
End of
MultiLineString
processingsource§fn 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 moresource§fn multipolygon_begin(&mut self, _size: usize, idx: usize) -> Result<()>
fn multipolygon_begin(&mut self, _size: usize, idx: usize) -> Result<()>
Begin of
MultiPolygon
processing Read moresource§fn geometrycollection_begin(&mut self, _size: usize, idx: usize) -> Result<()>
fn geometrycollection_begin(&mut self, _size: usize, idx: usize) -> Result<()>
Begin of
GeometryCollection
processing Read moresource§fn geometrycollection_end(&mut self, _idx: usize) -> Result<()>
fn geometrycollection_end(&mut self, _idx: usize) -> Result<()>
End of
GeometryCollection
processingsource§fn circularstring_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn circularstring_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of
CircularString
processing Read moresource§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§fn polyhedralsurface_end(&mut self, idx: usize) -> Result<()>
fn polyhedralsurface_end(&mut self, idx: usize) -> Result<()>
End of PolyhedralSurface processing
source§impl<W: Write> PropertyProcessor for GeoJsonWriter<W>
impl<W: Write> PropertyProcessor for GeoJsonWriter<W>
Auto Trait Implementations§
impl<W> RefUnwindSafe for GeoJsonWriter<W>where
W: RefUnwindSafe,
impl<W> Send for GeoJsonWriter<W>where
W: Send,
impl<W> Sync for GeoJsonWriter<W>where
W: Sync,
impl<W> Unpin for GeoJsonWriter<W>where
W: Unpin,
impl<W> UnwindSafe for GeoJsonWriter<W>where
W: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more