geosolutions-it / ogc-testbed

Management repository for OGC testbed and other initiatives
0 stars 0 forks source link

Handling empty tiles in tiles API #95

Closed aaime closed 4 years ago

aaime commented 4 years ago

Return 404 for out of range tiles, return 200 with empty payload for empty ones inside range. Needed for the TIEs, so urgent.

aaime commented 4 years ago

It was discussed during the GeoServer meeting. Tiles can be pulled out of different protocols and can be cached, there is no way to mark them to be empty in the case. The proposed solution is to make it throw a HttpErrorCodeException with a 204, so that all protocols behave the same. Downside, WMTS client might fail, so it should be enabled via a setting.

aaime commented 4 years ago

Still being discussed in VTP2, will likely be optional.

aaime commented 4 years ago

Closing, at this point we won't implement it.