the largest dimension of the components of a
GEOMETRYCOLLECTION.</para>
- <programlisting>SELECT ST_dimension('GEOMETRYCOLLECTION(LINESTRING(1 1,0 0),POINT(0 0))');
-dimension
+ <programlisting>SELECT ST_Dimension('GEOMETRYCOLLECTION(LINESTRING(1 1,0 0),POINT(0 0))');
+ST_Dimension
-----------
1</programlisting>
</listitem>
</varlistentry>
<varlistentry>
- <term>ST_GeometryN(geometry,int)</term>
+ <term>ST_GeometryN(geometry,nth integer)</term>
<listitem>
<para>Return the N'th geometry if the geometry is a
</varlistentry>
<varlistentry>
- <term>ST_PointN(geometry,integer)</term>
+ <term>ST_PointN(geometry,nth integer)</term>
<listitem>
<para>Return the N'th point in the first linestring in the
</varlistentry>
<varlistentry>
- <term>ST_InteriorRingN(geometry,integer)</term>
+ <term>ST_InteriorRingN(geometry,nth integer)</term>
<listitem>
<para>Return the N'th interior ring of the polygon geometry.
<listitem>
<para>Returns the type of the geometry as a string. EG:
- 'Linestring', 'Polygon', etc. This function differs from
- GeometryType(geometry) in the case of the string that is returned,
+ 'ST_Linestring', 'ST_Polygon','ST_MultiPolygon' etc. This function differs from
+ GeometryType(geometry) in the case of the string and ST in front that is returned,
as well as the fact that it will not indicate whether the geometry
is measured.</para>
</listitem>
<variablelist>
<varlistentry>
- <term>ST_GeomFromText(text,[<srid>])</term>
+ <term>ST_GeomFromText(text)</term>
+ <term>ST_GeomFromText(text,srid integer)</term>
<listitem>
- <para>Makes a Geometry from WKT with the given SRID.</para>
+ <para>Makes a Geometry from WKT with the given SRID. If no SRID is passed in SRID is unknown (-1 currently).</para>
<para>OGC SPEC 3.2.6.2 - option SRID is from the conformance
suite</para>
</varlistentry>
<varlistentry>
- <term>ST_PointFromText(text,[<srid>])</term>
+ <term>ST_PointFromText(text)</term>
+ <term>ST_PointFromText(text,srid integer)</term>
<listitem>
<para>Makes a Geometry from WKT with the given SRID. If SRID is
</varlistentry>
<varlistentry>
- <term>ST_LineFromText(text,[<srid>])</term>
+ <term>ST_LineFromText(text)</term>
+ <term>ST_LineFromText(text,srid integer)</term>
- <listitem>
- <para>Makes a Geometry from WKT with the given SRID. If SRID is
- not give, it defaults to -1.</para>
-
- <para>OGC SPEC 3.2.6.2 - option SRID is from the conformance
- suite</para>
-
- <para>Throws an error if the WKT is not a Line</para>
- </listitem>
+ <listitem>
+ <para>Makes a Geometry from WKT with the given SRID. If SRID is
+ not give, it defaults to -1.</para>
+
+ <para>OGC SPEC 3.2.6.2 - option SRID is from the conformance
+ suite</para>
+
+ <para>Throws an error if the WKT is not a Line</para>
+ </listitem>
</varlistentry>
<varlistentry>
- <term>ST_LinestringFromText(text,[<srid>])</term>
-
- <listitem>
- <para>Makes a Geometry from WKT with the given SRID. If SRID is
- not give, it defaults to -1.</para>
-
- <para>from the conformance suite</para>
-
- <para>Throws an error if the WKT is not a Line</para>
- </listitem>
+ <term>ST_LinestringFromText(text)</term>
+ <term>ST_LinestringFromText(text,srid integer)</term>
+
+ <listitem>
+ <para>Makes a Geometry from WKT with the given SRID. If SRID is
+ not give, it defaults to -1.</para>
+
+ <para>from the conformance suite</para>
+
+ <para>Throws an error if the WKT is not a Line</para>
+ </listitem>
</varlistentry>
<varlistentry>
SELECT p.gid, p.province_name,
CASE WHEN
ST_Accum(w.the_geom) IS NULL THEN p.the_geom
- ELSE ST_MakePolygon(ST_LineMerge(ST_Boundary(p.the_geom)), ST_Accum(w.the_geom))) END
+ ELSE ST_MakePolygon(ST_LineMerge(ST_Boundary(p.the_geom)), ST_Accum(w.the_geom)) END
FROM
provinces p LEFT JOIN waterlines w
ON (ST_Within(w.the_geom, p.the_geom) AND ST_IsClosed(w.the_geom))
<variablelist>
<varlistentry id="line_interpolate_point">
- <term>ST_line_interpolate_point(linestring, location)</term>
+ <term>ST_line_interpolate_point(linestring geometry, locationfraction float8)</term>
<listitem>
<para>Returns a point interpolated along a line. First argument
</varlistentry>
<varlistentry id="line_substring">
- <term>ST_line_substring(linestring, start, end)</term>
+ <term>ST_Line_substring(linestring geometry, startfraction float8, endfraction float8)</term>
<listitem>
<para>Return a linestring being a substring of the input one
</varlistentry>
<varlistentry id="line_locate_point">
- <term>ST_line_locate_point(LineString, Point)</term>
+ <term>ST_line_locate_point(LineString geometry, Point geometry)</term>
<listitem>
<para>Returns a float between 0 and 1 representing the location of