Returns a geometry that represents the point set symmetric difference of this geometry with another.
.NET Syntax
|
virtual MgGeometry SymetricDifference(MgGeometry other);
|
Java Syntax
|
virtual MgGeometry SymetricDifference(MgGeometry other);
|
PHP Syntax
|
virtual MgGeometry SymetricDifference(MgGeometry other);
|
- Parameters:
-
- Returns:
- An MgGeometry representing the symmetric difference.
Illustration
if (Geom1.Disjoint(Geom2) == True) then
| A | B | SymDiff |
| Point | MultiPoint | Point | MultiPoint | MultiPoint |
| Point | MultiPoint | LineString | MultiLineString | Geometry Collection (MultiLineString Point+, LineString+) |
| Point | MultiPoint | Polygon | MultiPolygon | Geometry Collection (Point+, Polygon+) |
| LineString | MultiLineString | LineString | MultiLineString | MultiLineString |
| LineString |MultiLineString | Polygon | MultiPolygon | Geometry Collection (LineString+, Polygon+) |
| Polygon | MultiPolygon | Polygon | MultiPolygon | MultiPolygon |
if (Geom1.Touches(Geom2) == True) then
if (Geom1.Crosses(Geom2) == True) then
if (Geom1.Within(Geom2) == True) then
if (Geom1.Overlaps(Geom2) == True) then