MCPcopy Create free account
hub / github.com/MapServer/MapServer / msAxisNormalizePoints

Function msAxisNormalizePoints

mapproject.c:1177–1215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1175/************************************************************************/
1176
1177void 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() */

Callers 7

FLTParseGMLEnvelopeFunction · 0.85
msOWSPrintBoundingBoxFunction · 0.85
msAxisDenormalizePointsFunction · 0.85
msWCSGetCoverageFunction · 0.85
msWMSLoadGetMapParamsFunction · 0.85
msWFSGetFeatureFunction · 0.85
msOWSCommonBoundingBoxFunction · 0.85

Calls 2

strcasecmpFunction · 0.85
msDebugFunction · 0.85

Tested by

no test coverage detected