Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1 Manual
222 / 315
This method implements the OpenGIS Simple Features Implementation Specification for SQL 1.1. s2.1.1.3
This method implements the SQL/MM specification. SQL-MM 3: 5.1.16
This function supports 3d and will not drop the z-index.
Examples
--Get estimate of infected area based on point observations
SELECT d.disease_type,
ST_ConvexHull(ST_Collect(d.the_geom)) As the_geom
FROM disease_obs As d
GROUP BY d.disease_type;
Convex Hull of a MultiLinestring and a MultiPoint seen together with the MultiLinestring and MultiPoint
SELECT ST_AsText(ST_ConvexHull(
ST_Collect(
ST_GeomFromText(MULTILINESTRING((100 190,10 8),(150 10, 20 30))),
ST_GeomFromText(MULTIPOINT(50 5, 150 30, 50 10, 10 10))
)) );
---st_astext-POLYGON((50 5,10 8,10 10,100 190,150 30,150 10,50 5))
See Also
ST_Collect, ST_MinimumBoundingCircle
7.9.5 ST_CurveToLine
Name
ST_CurveToLine Converts a CIRCULARSTRING/CURVEDPOLYGON to a LINESTRING/POLYGON
Synopsis
geometry ST_CurveToLine(geometry curveGeom);
geometry ST_CurveToLine(geometry curveGeom, integer segments_per_qtr_circle);
Description
Converst a CIRCULAR STRING to regular LINESTRING or CURVEPOLYGON to POLYGON. Useful for outputting to devices that cant support CIRCULARSTRING geometry types
Converts a given geometry to a linear geometry. Each curved geometry or segment is converted into a linear approximation using
the default value of 32 segments per quarter circle
Availability: 1.2.2?
This method implements the OpenGIS Simple Features Implementation Specification for SQL 1.1.
This method implements the SQL/MM specification. SQL-MM 3: 7.1.7
This function supports 3d and will not drop the z-index.
This method supports Circular Strings and Curves
Examples
SELECT ST_AsText(ST_CurveToLine(ST_GeomFromText(CIRCULARSTRING(220268 150415,220227
150505,220227 150406))));