What does the error message GeometryCollection is not supported now mean? I'm trying to get the difference between a PolygonShape and another PolygonShape I created using the Buffer method. I get this error message every time. Any ideas?
GeometryCollection is not supported now mean
Peter,
Thanks for your post and questions.
I think the reason for this is that we do not support empty geometry up to now. We ultilize NTS in which support GeometryCollection while we do not implement it up to now.
You could go around this problem by determing its relationship first shown as following, hope it helps:
AreaBaseShape differenceShape = null;
if (!areaShape1.Contains(areaShape2) && !areaShape2.Contains(areaShape1))
{
differenceShape = areaShape1.GetDifference(areaShape2);
}
Any more quesitons just feel free to let me know.
Thanks.
Yale