Coordinate conversion (EXTENT)

Frank Warmerdam fwarmerdam at GMAIL.COM
Tue Aug 30 12:40:58 EDT 2005


On 8/29/05, Chris Hackel <cvhackel at yahoo.com> wrote:
> Hello.
> Recently I switched from a latlong proj shapefile to
> Lambert Conformal Canonic. I'm having trouble
> converting my EXTENT with cs2cs.
> 
> Based on the ogrinfo below, I tried this in cs2cs:
> cvhackel% cs2cs +proj=latlong +ellps=GRS80
> +datum=NAD83 +to +proj=lcc +datum=NAD83 +units=ft
> +lon_0=-74.0 +lat_0=40.16666 +lat_1=40.1666666
> +lat_2=41.033333 +x_0=984250.0 +y_0=0
> -73.994992 40.717690
> 3230554.89      200744.22 0.00
> 
> This doesn't look right (again, based on the ogrinfo).
> Can someone help?

Chris, 

PROJ.4 +x_0 should be in meters, while it is in feet in WKT (for
a foot PROJCS).  Try:

warmerda at gdal2200[35]% cs2cs +proj=latlong +ellps=GRS80 +datum=NAD83
+to +proj=lcc +datum=NAD83 +units=ft +lon_0=-74.0 +lat_0=40.16666
+lat_1=40.1666666 +lat_2=41.033333 +x_0=300000.0 +y_0=0
-73.994992 40.717690
985640.19       200744.22 0.00

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-users mailing list