Pablo,
Thanks for your post,
It is easy to judgement the point's location is whether in the rectangle shape, here is the code below:
RectangleShape rectangleShape = Map1.EditOverlay.Features[0].GetShape() as RectangleShape;
Collection<PointShape> GPSPoints = new Collection<PointShape>();
bool isWithin = false;
Collection<PointShape> insidesPoints = new Collection<PointShape>();
Collection<PointShape> outsidePoints = new Collection<PointShape>();
foreach (PointShape point in GPSPoints)
{
isWithin = point.IsWithin(rectangleShape);
if (isWithin)
{
insidesPoints.Add(point);
}
else
{
outsidePoints.Add(point);
}
}
Please note, the Map1.EditOverlay.Features[0] is represented the rectangle shape what you drew on the map and we find out the outside points and inside points according to the IsWithin API. Please use your real GPS data to test based on the code above, if there are any problems or questions please let us know again,
Thanks,
Scott,