arc polygon operators - ObjectVision/GeoDMS GitHub Wiki

Back to Geometric functions


Arc-polygon operators measure, transform, and buffer arc (linestring) geometries. Buffer operators produce polygon output from arc input. For operator library choice, see the notes on polygon operators.

  • arc_length - calculate the total length of each arc (single linestring)
  • mls_length - calculate the total length of each multi-linestring (sum of all component arcs)
  • split_multi_linestring - split multi-linestrings into individual single-linestring parts, each as a separate domain entry
  • arc2segm - decompose each arc or polygon into individual line segments (pairs of consecutive vertices)
  • arc2segm_uint64 - variant of arc2segm that returns uint64 index values; for use with large datasets

Simplification operators:

  • bg_simplify_linestring - simplify the geometry of an arc using the Ramer-Douglas-Peucker algorithm (boost geometry)
  • geos_simplify_linestring - simplify the geometry of an arc using the Ramer-Douglas-Peucker algorithm (geos, recommended)

Buffer operators based on the geos library (recommended: fastest, supports float64/dpoint):

Buffer operators based on the boost geometry library (float64/dpoint):

Buffer operators based on the boost polygon library (integer coordinates only):

  • bp_buffer_linestring - creates a buffer polygon of a given width around each arc (integer coordinates)

Buffer operators based on the cgal library: