Oracle 5.0 Reference Manual page 1005

Table of Contents

Advertisement

MULTIPOINT
MULTILINESTRING
MULTIPOLYGON
GEOMETRYCOLLECTION
GEOMETRYCOLLECTION
(MULTIPOINT, MULTILINESTRING, MULTIPOLYGON, and GEOMETRYCOLLECTION) restrict collection
members to those having a particular geometry type.
12.16.4.2. Creating Spatial Values
This section describes how to create spatial values using Well-Known Text and Well-Known Binary
functions that are defined in the OpenGIS standard, and using MySQL-specific functions.
12.16.4.2.1. Creating Geometry Values Using WKT Functions
MySQL provides a number of functions that take as arguments a Well-Known Text representation and,
optionally, a spatial reference system identifier (SRID). They return the corresponding geometry.
GeomFromText()
implementation also provides type-specific construction functions for construction of geometry values of
each geometry type.
GeomCollFromText(wkt[,srid])
GeometryCollectionFromText(wkt[,srid])
Constructs a
GeomFromText(wkt[,srid])
Constructs a geometry value of any type using its WKT representation and SRID.
LineFromText(wkt[,srid])
Constructs a
MLineFromText(wkt[,srid])
Constructs a
MPointFromText(wkt[,srid])
Constructs a
MPolyFromText(wkt[,srid])
Constructs a
PointFromText(wkt[,srid])
Constructs a
PolyFromText(wkt[,srid])
Constructs a
The OpenGIS specification also defines the following optional functions, which MySQL does not
implement. These functions construct
representation of a collection of rings or closed
BdMPolyFromText(wkt,srid)
Creating a Spatially Enabled MySQL Database
can store a collection of objects of any type. The other collection types
[985]
accepts a WKT of any geometry type as its first argument. An
GEOMETRYCOLLECTION
[985],
[985],
value using its WKT representation and SRID.
LINESTRING
value using its WKT representation and SRID.
MULTILINESTRING
value using its WKT representation and SRID.
MULTIPOINT
value using its WKT representation and SRID.
MULTIPOLYGON
[985]
value using its WKT representation and SRID.
POINT
[985],
value using its WKT representation and SRID.
POLYGON
[985]
[985],
[985]
value using its WKT representation and SRID.
GeometryFromText(wkt[,srid])
LineStringFromText(wkt[,srid])
[985],
MultiLineStringFromText(wkt[,srid])
[985],
MultiPointFromText(wkt[,srid])
[985],
MultiPolygonFromText(wkt[,srid])
PolygonFromText(wkt[,srid])
or
Polygon
MultiPolygon
LineString
985
[985]
[985]
values based on the WKT
values. These values may intersect.
[985]
[985]
[985]
[985]

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents