Oracle 5.0 Reference Manual page 1013

Table of Contents

Advertisement

+-------------------------------------+
StartPoint(ls)
Returns the
mysql>
SET @ls = 'LineString(1 1,2 2,3 3)';
mysql>
SELECT AsText(StartPoint(GeomFromText(@ls)));
+---------------------------------------+
| AsText(StartPoint(GeomFromText(@ls))) |
+---------------------------------------+
| POINT(1 1)
+---------------------------------------+
The OpenGIS specification also defines the following function, which MySQL does not implement:
IsRing(ls)
Returns 1 if the
EndPoint()
more than once). Returns 0 if
12.16.5.2.4.
MultiLineString
These functions return properties of
GLength(mls)
Returns as a double-precision number the length of the
of
is equal to the sum of the lengths of its elements.
mls
mysql>
SET @mls = 'MultiLineString((1 1,2 2,3 3),(4 4,5 5))';
mysql>
SELECT GLength(GeomFromText(@mls));
+-----------------------------+
| GLength(GeomFromText(@mls)) |
+-----------------------------+
|
+-----------------------------+
GLength()
function.
IsClosed(mls)
Returns 1 if the
EndPoint()
closed, and –1 if it is NULL.
mysql>
SET @mls = 'MultiLineString((1 1,2 2,3 3),(4 4,5 5))';
mysql>
SELECT IsClosed(GeomFromText(@mls));
+------------------------------+
| IsClosed(GeomFromText(@mls)) |
+------------------------------+
|
+------------------------------+
12.16.5.2.5.
Polygon
These functions return properties of
Area(poly)
Returns as a double-precision number the area of the
spatial reference system.
mysql>
SET @poly = 'Polygon((0 0,0 3,3 0,0 0),(1 1,1 2,2 1,1 1))';
mysql>
SELECT Area(GeomFromText(@poly));
Spatial Analysis Functions
[993]
that is the start point of the
Point
[993]
value
LineString
[992]
values are the same) and is simple (does not pass through the same point
is not a ring, and –1 if it is NULL.
ls
Functions
MultiLineString
[992]
4.2426406871193 |
[992]
is a nonstandard name. It corresponds to the OpenGIS
[993]
MultiLineString
[992]
values are the same for each
0 |
Functions
Polygon
[993]
LineString
|
is closed (that is, its
ls
values.
MultiLineString
value
is closed (that is, the
mls
LineString
values.
Polygon
993
value ls.
[993]
and
StartPoint()
value mls. The length
Length()
StartPoint()
in mls). Returns 0 if
value poly, as measured in its
[890]
[993]
and
is not
mls

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents