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 +nadgri...@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 +nadgri...@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

_______________________________________________
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev

Reply via email to