[Proj] newbie problem: WGS84 lat,long => LCC x,y

Maciej Sieczka sieczka at biol.uni.wroc.pl
Sun Jul 9 12:44:40 EDT 2006


Dnia Sun, 09 Jul 2006 18:09:43 +0200
Piotr Synowiec <psynowiec at gmail.com> napisał(a):

> hi
> I have a newbie problem.
> I tried to convert lat,long coordinates from my GPS to the UTM x,y
> 
> I have pair of coordinates in both systems
> LAT 22 28 13.501N
> LON 49 22 46.422E
> Easting 333278.419
> Northing 2485798.233
> 
> First attempt I tried program proj
> cat wgs84deg.txt | proj +units=m +proj=utm +zone=39 +ellps=WGS84
> 
> result is
> -1554377.54     5873313.44
> -6114872.17     0.00
> 
> and doesn't look like expected 333278.419  2485798.233
> 
> then I tried program cs2cs
> cat wgs84deg.txt | cs2cs +proj=latlong +ellps=WGS84 +datu=WGS84 +to 
							   ^
					missing 'm', if it matters
> +proj=utm +zone=39
 
> result is the same like with program proj
> -1554377.54     5873313.44 0.00
> -6114872.17     0.00 0.00
> 
> my wgs84deg.txt with data looks like
> 
> 22d28'13.501N 49d22'46.422E

cs2cs expects xy/lonlat order. Reverse or use -r switch. Poland, uh :D?

Maciek


More information about the Proj mailing list