[Gdal-dev] (no subject)

Frank Warmerdam warmerdam at pobox.com
Tue May 27 16:06:01 EDT 2003


Bill Bob wrote:
> Hi,
> 
> I am trying to get familiar with the API by following the WarpAPI 
> tutorial and also from gdalwarp.c and gdalwarptest.c.
> 
> I have included some of my code.  It appears that I do not setup the 
> correct transformation.  My resulting image is in the orginal projection.
> 
> Any thoughts?
...
>     // set projection transformer
>     psWarpOptions->pTransformerArg = GDALCreateGenImgProjTransformer( 
> hSrsDataset,
>                                                                       
> GDALGetProjectionRef(hSrsDataset),
>                                                                       
> hDstDataset,
>                                                                       
> GDALGetProjectionRef(hDstDataset),
>                                                                       
> FALSE,
>                                                                       0.0,
>                                                                       1
>                                                                     );

Bill,

I think the most likely problem is that the source or destination coordinate
systems are not properly defined.  Trying printing out the results of
GDALGetProjectionRef() on the source and destination and see if they make
sense or post them here.

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    | Geospatial Programmer for Rent





More information about the Gdal-dev mailing list