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
tuple(float, float, float, float)
The only way to enforce a list to be a 4 element object is by using Tuple and that's why we define bounds in rio-tiler as tuple(float, float, float, float) (e.g. https://github.com/cogeotiff/rio-tiler/blob/a10a8c5be8b067dd3ecc72e76bfd740a2b3213c9/rio_tiler/io/base.py#L37)
bounds
In the mosaic model we are a bit too permissive with List[float]
List[float]
cogeo-mosaic/cogeo_mosaic/mosaic.py
Line 69 in 7d01981
Changing to Tuple[Float, Float, Float, Float] won't change how the object is stored on the json document
Tuple[Float, Float, Float, Float]
json.dumps((1,1,1,1)) '[1, 1, 1, 1]'
The text was updated successfully, but these errors were encountered:
Unless you want three-dimensional bounds with a 6-element iterable 😉
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The only way to enforce a list to be a 4 element object is by using Tuple and that's why we define
bounds
in rio-tiler astuple(float, float, float, float)
(e.g. https://github.com/cogeotiff/rio-tiler/blob/a10a8c5be8b067dd3ecc72e76bfd740a2b3213c9/rio_tiler/io/base.py#L37)In the mosaic model we are a bit too permissive with
List[float]
cogeo-mosaic/cogeo_mosaic/mosaic.py
Line 69 in 7d01981
Changing to
Tuple[Float, Float, Float, Float]
won't change how the object is stored on the json documentThe text was updated successfully, but these errors were encountered: