[MapProxy] Create WMS from PDOK WMTS and create maps below minimum tile scale

Just van den Broecke just at justobjects.nl
Thu Nov 23 05:09:53 PST 2017


Hi Ron,

This question was asked earlier on this list. MapProxy IMO can currently 
not blow up tiles. But there are two ways to effect this: client-side or 
server-side.

Client-side: if you use OpenLayers, you can use "serverResolutions" on 
the WMTS (TMS) Layer in combination with the property "resolutions" on 
the Map object. OL will "blow up" tiles below the lowest 
serverResolution value within the Map resolutions range.
I use this for PDOK:
serverResolutions_0_14: [3440.640, 1720.320, 860.160, 430.080, 215.040, 
107.520, 53.760, 26.880, 13.440, 6.720, 3.360, 1.680, 0.840, 0.420, 0.210]
resolutions_0_16: [3440.640, 1720.320, 860.160, 430.080, 215.040, 
107.520, 53.760, 26.880, 13.440, 6.720, 3.360, 1.680, 0.840, 0.420, 
0.210, 0.105, 0.0525]

Server-side: more complex, haven't tried this, general directives:
- PDOK (GeoWebCache) also supports WMS for that Layer: 
https://geodata.nationaalgeoregister.nl/tiles/service/wms? with 
additional zoomlevels at least 15 and 16.
- make an MP config that directly fetches tiles for levels 0-14 (PDOK 
BRTAchtergrondkaart levels, see above) and for levels 15+ use 
"use_direct_from_res: 0.21" using the WMS Source. Possibly you need a 
combined cache (TMS Source for 0-14 and WMS Source for 15+) different 
grids/subgrids and never store tiles via disable_storage: true.

I do something similar but switch from PDOK BRT to PDOK detailed topo 
BGT at level 12:
https://kadviewer.map5.nl/?map_visibility_BRT-BGT%20Achtergrond=true 
(ignore the ads).

Best,

Just van den Broecke

On 23-11-17 11:27, Ron Lindhoudt wrote:
> Hello,
> 
> I create a WMS from this WMTS using MapProxy: 
> http://geodata.nationaalgeoregister.nl/tiles/service/wmts?LAYER=brtachtergrondkaart
> 
> The minimum tile scale is 1:750
> 
> Below that the WMS GetMap request does not show anything in the map.
> 
> How do I get MapProxy to use the tiles from the minimum scale and use 
> that to blow it up for WMS scales below 1:750?
> 
> Met vriendelijke groet,
> 
> 		
> 
> Ron Lindhoudt
> NedGraphics B.V.
> Projectleider Development
> 
> +31 347 329 600
> rli at nedgraphics.nl <mailto:rli at nedgraphics.nl>
> www.nedgraphics.nl <http://www.nedgraphics.nl/>
> 
> Laanakkerweg 6
> 4131 PA Vianen
> 
> http://info.cadac.com/email/ndg-1.png <http://www.nedgraphics.nl/>
> 
> 	
> 
> http://info.cadac.com/email/ndg-2.png <http://www.nedgraphics.nl/>
> 
> http://info.cadac.com/email/ndg-3.png <http://www.nedgraphics.nl/>
> 
> 	
> 
> http://info.cadac.com/email/ndg-4.png <http://www.nedgraphics.nl/>
> 
> 
> 
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapproxy
> 



More information about the MapProxy mailing list