Hi ThinkGeo Team
Can you please, give me a sample code on how to plot a polygon shape out of a given set of GPS coordinates which form corners for that polygon?
Best Regards,
Vincent
Hi ThinkGeo Team
Can you please, give me a sample code on how to plot a polygon shape out of a given set of GPS coordinates which form corners for that polygon?
Best Regards,
Vincent
Hi Vincent,
I think the code snippet should be helpful.
Collection<Vertex> points = new Collection<Vertex>();
// Loop your set of GPS coordinates and add them to collection points like this:
// Vertex vertex = new Vertex(x, y);
// points.Add(vertex);
RingShape ring = new RingShape(points);
PolygonShape polygon = new PolygonShape(ring);
Any question please let me know.
Regards,
Don