Book Image

Applying and Extending Oracle Spatial

Book Image

Applying and Extending Oracle Spatial

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

Linear referencing functions to be developed


A number of linear referencing functions will be developed in this chapter. These functions will draw upon or extend functions presented in the previous chapters, most notably ST_Split and ST_Snap. A recap of what these do follows:

  1. ST_Split: Splits a linestring at one or more known points placed on or off the line.

  2. ST_Snap: Snaps (projects) a known point onto a linestring to determine its measure (or length) from beginning.

    The following list outlines those linear referencing functions that will be implemented:

  3. ST_Find_Measure: Given a point near a measured linestring, return the nearest measure.

  4. ST_Scale_Measures: Rescales the measures of a linestring and optionally applies an offset. Thus an existing measured linestring whose measure starts at 0 m and finishes at 100 m may be changed to start at 5 m (offset) and end at 106.5 m (rescale).

  5. ST_Add_Measure: Takes an existing unmeasured linestring and a start and end measure, and returns a linestring...