ThinkGeo.com    |     Documentation    |     Premium Support

Intersect of 2 EllipseShape to another color

Hello. I have 2 EllipseShape with blue color, how i can draw new poly with darkblue color  - intersect of this ellipses.



PointShape ShapePoint1 = new PointShape(value.lot, value.lat);


EllipseShape EllipseShape1 = new EllipseShape(ShapePoint1, (double)5, GeographyUnit.DecimalDegree, DistanceUnit.NauticalMile);



PointShape ShapePoint2 = new PointShape(value2.lot, value2.lat);


EllipseShape EllipseShape2 = new EllipseShape(ShapePoint2, (double)5, GeographyUnit.DecimalDegree, DistanceUnit.NauticalMile);


if (EllipseShape1.Intersects( EllipseShape2 )){


// ??????


}


How create new shape with figure intersect of this circles ?


Thx.




I found crossing points 



MultipointShape greatCircleMultiLineShape = EllipseShape2.GetCrossing(EllipseShape1); 


 




b23.ru/ygx1&t=.png


what next ?



Oh.  
  
  MultipolygonShape g_int = EllipseShape2.GetIntersection(EllipseShape1); 
  
 I think i can resolve my problem )

Hi Vladislav,  
  
 Looks like you are on the right track!