MySQL 5.1 リファレンスマニュアル :: 16 Spatial Extensions :: 16.4 Creating a Spatially Enabled MySQL Database :: 16.4.1 MySQL Spatial Data Types
« 16.4 Creating a Spatially Enabled MySQL Database

16.4.2 Creating Spatial Values »
Section Navigation      [Toggle]
  • 16.4 Creating a Spatially Enabled MySQL Database
  • 16.4.1 MySQL Spatial Data Types
  • 16.4.2 Creating Spatial Values
  • 16.4.3 Creating Spatial Columns
  • 16.4.4 Populating Spatial Columns
  • 16.4.5 Fetching Spatial Data

16.4.1. MySQL Spatial Data Types

MySQL has data types that correspond to OpenGIS classes. Some of these types hold single geometry values:

  • GEOMETRY

  • POINT

  • LINESTRING

  • POLYGON

GEOMETRY can store geometry values of any type. The other single-value types (POINT, LINESTRING, and POLYGON) restrict their values to a particular geometry type.

The other data types hold collections of values:

  • MULTIPOINT

  • MULTILINESTRING

  • MULTIPOLYGON

  • GEOMETRYCOLLECTION

GEOMETRYCOLLECTION can store a collection of objects of any type. The other collection types (MULTIPOINT, MULTILINESTRING, MULTIPOLYGON, and GEOMETRYCOLLECTION) restrict collection members to those having a particular geometry type.

Copyright © 1997, 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices
Top / Previous / Next / Up / Table of Contents
© 2010, Oracle Corporation and/or its affiliates