Permafacture / Py-Visvalingam-Whyatt

Python implementation of Visvalingam and Whyatt's algorithm for reducing the complexity of poly-lines
44 stars 12 forks source link

triangle area not representative of curved GIS projections #4

Open Permafacture opened 9 years ago

Permafacture commented 9 years ago

It would be slow to use a projection dependent triangle area calculation. This would only matter for shapes that span a lot of latitude or longitude. If things were confined to planar or lat/lon, then lat/lon could make a rough correction by multiplying the area by cosine of the latitude of something? Also, VWSimplifier could take a triangle area calculating function as an argument, so in the rare case where you are working with shapes that do span a lot of latitude or longitude, one could use a slower but more accurate function.