Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Applying and Extending Oracle Spatial

You're reading from  Applying and Extending Oracle Spatial

Product type Book
Published in Sep 2013
Publisher Packt
ISBN-13 9781849686365
Pages 568 pages
Edition 1st Edition
Languages

Table of Contents (20) Chapters

Applying and Extending Oracle Spatial
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Defining a Data Model for Spatial Data Storage 2. Importing and Exporting Spatial Data 3. Using Database Features in Spatial Applications 4. Replicating Geometries 5. Partitioning of Data Using Spatial Keys 6. Implementing New Functions 7. Editing, Transforming, and Constructing Geometries 8. Using and Imitating Linear Referencing Functions 9. Raster Analysis with GeoRaster 10. Integrating Java Technologies with Oracle Spatial 11. SQL/MM – A Basis for Cross-platform, Inter-operable, and Reusable SQL Table Comparing Simple Feature Access/SQL and SQL/MM–Spatial
Use of TREAT and IS OF TYPE with ST_GEOMETRY Index

Chapter 1. Defining a Data Model for Spatial Data Storage

Oracle Spatial and Graph provides a SQL schema and functions that facilitate the storage, update, and query of collections of spatial features in an Oracle database. Oracle Spatial and Graph is the new name for the feature formerly known as Oracle Spatial. In this book, we refer to this feature as Oracle Spatial for the sake of simplicity. We also focus exclusively on spatial feature of Oracle Spatial and Graph in this book. Oracle Spatial mainly consists of the following:

  • A schema (MDSYS derived from Multi-Dimensional System) that defines the storage, syntax, and semantics of the supported geometric (both vector and raster) data types

  • A spatial indexing mechanism for faster querying and retrieval

  • Operators, functions, and procedures for performing spatial analysis and query operations

  • A persistent topology data model for working with data about nodes, edges, and faces in a topology

  • A network data model for modeling and working with spatial networks

  • A GeoRaster data type and associated functions that let you store, index, query, analyze, and deliver raster data

The spatial component of a real-world feature is the geometric representation of its shape in some coordinate space (either in 2D or 3D), and in vector space, this is referred to as its geometry. Oracle Spatial is designed to make spatial data management easier and more natural to users of location-enabled business applications and geographic information system (GIS) applications. Oracle allows the storage of spatial data in a table using the SDO_GEOMETRY data type that is just like any other data type in the database. Once the spatial data is stored in the Oracle database, it can be easily manipulated, retrieved, and related to all other data stored in the database.

A spatial database should be designed just like any other database with a fully specified model. A fully specified model that is application independent should control the spatial data storage. A good data model supports and enhances application access without compromising the quality. In addition to these features, database features can be used to support applications that have limited functionality when it comes to table and column design. For example, some applications mandate a single spatial column per table or only a single homogeneous geometry type per spatial column. These limitations can be accommodated quite easily using database features such as views and triggers. In addition, there are a number of issues that arise when designing a data model that directly affects the data quality, performance, and access.

The goal of this chapter is to give readers an understanding of how to model spatial data as SDO_GEOMETRY columns within tables, how to support spatial constraints for improved data quality, how to use synchronous and asynchronous triggers for implementing topological constraint checking, and to present methods for coping with multiple representations for faster web service access. All these issues, with solutions, are covered in this chapter:

  • Defining a sample schema

  • Using spatial metadata

    • Using Oracle metadata views

    • Using OGC metadata views

  • Using different types of geometric representations

    • Implementing tables with homogeneous and heterogeneous columns

    • Implementing multiple representations for a single object

    • Implementing multiple instances of a single column, for example, pre-thinned data for different scales and reprojection for faster web service access

  • Restricting data access via views

    • Using views to expose a single geometry type when multiple geometry types are present in the table

    • Using views to expose tables with single geometry columns when multiple geometry columns are present in the table

  • Implementing spatial constraints at the database level

    • Restricting geometry types

    • Spatial topological constraints

    • Implementation of synchronous triggers

    • Implementation of asynchronous triggers

You have been reading a chapter from
Applying and Extending Oracle Spatial
Published in: Sep 2013 Publisher: Packt ISBN-13: 9781849686365
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}