Skip to main content

Module geometry_tile_data

Module geometry_tile_data 

Source

Functions§

is_boundary_edge
Whether the edge from a to b runs along a line the tile was clipped at. Clipping cuts on the buffer around the tile, so such an edge lies outside it, and belongs to the cut rather than to the feature.
is_entirely_outside
Whether all of ring lies beyond one edge of the tile, in its buffer.
limit_holes
Truncates polygon to its max_holes largest inner rings by absolute area. The order of the kept rings is unspecified, and so is which of several rings tied at the cut is kept.
round_polygon_corners
Replaces each corner of the rings of polygon with an arc whose ends lie corner_distance tile units from the corner along its edges, or 20% of the shorter edge if that is less, in steps of at most 30°.