vector library
Text and binary formats for vector data (features, geometries, coordinates).
Key features:
- positions, position arrays and bounding boxes based on coordinate arrays
- text format writers and parsers for features, geometries, coordinates,
properties:
- supported formats: GeoJSON
- text format writers and parsers for geometries and coordinates:
- supported formats: WKT
- binary format encoders and decoders for geometries:
- supported formats: WKB
This libary exports a subset of package:geobase/geobase.dart
.
Usage: import package:geobase/vector.dart
Classes
- BoxCoords
- A geospatial bounding box as an iterable collection of coordinate values.
- ContentDecoder
- An interface to decode content from a text or binary format.
-
ContentEncoder<
Content extends Object> -
An interface to encode
Content
into a text or binary format. - Coordinates
- Geospatial coordinate values as an iterable collection of double values.
- DefaultFormat
- The "default" text format for coordinate and geometry objects.
- GeoJSON
- The GeoJSON text format for coordinate, geometry and feature objects.
- GeoJsonConf
- Optional configuration parameters for formatting (and parsing) GeoJSON.
- PositionArray
- Coordinate values of geospatial positions as an iterable collection.
- PositionCoords
- A position as an iterable collection of coordinate values.
- SimpleGeometryContent
- An interface to write simple geometry data to format encoders and object builders.
-
TextReaderFormat<
Content extends Object> -
An interface to access text format decoders (readers) for
Content
. -
TextWriterFormat<
Content extends Object> -
An interface to access text format encoders (writers) for
Content
. - WKB
- The Well-known binary (WKB) format, see geometry for accessing the format.
- WKT
- The WKT text format for coordinate and geometry objects.
- WktLikeFormat
- The WKT (like) text format for coordinate and geometry objects.
Enums
- Geom
- An enum for geometry types.
Mixins
-
BinaryFormat<
Content extends Object> -
A mixin to access binary format encoders and decoders for
Content
- CoordinateContent
- An interface to write coordinate data to format encoders and object builders.
- FeatureContent
- An interface to write geospatial feature objects to format encoders and object builders.
- GeometryContent
- An interface to write geometry data to format encoders and object builders.
-
TextFormat<
Content extends Object> -
A mixin to access text format encoders and decoders for
Content
.
Extensions
- BoxCoordinatesExtension on Box
- A helper extension on Box to convert position objects between subtypes like ProjBox, GeoBox and BoxCoords.
- PositionCoordinatesExtension on Position
- A helper extension on Position to convert position objects between subtypes like Projected, Geographic and PositionCoords.
-
PositionIterableCoordinatesExtension
on Iterable<
Position> -
A helper extension on
Iterable<Position>
to convert data as PositionArray.
Typedefs
- WriteFeatures = void Function(FeatureContent output)
-
A function to write geospatial feature objects to
output
. - WriteGeometries = void Function(GeometryContent output)
-
A function to write geometry data to
output
. - WriteSimpleGeometries = void Function(SimpleGeometryContent output)
-
A function to write simple geometry data to
output
.