Index   Search   Add FAQ   Ask Question  
 

Please note: This page is not maintained anymore. Please visit the new and improved FAQ at http://www.orafaq.com/faq/spatial

Oracle Locator and Spatial FAQ

$Date: 23-Sep-2001 $
$Revision: 1.30 $
$Author: Frank Naudé $

Topics

  • What is Oracle Spatial?
  • What is the difference between Oracle Spatial and Locator?
  • What is the difference between the Relational and Object Spatial model?
  • How does one install Oracle Locator/ Spatial?
  • What is the difference between Vector and Raster data?
  • What is a GeoTIFF and what is it used for?
  • What are HHCodes and what are they used for?
  • What Spatial Vendors integrate with Oracle?
  • Where can one get more info about Spatial Data?

  • Back to Oracle FAQ Index

    What is Oracle Spatial?

    Oracle Spatial (formerly called SDO and before that MultiDimension), provides a way to store and retrieve multi-dimensional data in Oracle. It is primarily used for Geographical Information Systems to implement geo-reference and solve queries such as how is something related to a specific location.

    With this, representation of features (point, line or polygon) are stored in a single field within a table. A single Helical Hyperspatial code (HHCODE) is used to store the Euclidean spatial dimensions and additional data dimensional include depth, elevation, or time. The types of multidimensional data are restricted only in that they must be a numeric data type and have a bounded range. The HHCODE is generated through the recursive decomposition of dimensional space. Attribute data for specific multidimensional data is stored within columns of a table in the database. Access to the data for processing and manipulation is accomplished through extensions to Oracle PL/SQL.

  • Back to top of file

  • What is the difference between Oracle Spatial and Locator?

    Oracle Locator is free with the Oracle Database Server (EE and Standard Edition). Oracle Spatial is intened for "heavy" spatial applications. It only ships with Oracle Enterprise Edition and are separately charged.

  • Back to top of file

  • What is the difference between the Relational and Object Spatial model?

    Oracle Spatial provides two mutually exclusive models for representing geometry:

    Object-relational model - uses a table with single column of type MDSYS.SDO_GEOMETRY and a single row per geometry instance.

    Relational model - uses a table with a predefined set of columns of type NUMBER and one or more rows for each geometry instance.

    The object model provides more features. In Oracle8i, the Object model didn't support replication, partitioning and distribution. From oracle9i there is no benefits in choosing the relational model above the object model.

  • Back to top of file

  • How does one install Oracle Spatial?

    Oracle Spatial can be installed via the Oracle installer or from the command line interface. Look at these examples:
    Oracle 9i:
            SQL> connect SYS as SYSDBA
            SQL> @?/md/admin/mdinst.sql
    
    Oracle 8i:
    
            SQL> REM # Create MDSYS users as part of the ORD (Object Relational Data) 
            SQL> REM #    install script ordisys.sql:
            SQL> connect SYS as SYSDBA
            SQL> @?/ord/admin/ordisys.sql
    
            SQL> REM # Install MD catalog into the MDSYS user
            SQL> connect mdsys/mdsys
            SQL> @?/md/admin/catmd.sql
    
    Oracle 8.0:
    
            SQLPLUS> REM # Create user MDSYS with admin option
            SQLPLUS> connect SYS as SYSDBA
            SQLPLUS> @?/md/install/mdsysid.sql
    
            SQLPLUS> REM # Install MD catalog into the MDSYS user
            SQLPLUS> connect mdsys/mdsys
            SQLPLUS> @?/md/admin/catmd.sql
    
    NOTE: Also run catmd.sql after upgrading to a new Oracle release.

  • Back to top of file

  • What is the difference between Vector and Raster data?

    There are two main models for storing and representing spatial data in a Geographic Information System (GIS): the raster the vector models:

    RASTER DATA - raster (or grid cell type) data can be used for analyzing, overlaying, and modeling areal features such as soil types or forested areas. Raster data are generally typically scanned in from maps.

    VECTOR DATA - vector data can be used to represent linear features such as roads, streams or area edges and can be combined with raster data for display purposes or for analysis.

    In general, Raster maps are faster, Vector maps are more spesific and more accurate.

  • Back to top of file

  • What is a GeoTIFF and what is it used for?

    GeoTIFF is a non-proprietary geographic TIFF file format. The purpose of GeoTIFF is to provide information that lets raster imagery (scanned maps, satellite images, results of geographic analysis, etc) be read automatically into correct position and scale within many GIS softwares. GeoTIFF implements a tag structure which embeds the geographic information methodically and interoperably (and invisibly to most users) inside the TIFF file.

  • Back to top of file

  • What are HHCodes and what are they used for?

    HHCODEs (Helical Hyperspatial Codes) is an encoding technique developed by the Canadian Hydrographic Service for combining data of two or more dimensions into a single value. This value represents the intersection of all of the desired dimensions. HHCODEs makes it easy to store multidimensional data in a database.

    In Oracle, a HHCODE is a datatype used for both spatial indexing and partitioned point data.

    More technical:

    HHCodes are in effect Peano Codes, an implementation of Space Filling Curves. The multidimensionality aspect is the use of the Riemannian hypercube in conjunction with the space filling curve. What in effect has happened is that the Riemannian tensor matrix has been mapped by the space filling curve. This gives mathemetical credence to HHCodes and a lot more functionality then just data access. One more thing the HHcode encoding is not just Euclidean, Curvilinear and linear coordinates such as Lat, Lon, depth and time can also be mapped together. This creates Time varying voxels, (I suppose one can call them toxels).

    Contributed: Herman Varma

  • Back to top of file

  • What Spatial Vendors integrate with Oracle?

    The following Spatial Vendors provide Oracle based solutions:

  • Back to top of file

  • Where can one get more info about Spatial Data?

  • Back to top of file
  • HOME | ASK QUESTION | ADD FAQ | SEARCH | E-MAIL US