We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
localtileserver/localtileserver/client.py
Lines 108 to 131 in d34356e
with geojson-pydantic (which only depends on pydantic, which you already depends on with rio-tiler) you could do
from geojson_pydantic import Polygon def bounds( self, projection: str = "EPSG:4326", return_polygon: bool = False, return_wkt: bool = False ): bounds = get_source_bounds(self.reader, projection=projection) extent = (bounds["bottom"], bounds["top"], bounds["left"], bounds["right"]) if not return_polygon and not return_wkt: return extent poly = Polygon.from_bounds(*extent) if return_wkt: return poly.wkt return poly
the only thing geojson-pydantic won't cover is the from_wkt in
from_wkt
localtileserver/localtileserver/helpers.py
Lines 106 to 129 in d34356e
The text was updated successfully, but these errors were encountered:
Awesome!! Thanks for posting this! I'll definitely make this change to simplify the dependency tree
Sorry, something went wrong.
No branches or pull requests
localtileserver/localtileserver/client.py
Lines 108 to 131 in d34356e
with geojson-pydantic (which only depends on pydantic, which you already depends on with rio-tiler) you could do
the only thing geojson-pydantic won't cover is the
from_wkt
inlocaltileserver/localtileserver/helpers.py
Lines 106 to 129 in d34356e
The text was updated successfully, but these errors were encountered: