Spatial data
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
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
We use a predicate to foresee the stored objects movement[4]. However, the spatiotemporal databases need frequent updates.
Indexation
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
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
References
- ↑ "Spatial Developer's Guide". http://docs.oracle.com/cd/E11882_01/appdev.112/e11830/toc.htm.
- ↑ "SDO_GEOMETRY Object Type". https://docs.oracle.com/cd/B19306_01/appdev.102/b14255/sdo_objrelschema.htm#i1004087.
- ↑ "Spatial Operators". https://docs.oracle.com/cd/B19306_01/appdev.102/b14255/sdo_operat.htm.
- ↑ "Authorizing Access to Dynamic Spatial-Temporal Data". http://www.oracle.com/technetwork/articles/vanvelden-spatial-095837.html.
- ↑ "Spatial Concepts". https://docs.oracle.com/html/A88805_01/sdo_intr.htm.
- ↑ "ZOrder Method". http://docs.oracle.com/cd/E20213_01/doc/win.112/e17727/dcmethods006.htm.
- ↑ "Geographic Resources Analysis Support System (GRASS): More Than a Mapping Tool". http://www.oracle.com/technetwork/articles/mitasova-grass-092663.html.