Tuesday, 1 May 2018

coordinate system - Simplifying geometries (generalization)


What are the recommended ways of simplifying geometries? Keeping in mind projections, and simplifying state geometries for example.


I've heard about converting to an 'equi-distant' projection that allows simplification without distortion, and then converting back to your chosen projection.



Answer



As glennon mentioned, the standard algorithm for doing this is Douglas-Peucker, which is the default algorithm used in software such as PostGIS (i.e. GEOS) via St_Simplify, ArcGIS via Generalize and GRASS via v.generalize. The Wikipedia article also links to a Python implementation.


GRASS supports a number of different algorithms, as explained in the help page for v.generalize.


On the projection issue, I think in this case its a red herring which can be ignored. The only issue which comes to mind is potentially densifying lines to prevent them from being oversimplified.



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...