id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 5841,"Case sensitive comparisons with ""epsg""",rolandhill,warmerdam,"Hi, I have recently been struggling with setting the projection of newly created ERS file. While there was another issue involved (another bug report), I think that a case sensitive comparison with ""epsg"" was also causing problems. ""EPSG"" in WKT strings is always upper case that I have seen, so EQUAL(""epsg"") doesn't match. eg, in ecwcreatcopy.cpp {{{ if( oSRS.IsProjected() ) { const char *pszAuthName = oSRS.GetAuthorityName( ""PROJCS"" ); if( pszAuthName != NULL && EQUAL(pszAuthName,""epsg"") ) { nEPSGCode = atoi(oSRS.GetAuthorityCode( ""PROJCS"" )); } } }}} there are many cases throughout GDAL where there are comparisons with upper case ""PROJCS"", ""GEOCS"" etc then ""epsg"". It looks to be a global search and replace issue. Just do a case sensitive search for ""epsg"" (including quotes) to pick them up. I have replaced all ""epsg"" with ""EPSG"" (except JSON driver - not tested) and it appears to be working OK now. This was before I found another problem, so can't be certain it was causing an issue. Using 1.11.0 Regards, Roland ",defect,closed,normal,,GDAL_Raster,1.11.0,normal,invalid,,