I think is better explain with a small example: selected a geometry point i get it back in a coordinates pair
to return back the geometry simply i make
having for example the same pair of geographic coordinates in degrees
How can i transform them into the previous pair format and get the starting geometry? I'm working with leaflet and i would implement a kind of routing service using pgRouting, I have populated postgis with "osm2pgsql" tool and all geometries are of 900913 SRID type. My goal is to compare the source and target points on a map with the vertices stored in postgres. Applying a transformation on a point picked from the map to 900913 srid don't get me the right thing, also i notice that the last four numbers (5241) are the same for each geometry in the db and them are different when i transform the geometry returned from my point, what they refer? asked 22 Aug '15, 20:11 gaia |
This question is not really on topic, it's more a general GIS question.
I thought there was some special function of osm2pgsql, is osm2pgsql on topic with the forum?
You can change the SRID used by osm2pgsql too, but the question focussed on changing SRID with leaflet, pg_routing and already populated db.