| 1450 | } |
| 1451 | |
| 1452 | static void osCircle(msOracleSpatialHandler *hand, shapeObj *shape, SDOGeometryObj *obj, int start, int end, lineObj points, pointObj *pnt, int data3d, int data4d) |
| 1453 | { |
| 1454 | int n; |
| 1455 | |
| 1456 | if (data3d) |
| 1457 | n = msOCIGet3DOrdinates( hand, obj, start, end, pnt ); /* n must be < 5 */ |
| 1458 | else if (data4d) |
| 1459 | n = msOCIGet4DOrdinates( hand, obj, start, end, pnt ); /* n must be < 5 */ |
| 1460 | else |
| 1461 | n = msOCIGet2DOrdinates( hand, obj, start, end, pnt ); /* n must be < 5 */ |
| 1462 | |
| 1463 | if (n == 3) |
| 1464 | { |
| 1465 | if (msOCIConvertCircle( pnt )) |
| 1466 | { |
| 1467 | shape->type = MS_SHAPE_POINT; |
| 1468 | points.numpoints = 2; |
| 1469 | points.point = pnt; |
| 1470 | msAddLine( shape, &points ); |
| 1471 | } |
| 1472 | else |
| 1473 | { |
| 1474 | strlcpy( (char *)hand->last_oci_error, "Points in circle object are colinear", sizeof(hand->last_oci_error)); |
| 1475 | hand->last_oci_status = MS_FAILURE; |
| 1476 | } |
| 1477 | } |
| 1478 | } |
| 1479 | |
| 1480 | static void osArcPolygon(msOracleSpatialHandler *hand, shapeObj *shape, SDOGeometryObj *obj, int start, int end, lineObj arcpoints, int elem_type, int data3d, int data4d) |
| 1481 | { |
no test coverage detected