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

Function osCircle

maporaclespatial.c:1452–1478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1450}
1451
1452static 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
1480static void osArcPolygon(msOracleSpatialHandler *hand, shapeObj *shape, SDOGeometryObj *obj, int start, int end, lineObj arcpoints, int elem_type, int data3d, int data4d)
1481{

Callers 1

osGetOrdinatesFunction · 0.85

Calls 6

msOCIGet3DOrdinatesFunction · 0.85
msOCIGet4DOrdinatesFunction · 0.85
msOCIGet2DOrdinatesFunction · 0.85
msOCIConvertCircleFunction · 0.85
msAddLineFunction · 0.85
strlcpyFunction · 0.85

Tested by

no test coverage detected