[myjunk] [OSRS-PROJ] Using cs2cs to convert latlong nad27 to custom tmerc

Matt Lynch matt at terraengine.com
Thu Mar 4 15:17:46 EST 2004


Hi Sam,

Awesome!  That did the trick for me.   I dropped the two files you
attached into my nad directory and reran the test(with PROJ_LIB pointing
to the right spot).

Thanks,

Matt

-----Original Message-----
From: Sam Harrell [mailto:sammyh at 3rddim.com] 
Sent: Thursday, March 04, 2004 10:27 AM
To: osrs-proj at remotesensing.org; matt at terraengine.com
Subject: RE: [myjunk] [OSRS-PROJ] Using cs2cs to convert latlong nad27
to custom tmerc


proj446_win32_bin.zip doesn't include the shift files.  I had a very
difficult time getting them running in windows myself.  In fact I did so
many things I can't even fully remember what I did to finally get them
to work.  I believe you need the ASCII .lla grid files (no idea where I
got
them) in the NAD folder when you build.  Since you want to use the bins
though, that may be a problem.  I've attached the conus and Ntv1_can.dat
files that work for me.  You also need to setup the PROJ_LIB path as
stated in README.DOS in the from_kai directory of the ftp site.  It
would be great to get the files added to the proj446_win32_bin.zip.  It
would have saved me many long hours of anguish.  


-----Original Message-----
From: owner-osrs-proj at remotesensing.org
[mailto:owner-osrs-proj at remotesensing.org] On Behalf Of Matt Lynch
Sent: Thursday, March 04, 2004 10:53 AM
To: osrs-proj at remotesensing.org
Subject: [myjunk] [OSRS-PROJ] Using cs2cs to convert latlong nad27 to
custom tmerc

Hi,

I am trying to do a conversion with cs2cs from latlong (nad27) to a
custom tranverse mercator. The response is some *s for the x,y values.
Does this have something to do with the nadgrid files and datum shifts?

I am using the pre-built windows version proj446_win32_bin.zip which I
believe includes the nadshifts for nad27.

Thanks,

Matt


This is the attempt that fails:

C:\new_proj\bin>cs2cs +proj=longlat +datum=NAD27 +to +proj=tmerc
+datum=NAD83 +x_0=500000 +y_0=0 +lat_0=0 +lon_0=-115 +k=0.9992 -v # ----
>From Coordinate System ---- #Lat/long (Geodetic) # # +proj=longlat
+datum=NAD27 +ellps=clrk66 +nadgrids=conus,ntv1_can.dat # ---- To
Coordinate System ---- #Transverse Mercator
#       Cyl, Sph&Ell
# +proj=tmerc +datum=NAD83 +x_0=500000 +y_0=0 +lat_0=0 +lon_0=-115
+k=0.9992 # +ellps=GRS80 +towgs84=0,0,0
-112.0 50.0
*       * 0.000



This is one that works ( but latlong,wgs84 to tmerc ):

C:\new_proj\bin>cs2cs +proj=longlat +datum=WGS84 +to +proj=tmerc
+datum=NAD83 +x_0=500000 +y_0=0 +lat_0=0 +lon_0=-115 +k=0.9992 -v # ----
>From Coordinate System ---- #Lat/long (Geodetic) # # +proj=longlat
+datum=WGS84 +ellps=WGS84 +towgs84=0,0,0 # ---- To Coordinate System
---- #Transverse Mercator
#       Cyl, Sph&Ell
# +proj=tmerc +datum=NAD83 +x_0=500000 +y_0=0 +lat_0=0 +lon_0=-115
+k=0.9992 # +ellps=GRS80 +towgs84=0,0,0
-112.0 50.0
714898.21       5540725.95 0.000

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004
 


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004
 
  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004
 


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



More information about the Proj mailing list