[MapProxy] Reproject TMS layer on the fly
Fabrellas Bertran, Isabel
isabel.fabrellas at icc.cat
Fri Mar 11 06:58:42 EST 2011
Hi,
I have a Mapproxy TMS layer, with name "topo4326_tms", that requests data from Tilecache, and it's cached.
Its grid configuration in mapproxy.yaml is:
tile_size: [512, 512]
srs: 'EPSG:4326'
bbox: [0.0,39.375,5.625,45.0]
bbox_srs: 'EPSG:4326'
res: [0.010986328125, 0.0054931640625, 0.00274658203125, 0.001373291015625, 0.0006866455078125, 0.00034332275390625, 0.000171661376953125, 0.0000858306884765625, 0.00004291534423828125, 0.000021457672119140625, 0.000010728836059570312]
How can I access it from Openlayers with EPSG:23031?
I have tried, with no success:
var layer4 = new OpenLayers.Layer.TMS('MapProxy TMS topo4326 a',
'http://localhost:8080/tms/',
{layername: 'topo4326_tms', type: 'png',
tileSize: new OpenLayers.Size(512, 512),isBaseLayer: false, visibility: true });
map.addLayer(layer4);
var layer5 = new OpenLayers.Layer.TMS('MapProxy TMS topo4326 b',
'http://localhost:8080/tms/',
{layername: 'topo4326_tms/EPSG23031', type: 'png',
tileSize: new OpenLayers.Size(512, 512),isBaseLayer: false, visibility: true});
map.addLayer(layer5);
var layer6 = new OpenLayers.Layer.TMS('MapProxy TMS topo4326 c',
'http://localhost:8080/tms/',
{layername: 'topo4326_tms_EPSG23031', type: 'png',
tileSize: new OpenLayers.Size(512, 512),isBaseLayer: false, visibility: true});
map.addLayer(layer6);
Thank you,
Isabel.
Isabel Fabrellas Bertran
Unitat SIG - Web
Institut Cartogràfic de Catalunya
Parc de Montjuïc, E-08038 Barcelona
-----Missatge original-----
De: Oliver Tonnhofer [mailto:olt at omniscale.de]
Enviat: miércoles, 09 de marzo de 2011 14:28
Per a: Fabrellas Bertran, Isabel
A/c: mapproxy at lists.osgeo.org
Tema: Re: [MapProxy] Reproject TMS layer on the fly
On 09.03.2011, at 10:53, Fabrellas Bertran, Isabel wrote:
> Is it possible to reproject layers of a 'tile' type source (TMS) on the fly or is it only possible for WMS layers?
Yes. The cache handles the reprojection, so you need to create a cache with your tile source.
Regards,
Oliver
--
Oliver Tonnhofer | Omniscale GmbH & Co KG | http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt
More information about the MapProxy
mailing list