processing

This module contains functions that computes new geographies by processing existing geographies.

ST_DELAUNAYLINES

ST_DELAUNAYLINES(points)

Description

Calculates the Delaunay triangulation of the points provided. A MultiLineString object is returned.

  • points: GEOMETRY MultiPoint input to the Delaunay triangulation.

Return type

VARCHAR(MAX)

Example

SELECT carto.ST_DELAUNAYLINES(
  ST_GEOMFROMTEXT(
    'MULTIPOINT((-70.3894720672732 42.9988854818585),(-71.1048188482079 42.6986831053718),(-72.6818783178395 44.1191152795997),(-73.8221894711314 35.1057463244819))'
  )
);
-- {"type": "MultiLineString", "coordinates": [[[-71.1048188482, 42.6986831054], [-70.3894720673, 42.9988854819], [-73.8221894711, 35.1057463245], [-71.1048188482, 42.6986831054]], ...

ST_DELAUNAYPOLYGONS

Description

Calculates the Delaunay triangulation of the points provided. A MultiPolygon object is returned.

  • points: GEOMETRY MultiPoint input to the Delaunay triangulation.

Return type

VARCHAR(MAX)

Example

ST_POLYGONIZE

Description

Creates a polygon from a geography which contains lines that represent its edges.

  • line: GEOMETRY lines which represent the polygon edges.

Return type

GEOMETRY

Example

ST_VORONOILINES

Description

Calculates the Voronoi diagram of the points provided. A MultiLineString object is returned.

  • points: GEOMETRY MultiPoint input to the Voronoi diagram.

Return type

VARCHAR(MAX)

Example

ST_VORONOIPOLYGONS

Description

Calculates the Voronoi diagram of the points provided. A MultiPolygon object is returned.

  • points: GEOMETRY MultiPoint input to the Voronoi diagram.

Return type

VARCHAR(MAX)

Example

Last updated

Was this helpful?