- FEATURE: Added support for Shapely
GeometryCollection
geometries; - FEATURE: Added support for GeoJSon feature collections model that represents a GeoJSON feature collection and serialize it to a GeoJSON feature collection;
- REFACTOR: Changed the GeoJSON geometry models from TypeAlias to sub classes of the corresponding base-models. This gives a better documentation in the API. This has no effects on the functionality of the package.
- BUGFIX: Changed
wkt.dumps
andwkt.loads
to respectivelyshapely.to_wkt
andshapely.wkt.loads
; - BUGFIX: Fixed a bug where the class property
ParentDataModel
was not being set when the a sub-class ofGeoJsonFeatureBaseModel
was created. This prohibited the correct serialization of the Feature Collection;
- Updated metadata for correct rendering on PyPI;
- Initial version;
- Support for annotated geometry fields for all Pydantic geometries, except for
GeometryCollection
; - Support for converting a FeatureModel (i.e. a Pydantic model with a geometry field) to a GeoJSON Feature;