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

Matt Lynch matt at terraengine.com
Thu Mar 4 07:52:31 PST 2004


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.



More information about the Proj mailing list