Oracle Database/Spatiotemporal Databases
Spatial data
[edit | edit source]When typing the fields, some represent graphical objects, and so are considered as "Spatial" (cf. spatial database). Consequently, they are manipulated with different requests than for the text.
With Oracle, its implemented since the version 7, in an extension of the Enterprise EditionDownload, provided objects with the prefix SDO for Spatial Data Option[1].
Objects
[edit | edit source]To store the spatial objects, we use the field type SDO_GEOMETRY, and the seven methods to manipulate it[2]:
- Get_Dims
- Get_GType
- Get_LRS_Dim
- Get_WKB
- Get_WKT
- ST_CoordDim
- ST_IsValid
Then the request operators[3]:
- SDO_FILTER: list the objects which interact with the target.
- SDO_JOIN: spatial join.
- SDO_NN: target nearest neighbor.
- SDO_NN_DISTANCE: distance with the nearest neighbor.
- SDO_RELATE: list the objects which interact in a certain manner.
- SDO_WITHIN_DISTANCE: returns true if two objects are within a certain distance from one to another.
Spatiotemporal data
[edit | edit source]We use a predicate to foresee the stored objects movement[4]. However, the spatiotemporal databases need frequent updates.
Indexation
[edit | edit source]Les modes d'indexation choisis par Oracle pour les données spatiales sont l'arbre R[5], l'arbre Q, et le Z-order[6].
Link with the GIS
[edit | edit source]To represent the data on maps, we use a geographic information system (GIS). For example:
If the software need an ODBC data source to access to the Oracle databases:
- Launch %windir%\system32\odbcad32.exe.
- Add a system source. The Oracle driver can be chosen in the list if the DBMS is installed.
- Fill the TNS service name with the name which can be found into C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN\tnsnames.ora.
- Then write the password of the connection created with SQL*Plus.
Examples
[edit | edit source]- http://download.oracle.com/otndocs/products/spatial/pdf/au_melbourne06_start.pdf
- http://download.oracle.com/otndocs/products/spatial/pdf/GeocodingInOracleUsing_HERE_MapContent.pdf
References
[edit | edit source]- ↑ "Spatial Developer's Guide".
{{cite web}}
: Unknown parameter|site=
ignored (help) - ↑ "SDO_GEOMETRY Object Type".
{{cite web}}
: Unknown parameter|site=
ignored (help) - ↑ "Spatial Operators".
{{cite web}}
: Unknown parameter|site=
ignored (help) - ↑ "Authorizing Access to Dynamic Spatial-Temporal Data".
{{cite web}}
: Unknown parameter|site=
ignored (help) - ↑ "Spatial Concepts".
{{cite web}}
: Unknown parameter|site=
ignored (help) - ↑ "ZOrder Method".
{{cite web}}
: Unknown parameter|site=
ignored (help) - ↑ "Geographic Resources Analysis Support System (GRASS): More Than a Mapping Tool".
{{cite web}}
: Unknown parameter|site=
ignored (help)