On Sun, 2009-10-04 at 12:27 +0100, Tom Taylor wrote: > 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.
4.7.1 does not exist @ http://download.osgeo.org/proj/ do you mean an SVN version? > > 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 Very odd. I just downloaded the proj SVN code, rebuilt & installed and it still works for me. How about if you use all the definitions provided with proj: $ echo 45 45 | cs2cs +init=epsg:4326 +to +init=esri.extra:900913 5009377.09 5621521.49 0.00 $ cs2cs Rel. 4.7.1, 23 September 2009 usage: cs2cs [ -eEfIlrstvwW [args] ] [ +opts[=arg] ] [+to [+opts[=arg] [ files ] Jon _______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

