[OSM-dev] Projection problem with osm2pgsql on Windows
Dane Springmeyer
blake at hailmail.net
Sat Jun 19 03:56:23 BST 2010
The below problems should be able to be solved by installing the Proj4 windows binaries (must include the data/nad files) and setting the PROJ_LIB environment directory.
If you grab the latest binaries at http://download.osgeo.org/proj/proj446_win32_bin.zip, then you'd point the PROJ_LIB environment at the nad folder contained within them.
Dane
On Jun 17, 2010, at 11:53 PM, Jukka Rahkonen wrote:
> Hi,
>
> Some user on the deegree mailing list had a problem with osm2pgsql and I
> made a test to repeat the case. It seems that selecting the projection
> does not work perfectly with the Windows version of osm2pgsql (downloaded
> from http://tile.openstreetmap.org/osm2pgsql.zip). Utility informs itself
> that the version is "osm2pgsql SVN version 0.69-20874M".
>
> 1) Using the -l switch does not work. The error message is
> "Projection code failed to initialise"
> 2) Using -E switch fails with a message
> "Couldn't read EPSG definition (do you have /usr/share/proj/epsg?"
>
> The -M switch for EPSG:3395 works as well as the default without setting
> any projection switch. I adviced that deegree user to import the data
> first with default settings and re-project data afterwards inside the
> database.
>
> -Jukka Rahkonen-
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
More information about the dev
mailing list