ThinkGeo.com    |     Documentation    |     Premium Support

Spatial Relationships

Hi,


I get these screenSnap from your samples.


Touching


Overlapping


And the results of Touching & Overlapping make me confused. Could you explain the spatial relationships to me?



 


Jue,
Thanks for your post and interestsin MapSuite Desktop product.
 
Following is the explainations for Touching and Overlapping. The key factor is that touching should share a boundary point while overlapping only need to share some internal points. You know the RectangleShape only contains 4 boundary points.
 
Touching:
This method returns if the current shape and the targetShape have at least one boundary point in common, but no interior points.
 
Overlapping:
This method returns if the current shape and the targetShape share some but not all points in common.
 
Any more questions just feel free to let me know.
 
Thanks.
 
Yale