Generalize Vector Tool Parity

There are two major generalization algorithms implemented across a couple different tools we’re aiming to test. We’ll use the states as we explore further in that Explainer, but here I’m just aiming to demonstrate parity of approach across different tools moreso than the impact that process has on the data.

The douglas-peucker algorithm, as implemented in:

  • ogr (ogr2ogr '{input_data_path.gpkg}' '{outputput_data_path.gpkg}' -simplify 50)
  • sf (sf::st_simplify(input_data, preserveTopology = TRUE, dTolerance = 50)).

Note that SF has intelligent handles that will take care of the projection for us. That’s not the case with OGR, so make sure you’re in the right spatial frame.

Vertex Reduction Analysis

Chaikin’s corner cutting algorithm, as implemented in:

package’s suite of simplifications, which include:

Data Analysis