Sunday, 12 November 2017

geoserver - What projection to use for Google Maps?


I'm loading a WMS layer which comes in WGS84 into Google Maps. From what I've read so far, I should reproject this layer to Google Pseudo Mercator (either 3857/900913). However, when I save the layer in either one of those two projections, it is not displayed in Google Maps, but I can view it in Data Preview of Geoserver. Others with WGS84 are displayed correctly but with a position shift.


Do I really need to reproject the layer? I'm not sure whether it is not just a matter of some inaccuracy.



Answer



Yes, you're correct, to display the data it will need to be in the Google Mercator projection (3857/900913). Is your data displaying if it's not being reprojected though?



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...