Tag Info

New answers tagged


I've tried a possible solution to the convex/concave polygon coordinate orientation, based on the left-hand rule (right-hand if required). Basically we can find the area of a polygon by adding the areas of the trapezoids defined by the polygons edge and a line corresponding to the min Y value of all the coordinates of the polygon. The min Y line is ...


I don't have a C# solution but here is how to do it in Java using JTS and GeoTools. But you should be able to recreate it in any language which provides some basic libraries/methods. The algorithm comes down to for each polygon do if outer ring is counter clockwise then reverse outer ring for each inner ring reverse it so in ...

Top 50 recent answers are included