Spatial Database Bases de Datos Espaciales MOTORES COMERCIALES Oracle Spatial
Spatial Database 5-2 Tipos de Datos soportados
Spatial Database 5-3 Primitivas Geometricas
Spatial Database 5-4 Modelo de datos espacial
Spatial Database 5-5 Elementos
Spatial Database 5-6 Geometrias
Spatial Database 5-7 Layer
Spatial Database 5-8 Indices espaciales Quadtrees R-Trees
Spatial Database 5-9 Referencia Lineal
Spatial Database 5-10 SDO_GEOMETRY Object
Spatial Database 5-11 SDO_GEOMETRY Object
Spatial Database 5-12 SDO_GEOMETRY Object
Spatial Database 5-13 SDO_GEOMETRY Object
Spatial Database 5-14 SDO_GEOMETRY Object con referencia lineal
Spatial Database 5-15 SDO_GEOMETRY Object
Spatial Database 5-16 SDO_GEOMETRY Object con referencia lineal
Spatial Database 5-17 SDO_GEOMETRY Object SDO_SRID Identificador de la referencia espacial Depende del sistema de coordenadas SDO_POINT Optimiza el almacenamiento Ignorado si SDO_ELEM_INFO y SDO_ORDINATES son Not NULL SDO_POINT_TYPE no puede ser usado ni mostrado fuera de SDO_GEOMETRY object
Spatial Database 5-18 SDO_GEOMETRY Object SDO_ELEM_INFO Coordenada relativa de los elementos Tipo de Elemento Interpretación de los elementos
Spatial Database 5-19 SDO_GEOMETRY Object SDO_ORDINATES Simple arreglo de números Contiene las coordenadas de los elementos Los elementos son almacenados en SDO_ORDINATE_ARRAY, estos elementos son definidos en SDO_ELEM_INFO_ARRAY
Spatial Database 5-20 SQL> INSERT INTO TELEPHONE_POLES 2> VALUES (attribute_1, …, attribute_n, 3> MDSYS.SDO_GEOMETRY ( 4> 2001, null, 5> MDSYS.SDO_POINT_TYPE (12,14,null), 6> null, null) 7> ); Ejemplo Atributos Alfanuméricos Indica punto 2D SRID = null SDO_ELEM_INFO SDE_ORDINATES
Spatial Database 5-21 Ejemplo
Spatial Database 5-22 Ejemplo
Spatial Database 5-23 Ejemplo
Spatial Database 5-24 USER_SDO_GEOM_METADATA Sistema de Referencia Extensión de los Datos
Spatial Database 5-25 Sistema de Referencia Geodetic NAD 83 (SRID=8265) WGS 84 (SRID=8307) Projected Equal-Area Projection (Australia) Equal-Area Projection (Europe) Equal-Area Projection (North America) Equal-Area Projection (China) Equal-Area Projection (India) Equal-Area Projection (United States) Delaware State Plane (meters)
Spatial Database 5-26 Cargue de datos
Spatial Database 5-27 Cargue de datos
Spatial Database 5-28 Cargue de datos desde ShapeFile Herramienta no soportada Procesa el Shapefile y genera Scripts SQL o SQL*Loader = Nombre del archivo (incluye la extensión.shp) = Nombre de la tabla en Oracle -g = nombre de la columna geométrica -i = nombre de la llave primaria -n [ ] = numero de inicio del ID (por defecto 0) -d = Incluye los datos -s = Referencia espacial -t = Nivel de precisión de los datos
Spatial Database 5-29 Consultas espaciales SELECT b.Nombre as Ciudad FROM Rios a, Ciudades b WHERE sdo_within_distance (b.geom, a.geom, 'distance= unit=meters') = TRUE AND a.Nombre = Magdalena;
Spatial Database 5-30 Consultas espaciales select mdsys.sdo_geom.sdo_buffer (geom, (select diminfo from user_sdo_geom_metadata where table_name = VIAS' and column_name = 'GEOM'), 0.5) buffer_geom from VIAS where Nombre = Troncal del Norte';
Spatial Database 5-31 Consultas espaciales Operadores Topologicos Inside Contains Touch Disjoint Covers Covered By Equal Overlap Boundary Operadores de distancia Within Distance Nearest Neighbor