Skip to content

Geometry clipping - summary issue #594

Closed
@systemed

Description

@systemed

This is an umbrella issue to summarise current clipping issues with tilemaker.

History:

Current status:

The most obvious solution is to move to a clipping algorithm which is still fast but doesn't produce degenerate geometries. Some options:

Other possible fixes/improvements:

  • Changing boost::geometry #define feature flags in geom.h may improve results in some (but not all) cases
    • remove BOOST_GEOMETRY_INCLUDE_SELF_TURNS
    • add BOOST_GEOMETRY_NO_ROBUSTNESS
  • Identify when to drop down to boost::geometry::intersection (slower but doesn't create artefacts)
  • There's a paper on "Removal of Artifacts from Polygons Clipped Using the Sutherland-Hodgman Polygon Clipping Algorithm" (J. Michael McGrew) but I haven't been able to find the full paper, only the abstract
  • Identify test case for correct that's causing it to be so slow
  • Allow user to send a signal to interrupt correct, without aborting tile writing
  • Cancel correct after a certain length of time

Known problem locations:

  • lon 24.9829-25.0049, lat 37.7533-37.7707 (near Athens) fails at several zoom levels

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions