Ticket #2231 (closed defect: fixed)
GDALReprojectImage() - error with dst srs
| Reported by: | warmerdam | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5.1 |
| Component: | GDAL_Raster | Version: | unspecified |
| Severity: | normal | Keywords: | warp |
| Cc: |
Description
The code for GDALReprojectImage() looks as follows, and if no src or dst wkt values are passed in the dst_wkt will be set to the same as the source regardless of whether the destination dataset has a valid and differening srs set on it.
GDALReprojectImage( GDALDatasetH hSrcDS, const char *pszSrcWKT,
GDALDatasetH hDstDS, const char *pszDstWKT,
GDALResampleAlg eResampleAlg,
double dfWarpMemoryLimit,
double dfMaxError,
GDALProgressFunc pfnProgress, void *pProgressArg,
GDALWarpOptions *psOptions )
{
GDALWarpOptions *psWOptions;
/* -------------------------------------------------------------------- */
/* Default a few parameters. */
/* -------------------------------------------------------------------- */
if( pszSrcWKT == NULL )
pszSrcWKT = GDALGetProjectionRef( hSrcDS );
if( pszDstWKT == NULL )
pszDstWKT = pszSrcWKT;
Change History
Note: See
TracTickets for help on using
tickets.
