Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove shapely #94

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vincentsarago
Copy link

Note: This could be considered as a breaking change

I've noticed that Polygon was imported twice:

  • from geojson_pydantic
  • from shapely.geometry

Because the one from shapely was imported later, it was the one used in the GeoJson type:

GeoJson = Union[FeatureCollection, Feature, GeometryCollection, MultiPolygon, Polygon]

resulting in the type being an Union of pydantic model and Shapely object

I personally think that using shapely only for the polygon object is kinda overkill, but if users really need it, it might better be in a BoundingBox.to_shapely() method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant