[OSM-dev] OSM data import using osm2pgsql... what's next.
Christian Quest
cquest at openstreetmap.fr
Sat Aug 2 13:05:18 UTC 2014
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 <fear.hardcore+osm at gmail.com>:
> On Sat, Aug 2, 2014 at 9:52 AM, Christian Quest <cquest at openstreetmap.fr>
>> 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
> dev at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
>
--
Christian Quest - OpenStreetMap France
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20140802/32632920/attachment.html>
More information about the dev
mailing list