Skip to content

Commit 46849f4

Browse files
committed
Fix an issue with the complex polygon in oracle
The problem was when a polygon is composed from multiple line string and/or an arc polygon, the type of the shape is change for MS_SHAPE_LINE instead to keep the MS_SHAPE_POLYGON flag. So to solve it I validate the type provide by oracle and if it's a complex polygon I force to set the shape type to MS_SHAPE_POLYGON and the shape are now process as a polygon instead of a line string.
1 parent f2ab894 commit 46849f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

maporaclespatial.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -1625,8 +1625,11 @@ static int osGetOrdinates(msOracleSpatialDataHandler *dthand, msOracleSpatialHan
16251625
} /* end of gtype big-if */
16261626
} /* end of not-null-object if */
16271627

1628-
if (compound_type)
1628+
if (compound_type){
1629+
if(gtype == 2003)
1630+
shape->type = MS_SHAPE_POLYGON;
16291631
msFreeShape(&newshape);
1632+
}
16301633

16311634
return MS_SUCCESS;
16321635
}

0 commit comments

Comments
 (0)