Good Morning,
I mentioned that I'm new to using TrackShapes, right?
I'm using TrackShapes to allow a user to define polygons. Before using TrackShapes, I allowed the user to define a polygon by clicking a series of points on the map. When they were done, I would verify that the polygon had been defined by clicking the points counter-clockwise and if they hadn't, I would reverse the order of the vertices before creating my polygon. I need them to be defined counter-clockwise for querying SQL Server.
I'm now using TrackShapes, so I'm not working with the individual vertices, but rather I get a PolygonShape when they are through. I know that I could parse the well defined text for the vertices and then run my own check and finally reverse the order of the vertices if needed. However, I imagine that the PolygonShape class contains a hidden list of vertices. Maybe I'm wrong on that. I'm wondering if the PolygonShape class could offer a method to determine if the polygon is defined clockwise or counter-clockwise and a method for getting the well defined text showing the vertices in the opposite direction if needed.
Of course, maybe there's a way the library handles this already, but I'm not aware of it.
Thank you!
Kimberly