tilejson-spec icon indicating copy to clipboard operation
tilejson-spec copied to clipboard

bounds should be required

Open mnboos opened this issue 7 years ago • 3 comments

If "bounds" is missing, how do I know valid tile-x/y? If the center is also missing, I don't see any possibility to even get valid tile-xy. This problem would be solved by making the "bounds" key required instead of optional.

mnboos avatar Apr 19 '17 17:04 mnboos

Hey @mnboos, thanks for the ticket! I agree that without a bounds or center, it’s difficult to know the valid XY coordinates. My understanding is that bounds and center are useful starting points for rendering and visualizing the map data.

What is your use-case for knowing valid XY tiles? If you know the bounds, that provides you which tiles aren’t valid, but it doesn’t solve the case where tiles inside the bounding box don’t contain data (like a circle inside a square, the corners have no tiles but are within the bounding box). So I guess the question is: is bounds 100% useful for knowing XY? Applications still have to take into account tiles that don’t exist.

mapsam avatar Apr 09 '18 17:04 mapsam

Adding the v3 label since it'll be great to document the important use-cases of bounds and center and clearly define the relationship between maps, tiles, TileJSON.

mapsam avatar Apr 09 '18 17:04 mapsam

No bounds could imply worldwide bounds. I think it's common to have no center, in such a case the application can choose.

andrewharvey avatar Apr 22 '18 02:04 andrewharvey