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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Piotr Synowiec
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
+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


This is my first attempt to use this software.

Finally I need to convert coordinates from WGS84 lat,long to Lambert
Conformal Conic on International 1924 spheroid and Ain El Abd datum.

Projection: Lambert Conformal COnic
Lat of origin: 25d05'22.236"N
Lon of origin: 48d00'0.00"E
Norhting of origin: 0.0
Easting of origin: 0.0
Scale @ parallels: 1.0
Parallel 1: 33d00'0.000"N
Parallel 2: 17d00'0.000"N

Spheroid: International 1924
Semi-major axis: 6,378,388.0
Semi-minor axis: 6,356,911.946
Inverse flattening: 297.000

Datum: Ain El Abd
to WGS84
DX: -143.0 m
DY: -236.0 m
DZ: 7.0 m
Vertical datum: spheroidal

Could anybody help me setup command for this conversions ?

Regards
Piotr

_______________________________________________
Proj mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/proj
Reply | Threaded
Open this post in threaded view
|

Re: newbie problem: WGS84 lat,long => LCC x,y

sieczka@biol.uni.wroc.pl
Dnia Sun, 09 Jul 2006 18:09:43 +0200
Piotr Synowiec <[hidden email]> 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
_______________________________________________
Proj mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/proj
Reply | Threaded
Open this post in threaded view
|

Re: newbie problem: WGS84 lat,long => LCC x,y

Maciej Sieczka - old
In reply to this post by Piotr Synowiec
Dnia Sun, 09 Jul 2006 18:09:43 +0200
Piotr Synowiec <[hidden email]> 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
_______________________________________________
Proj mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/proj
Reply | Threaded
Open this post in threaded view
|

Re: newbie problem: WGS84 lat,long => LCC x,y

José Alberto Gonçalves-2
In reply to this post by Piotr Synowiec
The default order of the coordinates is LON LAT. Edit your file or a
ternatively use optin -r in your proj command line to accept input in
reverse order.

> my wgs84deg.txt with data looks like
>
> 22d28'13.501N 49d22'46.422E
>
To do your LCC projection (not the datum conversion) the proj command
line is:

proj +ellps=intl +proj=lcc +lat_1=33 +lat_2=17 +lon_0=48 +lat_0=25.08951



Regards

Jose' A. Gonçalves


_______________________________________________
Proj mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/proj