pub struct GeomEncoder { /* fields omitted */ }
Encoder for Feature geometry. This can consist of
Point, Linestring or Polygon data.
let geom_data = GeomEncoder::new(GeomType::Point, Transform::new())
.add_point(0.0, 0.0)
.add_point(10.0, 0.0)
.encode()?;
Create a new geometry encoder.
geom_tp
Geometry type.
transform
Transform to apply to geometry.
Complete the current geometry (for multilinestring / multipolygon).
Encode the geometry data, consuming the encoder.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)