| 1175 | /************************************************************************/ |
| 1176 | |
| 1177 | void msAxisNormalizePoints( projectionObj *proj, int count, |
| 1178 | double *x, double *y ) |
| 1179 | |
| 1180 | { |
| 1181 | int i; |
| 1182 | const char *axis = NULL; |
| 1183 | |
| 1184 | for( i = 0; i < proj->numargs; i++ ) |
| 1185 | { |
| 1186 | if( strstr(proj->args[i],"epsgaxis=") != NULL ) |
| 1187 | { |
| 1188 | axis = strstr(proj->args[i],"=") + 1; |
| 1189 | break; |
| 1190 | } |
| 1191 | } |
| 1192 | |
| 1193 | if( axis == NULL ) |
| 1194 | return; |
| 1195 | |
| 1196 | if( strcasecmp(axis,"en") == 0 ) |
| 1197 | return; |
| 1198 | |
| 1199 | if( strcasecmp(axis,"ne") != 0 ) |
| 1200 | { |
| 1201 | msDebug( "msAxisNormalizePoints(): odd +epsgaxis= value: '%s'.", |
| 1202 | axis ); |
| 1203 | return; |
| 1204 | } |
| 1205 | |
| 1206 | /* Switch axes */ |
| 1207 | for( i = 0; i < count; i++ ) |
| 1208 | { |
| 1209 | double tmp; |
| 1210 | |
| 1211 | tmp = x[i]; |
| 1212 | x[i] = y[i]; |
| 1213 | y[i] = tmp; |
| 1214 | } |
| 1215 | } |
| 1216 | |
| 1217 | /************************************************************************/ |
| 1218 | /* msAxisDenormalizePoints() */ |
no test coverage detected