[MapProxy] Translating Proj4Leaflet config to Grids yaml

Daniel Cheng (SDiZ) sdiz at sdiz.net
Thu Sep 10 04:47:37 PDT 2015


Hi List,

I am trying to reproject a tiled map from EPSG:2326 to webmercator,
but the origin is always off.

I have tried to use bbox as suggested on github issue tracker, but no idea
how to do that correctly
Any hints on how to do this?

You can see a working leaflet sample on http://46.101.178.199/~root/map.html

>>>>>>> Proj4Leaflet >>>>>>>>
var crs = new L.Proj.CRS('EPSG:2326','+proj=tmerc +lat_0=22.31213333333334
+lon_0=114.1785555555556 +k=1 +x_0=836694.05 +y_0=819069.8 +ellps=intl
+towgs84=-162.619,-276.959,-161.764,0.067753,-2.24365,-1.15883,-1.09425
+units=m +no_defs', {
  origin: [-4786700, 8353100],
  resolutions: [
    42.33341800016934, 21.16670900008467, 10.583354500042335,
5.291677250021167,
    2.6458386250105836, 1.3229193125052918, 0.6614596562526459,
0.33072982812632296, 0.16536491406316148
  ]
});
<<<<<<< Proj4Leaflet <<<<<<<<


>>>>>>> MapProxy >>>>>>>>
sources: epsg2326_tile: type: tile url:
http://....../tile/%(z)s/%(x)s/%(y)s.png
grid: epsg2326

grids:
epsg2326: srs: EPSG:2326 res: [ 42.33341800016934, 21.16670900008467,
10.583354500042335, 5.291677250021167, 2.6458386250105836,
1.3229193125052918, 0.6614596562526459, 0.33072982812632296,
0.16536491406316148 ] origin: nw bbox_srs: EPSG:4326 bbox: [
129.71179031844, -89.996752339456, -129.71179031844, 89.996752339456 ]
<<<<<<< MapProxy <<<<<<<<


Regards,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20150910/a981b507/attachment.html>


More information about the MapProxy mailing list