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

Function osPointCluster

maporaclespatial.c:1344–1372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1342}
1343
1344static void osPointCluster(msOracleSpatialHandler *hand, shapeObj *shape, SDOGeometryObj *obj, int start, int end, lineObj points, int interpretation, int data3d, int data4d)
1345{
1346 int n;
1347
1348 n = (end - start)/2;
1349 //n = interpretation;
1350
1351 //
1352
1353 //if (n == interpretation)
1354 // {
1355 points.point = (pointObj *)malloc( sizeof(pointObj)*n );
1356
1357 if (data3d)
1358 n = msOCIGet3DOrdinates( hand, obj, start, end, points.point );
1359 else if (data4d)
1360 n = msOCIGet4DOrdinates( hand, obj, start, end, points.point );
1361 else
1362 n = msOCIGet2DOrdinates( hand, obj, start, end, points.point );
1363
1364 if (n == interpretation && n>0)
1365 {
1366 shape->type = MS_SHAPE_POINT;
1367 points.numpoints = n;
1368 msAddLine( shape, &points );
1369 }
1370 free( points.point );
1371 // }
1372}
1373
1374static void osPoint(msOracleSpatialHandler *hand, shapeObj *shape, SDOGeometryObj *obj, int start, int end, lineObj points, pointObj *pnt, int data3d, int data4d)
1375{

Callers 1

osGetOrdinatesFunction · 0.85

Calls 4

msOCIGet3DOrdinatesFunction · 0.85
msOCIGet4DOrdinatesFunction · 0.85
msOCIGet2DOrdinatesFunction · 0.85
msAddLineFunction · 0.85

Tested by

no test coverage detected