[OSRS-PROJ] Proj.exe configuration or installation

Glynn Clements glynn.clements at virgin.net
Thu Jul 4 02:53:33 EDT 2002

Paul Selormey wrote:

> In fact, I have never used the proj.exe (only the dll). I have just started
> playing with it and having problems on Windows (2000)
> My own compillation using the VC++IDE works, but with the compillation
> using the accompanied makefile, commands like
> proj -lp
> proj -le
> works. But projections like in the proj4 faq fails, ie
> proj +proj=utm +lon_0=112w -r
> The console screen output looks like this...
> -------------------------------------------------------------
> K:\Download\GIS\lib\Projection\proj-4.4.5>proj +proj=utm +lon_0=112w -r
> Rel. 4.4.5, 9 January 2002
> <proj>:
> projection initialization failure
> cause: major axis or radius = 0 or not given
> program abnormally terminated
> -------------------------------------------------------------
> This commandline, however, works with my own compillation. What am I
> missing here?

You need to specify an ellipsoid, e.g.

	proj +proj=utm +lon_0=112w +ellps=WGS84 -r

For some reason, UTM refuses to work with "+ellps=sphere".

Glynn Clements <glynn.clements at virgin.net>
PROJ.4 Discussion List
See http://www.remotesensing.org/proj for subscription, unsubscription
and other information.

More information about the Proj mailing list