2009/1/13 Carl Johansson <[email protected]>: > > > Artem Pavlenko-5 wrote: >> >> Or in C++ : >> >> >> .... >> mapnik::projection prj("+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 >> +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null +no_defs >> +over"); >> >> double x = 1114078.557; >> double y = 6054943.745; >> prj.inverse(x0,y0); >> >> std::cout << x << " ," << y << "\n"; >> > > Ok, so I should do like this then? > > 1. Get a screen coordinate and turn it into mercator with CoordTransform > 2. Inverse that coordinate with mapnik::projection > > Is that the simplest solution?
Yes. Please note, that the above assumes you don't need datum/ellipsoid transforms. If you do, then you need to use mapnik::proj_transform object. I can give a more definite answer if you post both proj4 strings (map and what you want to display) Cheers Artem > > Very greatful! > > Carl > -- > View this message in context: > http://www.nabble.com/Coordinates-in-degrees%2C-radians-and...-what-else--tp21436631p21437493.html > Sent from the Mapnik - Users mailing list archive at Nabble.com. > > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users > _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

