<div dir="ltr"><div><div><div><br><br>On Thu, Jan 4, 2018 at 9:08 AM, Helmut Kudrnovsky <<a href="mailto:hellik@web.de">hellik@web.de</a>> wrote:<br>><br>> Zhiyu (Drew) Li wrote<br>> > Hi there,<br>> ><br>> ><br>> ><br>> > I was trying to re-project a EPSG:4326 coordinate into EPSG:3857 using<br>> > GRASS, but I found GDAL gave me a different result.<br>> ><br>> > GRASS (7.2.2):<br>> ><br>> > Re-project this " -111.648251 40.246882" lon-lat pair into a existing<br>> > location with EPSG:3857 projection<br>> ><br>> > m.proj -i input=in4326.txt<br>> ><br>> > -12428626.45 4874271.67<br>> ><br>> ><br>> ><br>> > GDAL (2.2):<br>> ><br>> > gdaltransform -s_srs EPSG:4326 -t_srs EPSG:3857<br>> ><br>> > -111.648251 40.246882<br>> ><br>> > -12428626.4492796 4901883.62422139 0<br>> ><br>> ><br>> ><br>> > Results on X axis are almost the same, but the offset along Y is pretty<br>> > big.<br>> ><br>> > Any suggestion would be appreciated.<br>><br>> have a look into a related ticket:<br>><br>> <a href="https://trac.osgeo.org/grass/ticket/2229">https://trac.osgeo.org/grass/ticket/2229</a><br>><br>> in my experience EPSG:3857 isn't the best projection for analysis.<br><br></div>Regarding EPSG:3857:<br>Uses spherical development of ellipsoidal coordinates. Relative to WGS 84 / World Mercator (CRS code 3395) errors of 0.7 percent in scale and differences in northing of up to 43km in the map (equivalent to 21km on the ground) may arise.<br><br></div>This has been fixed in recent GRASS 7.4 and GRASS 7.5, providing same results like GDAL.<br><br></div>Markus M<br><div><div><div>><br>><br>><br>><br>> -----<br>> best regards<br>> Helmut<br>> --<br>> Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html">http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html</a><br>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br><br></div></div></div></div>