[gdal-dev] Problem using gdalwarp to reproject Lambert Conformal Conic (LCC) to longlat

James Hiebert hiebert at uvic.ca
Fri Jan 7 16:18:20 EST 2011


All,

Below is a question/probelm from one of my co-workers (who doesn't (yet)
want to subscribe to the list).

~James Hiebert


From: Hailey Eckstrand <haileye at uvic.ca>
Date: Fri, 7 Jan 2011 13:05:10 -0800

Hello all,
I am trying to reproject a geotif using gdalwarp:
gdalwarp -t_srs "+proj=longlat" -s_srs "+proj=lcc +lat_0=47.5 +lat_1=30.0 +y_0=3200000.0 +lat_2=60.0 +x_0=3825000.0 +lon_0=-97.0 +a=6370000" -r bilinear -srcnodata "1e20" -dstnodata "1e20" -tr 0.5 0.5 -te -137.812943839532 33.8985446218588 -102.312943839532 63.3985446218588 mm5i-lcc.tif  mm5i-latlong.tif

ERROR 1: Translating source or target SRS failed:
+proj=lcc +lat_0=47.5 +lat_1=30.0 +y_0=3200000.0 +lat_2=60.0 +x_0=3825000.0 +lon_0=-97.0 +a=6370000

When I use the proj/invproj unix command, it works fine:

invproj +proj=lcc +lat_0=47.5 +lat_1=30.0 +y_0=3200000.0 +lat_2=60.0 +x_0=3825000.0 +lon_0=-97.0 +a=6370000 << EOF
800000 800000
850000 800000
900000 800000
EOF
125d15'53.681"W 20d51'29.908"N
124d50'5.035"W  21d0'18.418"N
124d24'10.336"W 21d8'59.642"N

Any idea where the problem is?

Here is my gdal build info:
$ svn info
Path: .
URL: https://svn.osgeo.org/gdal/trunk/gdal
Repository Root: https://svn.osgeo.org/gdal
Repository UUID: f0d54148-0727-0410-94bb-9a71ac55c965
Revision: 21425
Node Kind: directory
Schedule: normal
Last Changed Author: warmerdam
Last Changed Rev: 21425
Last Changed Date: 2011-01-07 11:36:23 -0800 (Fri, 07 Jan 2011)
revision number 21425

Hailey Eckstrand haileye at uvic.ca<mailto:haileye at uvic.ca>
GIS Analyst
Pacific Climate Impacts Consortium
www.PacificClimate.Org<http://www.PacificClimate.Org>
C198 Segdewick Building, University of Victoria
PO Box 1700 Sta CSC, Victoria, BC V8V 2Y2
Tel: (250) 472-5591 Fax: (250) 472-4830



----- End forwarded message -----

-- 
James Hiebert
Lead, Computational Support
Pacific Climate Impacts Consortium
http://www.pacificclimate.org
C178 Segdewick Building, University of Victoria
PO Box 1700 Sta CSC, Victoria, BC V8V 2Y2
E-mail: hiebert at uvic.ca
Tel: (250) 472-4521
Fax: (250) 472-4830


More information about the gdal-dev mailing list