Skip to main content

Module vector

Module vector 

Source
Expand description

Vector format conversion utilities

Provides format-to-format vector conversion with optional attribute filtering. Supports GeoJSON, Shapefile, and FlatGeobuf as input and output formats.

Structs§

AttributeFilter
Attribute filter: matches a named field against a value using an operator.

Enums§

FilterOp
Attribute filter operator.
VectorFormat
Supported vector output formats for CLI conversion.

Functions§

convert_vector
Convert a vector dataset between supported formats.
core_geom_to_geojson
Convert a core geometry to a GeoJSON geometry.
geojson_geom_to_core
Convert a GeoJSON geometry (oxigeo_geojson::Geometry) to a core geometry (oxigeo_core::vector::Geometry). Returns an error if coordinates are malformed.
infer_shapefile_schema_from_geojson
Infer the ShapeType and FieldDescriptors from a slice of Shapefile features. Used when the input is GeoJSON and output is Shapefile.
infer_shapefile_schema_from_shapefiles
Infer the ShapeType and FieldDescriptors from core vector features (used for Shapefile-to-Shapefile passthrough is not needed here; used for Shapefile→FGB schema inference via core).