Changeset 14767
- Timestamp:
- 06/25/08 10:12:03 (5 months ago)
- Files:
-
- trunk/gdal/frmts/idrisi/IdrisiDataset.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gdal/frmts/idrisi/IdrisiDataset.cpp
r13973 r14767 58 58 #define extSMP "smp" 59 59 #define extREF "ref" 60 #define extRSTu "RST" 61 #define extRDCu "RDC" 62 #define extSMPu "SMP" 63 #define extREFu "REF" 60 64 61 65 //----- field names on rdc file: … … 117 121 #define rstMETER "m" 118 122 #define rstLATLONG "latlong" 123 #define rstLATLONG2 "lat/long" 119 124 #define rstPLANE "plane" 120 125 #define rstUTM "utm-%d%c" … … 440 445 if( ! FileExists( pszLDocFilename ) ) 441 446 { 442 return NULL; 447 pszLDocFilename = CPLResetExtension( poOpenInfo->pszFilename, extRDCu ); 448 449 if( ! FileExists( pszLDocFilename ) ) 450 { 451 return NULL; 452 } 443 453 } 444 454 … … 1081 1091 const char *pszAssociated; 1082 1092 1093 // -------------------------------------------------------------------- 1094 // Symbol table file 1095 // -------------------------------------------------------------------- 1096 1083 1097 pszAssociated = CPLResetExtension( pszFilename, extSMP ); 1084 1098 … … 1087 1101 papszFileList = CSLAddString( papszFileList, pszAssociated ); 1088 1102 } 1103 else 1104 { 1105 pszAssociated = CPLResetExtension( pszFilename, extSMPu ); 1106 1107 if( FileExists( pszAssociated ) ) 1108 { 1109 papszFileList = CSLAddString( papszFileList, pszAssociated ); 1110 } 1111 } 1112 1113 // -------------------------------------------------------------------- 1114 // Documentation file 1115 // -------------------------------------------------------------------- 1089 1116 1090 1117 pszAssociated = CPLResetExtension( pszFilename, extRDC ); … … 1094 1121 papszFileList = CSLAddString( papszFileList, pszAssociated ); 1095 1122 } 1123 else 1124 { 1125 pszAssociated = CPLResetExtension( pszFilename, extRDCu ); 1126 1127 if( FileExists( pszAssociated ) ) 1128 { 1129 papszFileList = CSLAddString( papszFileList, pszAssociated ); 1130 } 1131 } 1132 1133 // -------------------------------------------------------------------- 1134 // Reference file 1135 // -------------------------------------------------------------------- 1096 1136 1097 1137 pszAssociated = CPLResetExtension( pszFilename, extREF ); … … 1100 1140 { 1101 1141 papszFileList = CSLAddString( papszFileList, pszAssociated ); 1142 } 1143 else 1144 { 1145 pszAssociated = CPLResetExtension( pszFilename, extREFu ); 1146 1147 if( FileExists( pszAssociated ) ) 1148 { 1149 papszFileList = CSLAddString( papszFileList, pszAssociated ); 1150 } 1102 1151 } 1103 1152 … … 2098 2147 // --------------------------------------------------------- 2099 2148 2100 if( EQUAL( pszRefSystem, rstLATLONG ) ) 2149 if( EQUAL( pszRefSystem, rstLATLONG ) || 2150 EQUAL( pszRefSystem, rstLATLONG2 ) ) 2101 2151 { 2102 2152 oSRS.SetWellKnownGeogCS( "WGS84" ); … … 2172 2222 2173 2223 const char *pszIdrisiDir = CPLGetConfigOption( "IDRISIDIR", NULL ); 2224 2174 2225 if( ( pszIdrisiDir ) != NULL ) 2175 2226 {
