Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

Boundary
Buffer
Contains
ConvexHull
Crosses
Difference
Disjoint
Distance
Equals
GetGeometryType
Intersection
Intersects
Overlaps
SymetricDifference
Touches
Union
Within
virtual MgGeometry* MgGeometry::Difference | ( | MgGeometry * | other | ) | `[virtual]`
Returns a geometry that represents a point set difference between this geometric entity and another. .NET Syntax
`virtual MgGeometry Difference(MgGeometry other);`
Java Syntax
`virtual MgGeometry Difference(MgGeometry other);`
PHP Syntax
`virtual MgGeometry Difference(MgGeometry other);`
  Parameters:
  | other | (MgGeometry) The MgGeometry to subtract from this one.
Returns: An MgGeometry representing the difference. ## Illustration if (Geom1.Disjoint(Geom2) == True) then Geom1.Difference(Geom2) = Geom1. if (Geom1.Touches(Geom2) == True) then Geom1.Difference(Geom2) = Geom1. if (Geom1.Crosses(Geom2) == True) then if (Geom1.Within(Geom2) == True) then if (A.Overlaps(B) == True) then

Comments or suggestions? Send us feedback.