[OSM-dev] Trouble with osm2pgsql and Postgres 8.4, Postgis 1.4
Tom Taylor
tom at tomtaylor.co.uk
Sun Oct 4 12:27:12 BST 2009
On 4 Oct 2009, at 12:19, Jon Burgess wrote:
> Those error messages all come from reprojection.c which is trying to
> initialise the projection using the proj library. This should have
> nothing to do with postgres & postgis. What version of proj are you
> using?
Jon, thanks for helping out.
I'm using 4.7.1.
> Can you try the following command which should project a point using a
> command line proj tool:
>
> $ echo 45 45 | cs2cs +proj=latlong +ellps=GRS80 +no_defs +to
> +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 +nadgrids=@null +no_defs +over
>
> The answer should come back as:
> 5009377.09 5621521.49 0.00
Erk!
$ echo 45 45 | cs2cs +proj=latlong +ellps=GRS80 +no_defs +to
+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 +nadgrids=@null +no_defs +over
Using from definition: proj=latlong ellps=GRS80 no_defs
Rel. 4.7.1, 23 September 2009
<cs2cs>:
projection initialization failure
cause: major axis or radius = 0 or not given
program abnormally terminated
More information about the dev
mailing list