name for bounds in wgs84
property in next rio-tiler version
#436
Locked
vincentsarago
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
rio-tiler/rio_tiler/io/base.py
Lines 46 to 60 in 1b30e41
In next rio-tiler version (currently in dev, branch https://github.com/cogeotiff/rio-tiler/tree/rio-tiler-v3) we have replaced
BaseReader.bounds
which used to store the dataset bounds in WGS84. NowBaseReader.bounds
should return the actual dataset bounds (we have added BaseReader.crs to be able to translate it to other projection).Having
bounds
in WGS84 is still useful (e.g for TileJSON) so I have added a property calledgeographic_bounds
. I'm not quite happy with the name (especially because for non-earth dataset it won't work nor make sense to have bounds in wgs84).I'm open to any feedback.
Other idea:
geographic_bounds
and add aget_bbox(self, crs: rasterio.crs.CRS = CRS.from_epsg(4326))
method to return dataset bounds in any wanted projection.Beta Was this translation helpful? Give feedback.
All reactions