Appendix A. Table Comparing Simple Feature Access/SQL and SQL/MM–Spatial
This appendix provides a comparison of SFA-SQL 1.2 (http://portal.opengeospatial.org/files/?artifact_id=25354) and SQL/MM-Spatial (ISO 13249-3, Information technology - Database languages - SQL Multimedia and Application Packages - Part 3: Spatial) by reproducing Table B 1 from Annex B of SFA-SQL 1.2 Part 2:
SQL with geometry type |
ISO/IEC 13249-3:2003 (SQL/MM-Spatial) |
Description | |
---|---|---|---|
Geometry types |
Point |
|
The type |
Curve |
| ||
Linestring |
| ||
Surface |
| ||
Polygon |
| ||
PolyhedralSurface |
| ||
GeomCollection |
| ||
Multipoint |
| ||
Multicurve |
| ||
Multilinestring |
| ||
Multisurface |
| ||
Multipolygon |
| ||
Storage |
Binary Type, Text Type, Object Type |
Object Type | |
Operations |
Equals |
| |
Disjoint |
| ||
Touches |
| ||
Within |
| ||
Overlaps |
| ||
Crosses |
| ||
Intersects |
| ||
Contains |
| ||
Relate |
| ||
Functions |
— |
— |
— |
Point |
— |
|
It returns the point |
|
|
It returns the X-coordinate of the point | |
|
|
It returns the Y-coordinate of the point | |
|
|
It return the Z-coordinate of the point | |
|
|
It returns the M-coordinate of the point | |
— |
|
— | |
Curve |
|
|
It returns the length of the curve |
|
|
It returns the first point of the curve | |
|
|
It returns the last point of the curve | |
|
|
It checks whether the curve is closed | |
|
|
It check if the curve is closed and simple | |
— |
|
It transforms a curve to | |
LineString |
— |
|
It returns |
— |
|
It returns a collection of points | |
|
|
It returns the number of points | |
|
|
It returns the nth point of |