From: Regina Obe Date: Fri, 14 Nov 2008 23:46:05 +0000 (+0000) Subject: Move over rest of non-MM compliant Geometry Constructor functions X-Git-Tag: 1.4.0b1~507 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=635aaf10159709793c6c9f1a30f603004e30b22d;p=postgis Move over rest of non-MM compliant Geometry Constructor functions git-svn-id: http://svn.osgeo.org/postgis/trunk@3291 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference.xml b/doc/reference.xml index e056ecf49..6ccdfd01c 100644 --- a/doc/reference.xml +++ b/doc/reference.xml @@ -419,38 +419,6 @@ - - Geometry Constructors - - - - ST_MakeBox2D(<LL>, <UR>) - - - Creates a BOX2D defined by the given point - geometries. - - - - - ST_MakeBox3D(<LLB>, <URT>) - - - Creates a BOX3D defined by the given point - geometries. - - - - - ST_LineFromMultiPoint(multipoint) - - - Creates a LineString from a MultiPoint geometry. - - - - - Geometry Editors diff --git a/doc/reference_new.xml b/doc/reference_new.xml index d0e2a509f..c6622e89d 100644 --- a/doc/reference_new.xml +++ b/doc/reference_new.xml @@ -1437,6 +1437,155 @@ SELECT ST_GeomFromText('CIRCULARSTRING(220268 150415,220227 150505,220227 150406 + + + ST_LineFromMultiPoint + + Creates a LineString from a MultiPoint geometry. + + + + + + geometry ST_LineFromMultiPoint + geometry aMultiPoint + + + + + + Description + + Creates a LineString from a MultiPoint geometry. + + + + + + + This function supports 3d and will not drop the z-index. + + + + + Examples + + +--Create a 3d line string from a 3d multipoint +SELECT ST_AsEWKT(ST_LineFromMultiPoint(ST_GeomFromEWKT('MULTIPOINT(1 2 3, 4 5 6, 7 8 9)'))); +--result-- +LINESTRING(1 2 3,4 5 6,7 8 9) + + + + + + See Also + + , , + + + + + + ST_MakeBox2D + + Creates a BOX2D defined by the given point + geometries. + + + + + + box2d ST_MakeBox2D + geometry pointLowLeft + geometry pointUpRight + + + + + + Description + + Creates a BOX2D defined by the given point + geometries. This is useful for doing range queries + + + + + Examples + + +--Return all features that fall reside or partly reside in a US national atlas coordinate bounding box +--It is assumed here that the geometries are stored with SRID = 2163 (US National atlas equal area) +SELECT feature_id, feature_name, the_geom +FROM features +WHERE the_geom && ST_SetSRID(ST_MakeBox2D(ST_Point(-989502.1875, 528439.5625), + ST_Point(-987121.375 ,529933.1875)),2163) + + + + + See Also + + , , , + + + + + + ST_MakeBox3D + + Creates a BOX3D defined by the given 3d point + geometries. + + + + + + box3d ST_MakeBox3D + geometry point3DLowLeftBottom + geometry point3DUpRightTop + + + + + + Description + + Creates a BOX3D defined by the given 2 3D point + geometries. + + + + + + + This function supports 3d and will not drop the z-index. + + + + + Examples + + +SELECT ST_MakeBox3D(ST_MakePoint(-989502.1875, 528439.5625, 10), + ST_MakePoint(-987121.375 ,529933.1875, 10)) As abb3d + +--bb3d-- +-------- +BOX3D(-989502.1875 528439.5625 10,-987121.375 529933.1875 10) + + + + + + See Also + + , , + + + ST_MakeLine