[Geoserver-users] "No Data" tiles in TMS

Hi List,
Is it possible to get GeoServer to return a sort of “no data” tile in response to TMS requests? As in, if there is no cached-tile, nor any data for that area to create a tile, it would return a stock default tile of my choosing?

Sort of like bing maps do here:
http://binged.it/Y8kHd0

Thanks,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

On Mon, Apr 29, 2013 at 2:22 PM, Jonathan Moules <
jonathanmoules@anonymised.com> wrote:

Hi List,
  Is it possible to get GeoServer to return a sort of "no data" tile in
response to TMS requests? As in, if there is no cached-tile, nor any data
for that area to create a tile, it would return a stock default tile of my
choosing?

Not with the current codebase.

Theoretically it would be possible to implement something like that, but
it's not entirely trivial,
as we don't do any preventive check of whether there is data on the area or
not before starting
to render (it would just slow down things).

That said, we already have some way to get notification that vector
features got rendered,
we'd have to use it to raise "no data" flags and compound it with some way
to discover
the lack of raster data.

Metatiling also makes things a bit more complicated, if you are rendering a
5x5 metatile that
only has data in the corner, the above approach won't tell you that, you'd
just know there
is some data somewhere inside the 5x5 block.

Cheers
Andrea

--

GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Thanks Andrea. I guess I’ll wait to see how many people complain about a “white background” when they’re in the middle of no-where before I throw our developer time at it.
Regards,

Jonathan

···

Hi List,
Is it possible to get GeoServer to return a sort of “no data” tile in response to TMS requests? As in, if there is no cached-tile, nor any data for that area to create a tile, it would return a stock default tile of my choosing?

Not with the current codebase.

Theoretically it would be possible to implement something like that, but it’s not entirely trivial,
as we don’t do any preventive check of whether there is data on the area or not before starting
to render (it would just slow down things).

That said, we already have some way to get notification that vector features got rendered,
we’d have to use it to raise “no data” flags and compound it with some way to discover
the lack of raster data.

Metatiling also makes things a bit more complicated, if you are rendering a 5x5 metatile that
only has data in the corner, the above approach won’t tell you that, you’d just know there
is some data somewhere inside the 5x5 block.

Cheers
Andrea

==
GeoServer training in Milan, 6th & 7th June 2013! Visit http://geoserver.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it