Re: [OSM-dev] Convert from Spherical Mercator to WGS-84?

2009-11-28 Thread Dane Springmeyer
On Nov 28, 2009, at 5:58 PM, Mike N. wrote: I have definitely not taken the GIS:100 course! I could not manipulate the epsg library arguments into cs2cs argments, but I found a Python fragment that does what I need, so I'm set. self.originShift = 2 * math.pi * 6378137 / 2.0 ... def M

Re: [OSM-dev] Convert from Spherical Mercator to WGS-84?

2009-11-28 Thread Iván Sánchez Ortega
El Domingo, 29 de Noviembre de 2009, Mike N. escribió: > echo -180 45 | cs2cs +proj=latlong +datum=WGS84 +to +proj=merc > +ellps=sphere +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 > +k=1.0 +units=m +towgs84=0,0,0 +no_defs echo -180 45 | cs2cs +init=epsg:4326 +to +init=epsg:3785 M

Re: [OSM-dev] Convert from Spherical Mercator to WGS-84?

2009-11-28 Thread Frederik Ramm
Mike, Mike N. wrote: > I have definitely not taken the GIS:100 course! I could not manipulate > the epsg library arguments into cs2cs argments, but I found a Python > fragment that does what I need, so I'm set. In case you ultimately need tile coordinates, there's also some code in various

Re: [OSM-dev] Convert from Spherical Mercator to WGS-84?

2009-11-28 Thread Mike N.
> I was unsure whether the OP was able to do coordinate conversions in > principle and just didn't know how to access spherical mercator, or > whether he didn't know how to use these tools at all? I have definitely not taken the GIS:100 course! I could not manipulate the epsg library arguments

Re: [OSM-dev] Convert from Spherical Mercator to WGS-84?

2009-11-28 Thread Frederik Ramm
Hi, Iván Sánchez Ortega wrote: > El Sábado, 28 de Noviembre de 2009, Mike N. escribió: >> I would like to be able to convert from Spherical Mercator coordinates >> (used by Mapnik, I think) to WGS-84 OSM db Lat/Lon format using the Geo >> Tools cs2cs.exe or proj.exe from the Cartographic Projectio

Re: [OSM-dev] Convert from Spherical Mercator to WGS-84?

2009-11-28 Thread Iván Sánchez Ortega
El Sábado, 28 de Noviembre de 2009, Mike N. escribió: > I would like to be able to convert from Spherical Mercator coordinates > (used by Mapnik, I think) to WGS-84 OSM db Lat/Lon format using the Geo > Tools cs2cs.exe or proj.exe from the Cartographic Projections library. I > am unable to figure

[OSM-dev] Convert from Spherical Mercator to WGS-84?

2009-11-28 Thread Mike N.
I would like to be able to convert from Spherical Mercator coordinates (used by Mapnik, I think) to WGS-84 OSM db Lat/Lon format using the Geo Tools cs2cs.exe or proj.exe from the Cartographic Projections library. I am unable to figure this out from their documentation or example. Thanks,