[Tilecache] Display EPSG:4326 with Google Sattelite

Nguyễn Hoàng Nam hoangnamhumg at gmail.com
Tue Mar 1 02:57:48 EST 2011


Hi everyone!
I'm encountering a problem with my WMS. We want to display our map in hybrid
mode with google satellite. If we set parameter spherical_mercator=true in
Mapnik and Openlayers with array of resolution is:
resolutions=9783.939618750,4891.969809375,2445.984904688,1222.992452344,611.496226172,305.748113086,152.874056543,76.437028271,38.218514136,19.109257068,9.554628534,4.777314267,2.388657133,1.194328567,0.59716428337097171575,0.298582142
then our map will overlay on google satellite correctly. However, our map is
to set at EPSG:4326-WGS84(for some our calculations, such as routing or
geocoding..), meanwhile google uses EPSG:900913(Mercator). Therefore, our
map can not display correctly when we set spherical_mercartor=false for
g_sat layer and  use this array of resolutions(find from some website):
resolutions=0.0439453125, 0.02197265625, 0.010986328125, 0.0054931640625,
0.00274658203125, 0.001373291015625, 0.0006866455078125,
0.00034332275390625, 0.000171661376953125,0.00008583068847656,
0.00004291534423828,
0.00002145767211914,0.00001072883605957,0.000005364418029785,0.00000268220901489

I hope someone will provide for me an exact array of resolution in EPSG:4326
or a formula to calculate resolution in any case.

Best regards,

Nguyen Hoang Nam
GIS Technician
__________________________
Web:    http://imap.com.vn
Mobile:  0975640489
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20110301/6ff5427a/attachment.html


More information about the Tilecache mailing list