| 1342 | } |
| 1343 | |
| 1344 | static 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 | |
| 1374 | static void osPoint(msOracleSpatialHandler *hand, shapeObj *shape, SDOGeometryObj *obj, int start, int end, lineObj points, pointObj *pnt, int data3d, int data4d) |
| 1375 | { |
no test coverage detected