Spatial Extensions in MySQL

Table of Contents

133. Introduction
134. The OpenGIS Geometry Model
Geometry properties
Point Examples
Point Properties
Curve Properties
LineString Examples
LineString Properties
Surface Properties
Polygon Examples
Polygon Assertions
MultiPoint Examples
MultiPoint Properties
MultiCurve Properties
MultiLineString Examples
MultiSurface Assertions
MultiPolygon Examples
MultiPolygon Assertions
MultiPolygon Properties
The Geometry Class Hierarchy
Class Geometry
Class Point
Class Curve
Class LineString
Class Surface
Class Polygon
Class GeometryCollection
Class MultiPoint
Class MultiCurve
Class MultiLineString
Class MultiSurface
Class MultiPolygon
135. Supported Spatial Data Formats
Well-Known Text (WKT) Format
Well-Known Binary (WKB) Format
136. Creating a Spatially Enabled MySQL Database
MySQL Spatial Datatypes
Creating Spatial Values
Creating Geometry Values Using WKT Functions
Creating Geometry Values Using WKB Functions
Creating Geometry Values Using MySQL-Specific Functions
Creating Spatial Columns
Populating Spatial Columns
Fetching Spatial Data
Fetching Spatial Data in Internal Format
Fetching Spatial Data in WKT Format
Fetching Spatial Data in WKB Format
137. Analyzing Spatial Information
Geometry Format Conversion Functions
Geometry Functions
General Geometry Functions
Point Functions
LineString Functions
MultiLineString Functions
Polygon Functions
MultiPolygon Functions
GeometryCollection Functions
Functions That Create New Geometries from Existing Ones
Geometry Functions That Produce New Geometries
Spatial Operators
Functions for Testing Spatial Relations Between Geometric Objects
Relations on Geometry Minimal Bounding Rectangles (MBRs)
Functions That Test Spatial Relationships Between Geometries
138. Optimizing Spatial Analysis
Creating Spatial Indexes
Using a Spatial Index
139. MySQL Conformance and Compatibility
GIS Features That Are Not Yet Implemented

MySQL 4.1 introduces spatial extensions to allow the generation, storage, and analysis of geographic features. Currently, these features are available for MyISAM tables only.

This chapter covers the following topics: