If you use option -l or --latlong osm2pgsql will keep spherical coordinates.
If you have non spherical geometries in your db, ST_Transform(way,4326) will bring them back to lat/lon WGS84 coordinates. 2014-08-02 12:52 GMT+02:00 Éric Gillet <[email protected]>: > On Sat, Aug 2, 2014 at 9:52 AM, Christian Quest <[email protected]> >> wrote: >> >>> >>> By default osm2pgsql reprojects into web mercator, but you can avoid it >>> and ask to keep the spherical coordinates if this is a better choice for >>> your use. >>> >>> > May I ask how to use spherical coordinates ? I've hit the problem about > distances being distorded with projections, and never managed to do it > right with osm2pgsql based db. > > > _______________________________________________ > dev mailing list > [email protected] > https://lists.openstreetmap.org/listinfo/dev > > -- Christian Quest - OpenStreetMap France
_______________________________________________ dev mailing list [email protected] https://lists.openstreetmap.org/listinfo/dev

