[OSM-dev] Projection problems
Tom Hughes
tom at compton.nu
Tue Dec 16 17:18:42 GMT 2008
Bradley Kite wrote:
> I wonder if any one could be so kind as to help me out with a problem
> I am having with projections:
>
> I am trying to convert from lat/long coords to the Mercator projection
> as is used in osm2pgsql
>
> I am using this code:
>
> http://wiki.openstreetmap.org/index.php/Mercator#Java_Implementation
That code is projecting to elliptical mercator but you almost certainly
want spherical mercator.
See the code at the top of the page for spherical mercator - there isn't
a java version but converting the code should be trivial.
Tom
--
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
More information about the dev
mailing list