Book Image

Applying and Extending Oracle Spatial

By : Siva Ravada, Simon Greener
Book Image

Applying and Extending Oracle Spatial

By: Siva Ravada, Simon Greener

Overview of this book

Spatial applications should be developed in the same way that users develop other database applications: by starting with an integrated data model in which the SDO_GEOMETRY objects are just another attribute describing entities and by using as many of the database features as possible for managing the data. If a task can be done using a database feature like replication, then it should be done using the standard replication technology instead of inventing a new procedure for replicating spatial data. Sometimes solving a business problem using a PL/SQL function can be more powerful, accessible, and easier to use than trying to use external software. Because Oracle Spatial's offerings are standards compliant, this book shows you how Oracle Spatial technology can be used to build cross-vendor database solutions. Applying and Extending Oracle Spatial shows you the clever things that can be done not just with Oracle Spatial on its own, but in combination with other database technologies. This is a great resource book that will convince you to purchase other Oracle technology books on non-spatial specialist technologies because you will finally see that "spatial is not special: it is a small, fun, and clever part of a much larger whole".
Table of Contents (20 chapters)
Applying and Extending Oracle Spatial
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Table Comparing Simple Feature Access/SQL and SQL/MM–Spatial
Index

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

ST_Point

The type ST_PolyhedralSurface is currently not in SQL/MM, but will be proposed as a result of this document

 

Curve

ST_Curve

 
 

Linestring

ST_LinestringST_Circularstring ST_CompoundCurve

 
 

Surface

ST_Surface ST_CurvePolygon

 
 

Polygon

ST_Polygon

 
 

PolyhedralSurface

ST_PolyhedralSurface

 
 

GeomCollection

ST_Collection

 
 

Multipoint

ST_Multipoint

 
 

Multicurve

ST_MultiCurve

 
 

Multilinestring

ST_Multilinestring

 
 

Multisurface

ST_Multisurface

 
 

Multipolygon

ST_Multipolygon

 

Storage

Binary Type, Text Type, Object Type

Object Type

 

Operations

Equals

ST_Equals

 
 

Disjoint

ST_Disjoint

 
 

Touches

ST_Touches

 
 

Within

ST_Within

 
 

Overlaps

ST_Overlaps

 
 

Crosses

ST_Crosses

 
 

Intersects

ST_Intersects

 
 

Contains

ST_Contains

 
 

Relate

ST_Relate

 

Functions

Point

ST_Point()

It returns the point

 

X()

ST_X()

It returns the X-coordinate of the point

 

Y()

ST_Y()

It returns the Y-coordinate of the point

 

Z()

ST_Z()

It return the Z-coordinate of the point

 

M()

ST_M()

It returns the M-coordinate of the point

 

ST_ExplicitPoint()

Curve

Length()

ST_Length()

It returns the length of the curve

 

StartPoint()

ST_StartPoint()

It returns the first point of the curve

 

EndPoint()

ST_EndPoint()

It returns the last point of the curve

 

IsClosed()

ST_IsClosed()

It checks whether the curve is closed

 

IsRing()

ST_ISRing()

It check if the curve is closed and simple

 

ST_CurveToLine

It transforms a curve to LineString

LineString

ST_LineString

It returns LineString

 

ST_Points

It returns a collection of points

 

NumPoints()

ST_NumPoints

It returns the number of points

 

PointN()

ST_PointN

It returns the nth point of LineString