This project has moved. For the latest updates, please go here.

find percentage of overlaping geometries

Topics: SharpMap v2.0
Feb 16, 2009 at 8:05 PM
Ok this is propably a silly question to ask. I am using SharpMap v.2

Is there an (implemented) method to find if two geometries (areas) in different Layers are overlaping(intersect) and the percentage of overlaping ?
Feb 18, 2009 at 10:11 AM
Hi Agelos,

I haven't tried it but how about :

IGeometry a = ....
IGeometry b = ....
IGeometry c = a.Intersection(b);
double perc = c.Area / a.Area * 100
hth jd