[OSRS-PROJ] Parsing of " in +lat_0 and +lon_0 arguments

Eric Miller EMiller at dfg.ca.gov
Tue Dec 9 12:37:48 EST 2003


Seems to be an artifact of quoting by your shell program. Escape the double quotes
with a backslash (+lon_0=3d46'47\"w).

Eric G. Miller
GIS Analyst
Wildlife and Habitat Data Analysis Branch
Department of Fish and Game

>>> john.smart at caris.com 12/09/03 08:01AM >>>
Hello

I was getting strange results from proj, and I think I see why. See this:

proj -I +proj=cass +ellps=airy +lon_0=3d46'47"w +lat_0=55d40'23"n
0 0
3d46'47"W       0dN

proj -I +proj=cass +ellps=airy +lat_0=55d40'23"n +lon_0=3d46'47"w
0 0
0dE     55d40'23"N

proj -I +proj=cass +ellps=airy +lon_0=3d46'47w +lat_0=55d40'23"n
0 0
3d46'47"W       55d40'23"N

It looks like including the " in the first of +lat_0 and +lon_0 throws the
program off.

I can do proj -I now if I remember not to include " in the +lat_0 or +lon_0
arguments but I wonder if this behaviour is not a bug? (Or maybe I'm missing
something blindingly obvious about the syntax?)

John Smart

----------------------------------------
PROJ.4 Discussion List
See http://www.remotesensing.org/proj for subscription, unsubscription
and other information.

----------------------------------------
PROJ.4 Discussion List
See http://www.remotesensing.org/proj for subscription, unsubscription
and other information.



More information about the Proj mailing list