Opened 16 years ago

Closed 16 years ago

#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 (1)

comment:1 by warmerdam, 16 years ago

Resolution: fixed
Status: newclosed

Corrected in trunk (r13803) and 1.5 branch (r13804).

Note: See TracTickets for help on using tickets.