[Gdal-dev] gdalwarp error
Huajun Zhang
huajun_zhang at usgs.gov
Wed Mar 21 14:59:21 EDT 2007
Thank you very much, Frank. I met another problem when I use gdalwarp:
gdalwarp -t_srs '+proj=aea +lat_1=29.50 +lat_2=45.50 +lat_0=23.00
+lon_0=-96.00 +x_0=0.000 +y_0=0.000 +ellps=GRS80 +units=m +datum=NAD83'
abl.sid abl.img
I got the error message:
ERROR 1: Translating source or target SRS failed: '+proj=aea
I tried to use C API, I followed the gdalwarp API tutorial, the
reprojection does not get the correct result either:
OGRSpatialReference oSRS;
oSRS.SetProjCS( "Albers Conical Equal Area" );
oSRS.SetACEA( 29.5, 45.5, 23.0, -96.0, 0.0, 0.0);
oSRS.SetWellKnownGeogCS( "NAD83" );
oSRS.exportToWkt( &pszDstWKT );
Do you have any idea?
Thanks
Huajun Zhang
Frank Warmerdam <warmerdam at pobox.com>
03/20/2007 01:40 AM
To
Huajun Zhang <huajun_zhang at usgs.gov>
cc
gdal-dev at lists.maptools.org
Subject
Re: [Gdal-dev] Assign projection to a tif image
Huajun Zhang wrote:
>
> Hi,
>
> Is there any method to define a projection to a image rather than
> reproject the image with gdalwarp?
Huajun Zhang,
A projection can be attached to an image in the process of translating
it if the existing projection is wrong or if the input image lacks one
entirely.
For instance,
gdal_translate -a_srs '+proj=utm +zone=11 +datum=WGS84' in.tif out.tif
Is this the sort of operation you had in mind?
Best regards,
--
---------------------------------------+--------------------------------------
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 | President OSGeo, http://osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070321/d5ede028/attachment.html
More information about the Gdal-dev
mailing list