Skip to content

Geometric functions

Jip Claassens edited this page Mar 31, 2026 · 87 revisions

Geometric functions calculate with geometries (coordinates) of points, arcs or polygons

GeoDMS supports four geometry libraries with different trade-offs. geos is the recommended default for most tasks: it is fast, numerically robust, and supports float64 (dpoint) coordinates. boost geometry (prefix bg_) also supports float64 and can be used as a fallback. boost polygon (prefix bp_) is an older library that only handles integer coordinates (ipoint, spoint) but is still available. cgal (prefix cgal_) is an alternative that may be better suited for specific geometric operations as it is precise, but also much slower.

For most polygon and arc operations, a geos_ variant should be the first choice. For buffering of points, arcs and polygons, all four libraries provide equivalent operators; the geos_ variants are recommended unless there is a specific reason to use another.

See the sub-pages below for detailed operator lists:

Clone this wiki locally