[GRASS-user] [GRASSLIST:1088] utm data to longitude latitude

hello

I tried to convert utm data to longitude latitude via proj.
But I could not.

I tried this: echo 465900 4560300 | proj +proj=lonlat

what might the solution be ?

regards

--
Ahmet Temiz
Jeoloji Müh.
Afet Ýþleri Genel Müdürlüðü
Deprem Araþtýrma Dairesi
Tel: (312) 287 89 51 veya (312) 287 26 80/1547
Faks: (312) 287 89 51
E. Posta: temiz@deprem.gov.tr
www.deprem.gov.tr

Ahmet Temiz
Geological Eng.
General Directorate of Disaster Affairs
Earthquake Research Department
Phone: +90 (312) 287 89 51 or (312) 287 26 80/1547
Fax: +90 (312) 287 89 51
E. Mail: temiz@deprem.gov.tr
www.deprem.gov.tr

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

I tried to convert utm data to longitude latitude via proj.
But I could not.

I tried this: echo 465900 4560300 | proj +proj=lonlat

Proj needs to know both the to: and from: parameters.

If using GRASS 6.1-cvs, try

echo "465900 4560300" | m.proj -o

from the UTM location.

If using GRASS 6.0, use cs2cs, not proj. (+datum support)

# shortcut (from v.in.garmin):
IN_PROJ="`g.proj -jf`"
OUT_PROJ="+proj=longlat +towgs84=0.000,0.000,0.000"

echo "$X $Y" | cs2cs -f %.7f $IN_PROJ +to $OUT_PROJ

the m.proj script in 6.1 is just a front-end the above 6.0 cs2cs method.

Hamish

I have documented a couple examples here:

http://casoilresource.lawr.ucdavis.edu/drupal/node/105

Dylan

On Wednesday 31 May 2006 01:36, orkun wrote:

hello

I tried to convert utm data to longitude latitude via proj.
But I could not.

I tried this: echo 465900 4560300 | proj +proj=lonlat

what might the solution be ?

regards

--
Ahmet Temiz
Jeoloji Müh.
Afet Ýþleri Genel Müdürlüðü
Deprem Araþtýrma Dairesi
Tel: (312) 287 89 51 veya (312) 287 26 80/1547
Faks: (312) 287 89 51
E. Posta: temiz@deprem.gov.tr
www.deprem.gov.tr

Ahmet Temiz
Geological Eng.
General Directorate of Disaster Affairs
Earthquake Research Department
Phone: +90 (312) 287 89 51 or (312) 287 26 80/1547
Fax: +90 (312) 287 89 51
E. Mail: temiz@deprem.gov.tr
www.deprem.gov.tr

--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341