I have an app running OpenLayers and have come across an interesting problem.
I create a polygon, called Project. Then I have sub-projects that are inside that polygon.
The first time you create a sub-project, I clip the sub-project so that it is inside the Project.
SpatialManager.ClipShape(subShape, projectShape);
When you go to edit a project, I want to make sure that you keep the sub-project inside the Project.
if(projectShape.STContains(subShape).isFalse)
The problem comes with the clipping/contains. When clipping, the project and sub-project share the same boundary lines.
STContains wont be true because they share lines.
Is there anyway to check if a polygon contains a percentage of another shape, or contains with sharing lines?
Thanks.
