[MapProxy] Generate complete cache from one scale

Märt Reose Mart.Reose at smit.ee
Tue Aug 25 22:39:19 PDT 2015


Hey!

I had a similar task at hand. Which format are your aerials? If its wms, then sorry I cant help you, but if you have access to geotiff files, then you have hope.

Mine were geotiff so I decided to use mapserver to deliver the tiffs and mapproxy to cache the result.

As there were many tiffs I used gdaltindex to create a tileindex. Like: gdaltindex aerials.shp aerials/*.tif

Then created a map file with a layer definition like this:
LAYER
  NAME "aerials"
  STATUS ON
  TILEINDEX "/srv/gis/aerials/aerials.shp"
  TILEITEM "Location"
  TYPE RASTER
END


Longer documentation: http://mapserver.org/input/raster.html
And map file: http://www.mapserver.org/mapfile/

It can look like a difficult task if you dont have experience in the field, but actually its quite easy.

Märt Reose

-----Original Message-----
From: mapproxy-bounces at lists.osgeo.org [mailto:mapproxy-bounces at lists.osgeo.org] On Behalf Of Oliver Tonnhofer
Sent: Tuesday, August 25, 2015 2:48 PM
To: dirk.thalheim at bkg.bund.de
Cc: mapproxy at lists.osgeo.org
Subject: Re: [MapProxy] Generate complete cache from one scale

Hi,


> On 21.08.2015, at 11:38, dirk.thalheim at bkg.bund.de wrote:
> 
> I have a source which provides raster data (aerial images) only for a single scale. Is it possible to configure mapproxy in that way, that a complete cache could be generated from that source?
>  
> In theory it would be enough to cache the source scale and after that recursively generate all lower scale caches by resizing the previous cache. My first approach would be to configure a recursive cache configuration. But this seems to me like a huge configuration and I’m not pretty sure how to combine the single caches in a single one for production. Or is there a simpler way?


No, there is no easy way to handle this right now. But it would be a great feature for MapProxy. It would also help for services that only provide maps for higher scale, but not for low scales (overview). 

Regards,
Oliver

-- 
Oliver Tonnhofer  | Omniscale GmbH & Co KG  | http://omniscale.com
OpenStreetMap WMS and tile services         | http://maps.omniscale.com



_______________________________________________
MapProxy mailing list
MapProxy at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapproxy


More information about the MapProxy mailing list