Skip to content

Releases: Peter-van-Tol/pydantic-shapely

v1.0.0a3: Fix dependency and GeometryField

23 Sep 08:16
Compare
Choose a tag to compare
  • BUGFIX: Removed numpy as a dependency. This was causing issues with the installation of the package, since it was pinned to strictly. The dependency is not required, as shapely already has a dependency on numpy.;
  • BUGFIX: When using the GeometryField it is now possible to instantiate the field with a the default shapely constructor. I.e. a MultiPolygon can be instantiated with a list of Polygon objects;

v1.0.0a2: support GeometryCollection and GeoJSON feature collections

26 Jun 11:47
Compare
Choose a tag to compare
  • 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 and wkt.loads to respectively shapely.to_wkt and
    shapely.wkt.loads;
  • BUGFIX: Fixed a bug where the class property ParentDataModel was not being set when the
    a sub-class of GeoJsonFeatureBaseModel was created. This prohibited the correct
    serialization of the Feature Collection;

v1.0.0a1: Corrected metadata

24 Jun 07:12
6b0986a
Compare
Choose a tag to compare

In the previous release, the metadata displayed at pypi.org was incorrect. This version corrects that metadata.

The content of the package has not been altered.

v1.0.0a0

23 Jun 20:30
7abbd05
Compare
Choose a tag to compare

Initial release.