Centos Manual
Centos Manual
Centos Manual
1 Manual
232 / 315
FROM country
INNER JOIN trails
ON ST_Intersects(country.the_geom, trails.the_geom))
WHERE ST_Dimension(clipped.clipped_geom) = 1 ;
As clipped
--For polys e.g. polygon landmarks, you can also use the sometimes faster hack that buffering anything by 0.0
-- except a polygon results in an empty geometry collection
--(so a geometry collection containing polys, lines and points)
-- buffered by 0.0 would only leave the polygons and dissolve the collection shell
SELECT poly.gid, ST_Multi(ST_Buffer(
ST_Intersection(country.the_geom, poly.the_geom),
0.0)
) As clipped_geom
FROM country
INNER JOIN poly
ON ST_Intersects(country.the_geom, poly.the_geom)
WHERE Not ST_IsEmpty(ST_Buffer(ST_Intersection(country.the_geom, poly.the_geom),0.0));
See Also
ST_Dimension, ST_Dump, ST_Intersects, ST_Multi
7.9.11 ST_LineToCurve
Name
ST_LineToCurve Converts a LINESTRING/POLYGON to a CIRCULARSTRING, CURVED POLYGON
Synopsis
geometry ST_LineToCurve(geometry geomANoncircular);
Description
Converts plain LINESTRING/POLYGONS to CIRCULAR STRINGs and Curved Polygons. Note much fewer points are needed
to describe the curved equivalent.
Availability: 1.2.2?
This function supports 3d and will not drop the z-index.
This method supports Circular Strings and Curves
Examples
SELECT ST_AsText(ST_LineToCurve(foo.the_geom)) As curvedastext,ST_AsText(foo.the_geom) As
non_curvedastext
FROM (SELECT ST_Buffer(POINT(1 3)::geometry, 3) As the_geom) As foo;
curvedatext
non_curvedastext
------------------------------------------------------------------| -----------------------------------------------------------------
See Also
ST_CurveToLine
7.9.12 ST_MemUnion
Name
ST_MemUnion Same as ST_Union, only memory-friendly (uses less memory and more processor time).
Synopsis
geometry ST_MemUnion(geometry set geomfield);
Description
Some useful description here.
Note
Same as ST_Union, only memory-friendly (uses less memory and more processor time). This aggregate function works
by unioning the geometries one at a time to previous result as opposed to ST_Union aggregate which first creates an
array and then unions
Examples
See ST_Union