Oracle 5.0 Reference Manual page 1012

Table of Contents

Advertisement

+-----------------------+
[992]
Y(p)
Returns the Y-coordinate value for the
mysql>
SELECT Y(POINT(56.7, 53.34));
+-----------------------+
| Y(POINT(56.7, 53.34)) |
+-----------------------+
|
+-----------------------+
12.16.5.2.3.
LineString
A
LineString
the number of points that it contains, or obtain its length.
EndPoint(ls)
Returns the
mysql>
SET @ls = 'LineString(1 1,2 2,3 3)';
mysql>
SELECT AsText(EndPoint(GeomFromText(@ls)));
+-------------------------------------+
| AsText(EndPoint(GeomFromText(@ls))) |
+-------------------------------------+
| POINT(3 3)
+-------------------------------------+
GLength(ls)
Returns as a double-precision number the length of the
spatial reference.
mysql>
SET @ls = 'LineString(1 1,2 2,3 3)';
mysql>
SELECT GLength(GeomFromText(@ls));
+----------------------------+
| GLength(GeomFromText(@ls)) |
+----------------------------+
|
+----------------------------+
GLength()
function.
NumPoints(ls)
Returns the number of
mysql>
SET @ls = 'LineString(1 1,2 2,3 3)';
mysql>
SELECT NumPoints(GeomFromText(@ls));
+------------------------------+
| NumPoints(GeomFromText(@ls)) |
+------------------------------+
|
+------------------------------+
PointN(ls,N)
Returns the N-th
mysql>
SET @ls = 'LineString(1 1,2 2,3 3)';
mysql>
SELECT AsText(PointN(GeomFromText(@ls),2));
+-------------------------------------+
| AsText(PointN(GeomFromText(@ls),2)) |
+-------------------------------------+
| POINT(2 2)
Spatial Analysis Functions
53.34 |
Functions
consists of
values. You can extract particular points of a LineString, count
Point
[992]
that is the endpoint of the
Point
[992]
2.8284271247462 |
[992]
is a nonstandard name. It corresponds to the OpenGIS
[992]
objects in the
Point
3 |
[992]
in the
Point
Linestring
object
as a double-precision number.
Point
p
value ls.
LineString
|
LineString
value ls.
LineString
value ls. Points are numbered beginning with 1.
|
992
value
in its associated
ls
[890]
Length()

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents