Skip to content

Commit

Permalink
Fix an issue with the complex polygon in oracle
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dufop committed Jul 30, 2014
1 parent f2ab894 commit 46849f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion maporaclespatial.c
Expand Up @@ -1625,8 +1625,11 @@ static int osGetOrdinates(msOracleSpatialDataHandler *dthand, msOracleSpatialHan
} /* end of gtype big-if */ } /* end of gtype big-if */
} /* end of not-null-object if */ } /* end of not-null-object if */


if (compound_type) if (compound_type){
if(gtype == 2003)
shape->type = MS_SHAPE_POLYGON;
msFreeShape(&newshape); msFreeShape(&newshape);
}


return MS_SUCCESS; return MS_SUCCESS;
} }
Expand Down

0 comments on commit 46849f4

Please sign in to comment.