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 ([email protected])
http://www.compton.nu/

_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev

Reply via email to