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

Working with GeoRaster


Once the raster data is loaded into a GeoRaster object, the raster data is available for use by other applications. There are two main types of applications for raster data: analytical applications that use the cell values in raster data to solve a spatial or non-spatial business problem, and visualization applications that use the raster data as background images for other vector maps.

Coordinating system transformations of GeoRaster

In the sample data, we loaded rasters that are in different coordinate systems. The land cover image has an SRID of 32775 (equal-area projection) while the DEM data has an SRID of 4269 (Geodetic). The rest of the data used for our San Francisco examples has an SRID 2872. So, we first show how to transform this raster into the same coordinate system as the rest of our sample data. The following code example shows the PL/SQL code required to transform the DEM data (that is loaded with an ID of 16) and create a new raster with an ID of 30...