From 46849f44f67a62e3d8e3eb656b32f2aebe1c050f Mon Sep 17 00:00:00 2001 From: dufop Date: Wed, 30 Jul 2014 09:17:05 -0400 Subject: [PATCH] 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. --- maporaclespatial.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/maporaclespatial.c b/maporaclespatial.c index c2aaeebde0..7091c99e48 100644 --- a/maporaclespatial.c +++ b/maporaclespatial.c @@ -1625,8 +1625,11 @@ static int osGetOrdinates(msOracleSpatialDataHandler *dthand, msOracleSpatialHan } /* end of gtype big-if */ } /* end of not-null-object if */ - if (compound_type) + if (compound_type){ + if(gtype == 2003) + shape->type = MS_SHAPE_POLYGON; msFreeShape(&newshape); + } return MS_SUCCESS; }