Changeset 16009


Ignore:
Timestamp:
Dec 29, 2008 10:28:55 AM (8 years ago)
Author:
warmerdam
Message:

avoid use of CPLString which doesn't work against external libgeotiff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gdal/frmts/gtiff/gt_wkt_srs.cpp

    r15997 r16009  
    15561556        if(peStrLen > 0)
    15571557        {
    1558             CPLString osPeStr;
    1559             osPeStr = "ESRI PE String = ";
    1560             osPeStr += pszPEString;
    1561             GTIFKeySet( psGTIF, PCSCitationGeoKey, TYPE_ASCII, 0, osPeStr.c_str() );
     1558            char *outPeStr = new char[peStrLen + strlen("ESRI PE String = ")+1];
     1559            strcpy(outPeStr, "ESRI PE String = ");
     1560            strcat(outPeStr, pszPEString);
     1561            GTIFKeySet( psGTIF, PCSCitationGeoKey, TYPE_ASCII, 0, outPeStr );
    15621562            peStrStored = TRUE;
     1563            delete[] outPeStr;
    15631564        }
    15641565        if(pszPEString)
Note: See TracChangeset for help on using the changeset viewer.