Ticket #2134: gdal-1.5.0-bug-ogr_srs_proj4.patch

File gdal-1.5.0-bug-ogr_srs_proj4.patch, 1.0 kB (added by dgrichard, 4 months ago)

bug fix for ogr_srs_proj4 : prime meridian and Greenwich shift counted twice

  • ogr/ogr_srs_proj4.cpp

    old new  
    697697    const char *pszValue; 
    698698    int  bFullyDefined = FALSE; 
    699699 
    700     /* re-initialization of prime meridian and Greenwich shift */ 
    701     /* to prevent counting them twice                          */ 
    702     pszPM = NULL; 
    703     dfFromGreenwich = 0.0; 
    704  
    705700    pszValue = CSLFetchNameValue(papszNV, "datum"); 
    706701    if( pszValue == NULL ) 
    707702    { 
     
    913908/*      do we want to insert a PROJ.4 EXTENSION item?                   */ 
    914909/* -------------------------------------------------------------------- */ 
    915910    if( strstr(pszProj4,"wktext") != NULL ) 
    916     { 
    917         CPLDebug( "OGR_PROJ4", "WKT extension asked :\n%s", 
    918                   pszProj4 ); 
    919911        SetExtension( GetRoot()->GetValue(), "PROJ4", pszProj4 ); 
    920     } 
    921912 
    922913    CSLDestroy( papszNV ); 
    923914