SlideShare ist ein Scribd-Unternehmen logo
Introduction to
Oracle Spatial
EHSAN HAMZEI
DECEMBER, 2016
Oracle Spatial??
 Oracle Spatial Technology Products :
 Storage data model using the SDO_GEOMETRY data
type
 Query and analysis using the Index Engine and
Geometry Engine
 Location-enabling using the geocoder by converting
address data into SDO_GEOMETRY data
 Visualization using Map Viewer and Oracle Maps
 Advanced Spatial Engine functionality such as network
analysis and routing
Oracle Spatial Architecture
SDO_GEOMETRY
 Spatial Data Type in Oracle DB
 How To Create a Table with Spatial Column??
SDO_GEOMETRY
 What is a Geometry Data??
SDO_GEOMETRY
 SDO Geometry Data Type:
 SDO_G-Type
 SDO_SRID
 SDO_POINTS
 SDO_ELEM_INFO_ARRAY
 SDO_ORDINATE_ARRAY
SDO_GEOMETRY: G-TYPE
 attribute specifies the type of shape (point, line,
polygon, collection, multi-point, multi-line, or multi-
polygon) that the geometry actually represents.
 D00T
 Example: 2003, 2001,3006
SDO_GEOMETRY: SRID
 This attribute specifies the spatial reference system, or
coordinate system, for the geometry.
 Geo-referenced vs. Local Coordinates!
 Geodetic vs. Projected? (WGS84, UTM-Z39N)
 European Petroleum Standards Group (EPSG)
 Example: 4326 (WGS84),
SDO_POINTS
 Its just a syntactic sugar!!
 This attribute specifies the location of a point
geometry
 Example:
SDO_ELEM_INFO
SDO_ELEM_INFO
SDO_ELEM_INFO
SDO_ORDINATE
 Insert Coordinate Based on provided ElEM_INFO
 Example:
SDO_ORDINATE
 Insert Coordinate Based on provided ElEM_INFO
 Example:
SDO_ORDINATE
 Insert Coordinate Based on provided ElEM_INFO
 Example:
SDO_ORDINATE
 Insert Coordinate Based on provided ElEM_INFO
 Example:
SDO_ORDINATE
 Insert Coordinate Based on provided ElEM_INFO
 Example:
SDO_ORDINATE
 Insert Coordinate Based on provided ElEM_INFO
 Example:
Complex Geometry
Complex Geometry
Complex Geometry
Complex Geometry
Complex Geometry
Collections
Collections
Collections
Collections
Creating Collections: The Easy Way :
For NON-OVERLAPPING geometries!!!
Collections
More Sophisticated Examples!!
Spatial Operators!
 Spatial operators:
 Just as you can specify relational operators in a SQL
statement, such as
“< (less than), > (greater than), or = (equal to), and
so on”, you can likewise use a spatial operator to search
the location (SDO_GEOMETRY) columns of a table for
proximity with respect to a query location
 Need Spatial Index First !!!
Spatial Index!
 Create Spatial Index
 Need Spatial Meta Data First!!!
Spatial Meta Data Table
 USER_SDO_GEOM_METADATA
 DIM INFO >> INFORMATION ABOUT:
 SDO_DIM_ELEMENT
 DIM_NAME
 MIN/MAX DATA
 TOLERANCE
Spatial Meta Data Table
 INSERTION EXAMPLE:
REVIEW
 FIRST>> CREATE TABLE
 THEN>> INSERT METADATA
 NEXT>> CREATE SPATIAL INDEX
 FINALLY>> INSERT DATA AND QUERY FROM THE
TABLE
SPATIAL OPERATORS
 GENERAL SYNTAX:
 EXAMPLE:
SPATIAL OPERATORS
SDO_WITHIN_DISTANCE
Operator
 Concept:
 Syntax:
 Example:
SDO_NN Operator
 Concept:
 Syntax:
 Example:
SDO_NN Operator (more
examples)
SDO_RELATE
 CONCEPT:
 SYNTAX:
 EXAMPLE:
SDO_RELATE
 CONCEPT:
SDO_RELATE
 CONCEPT:
SDO_RELATE
 Syntax:
 Example:
SDO_RELATE
 More Example:
Geometry Processing
Functions
 No Need For Spatial Index!
 more detailed analyses
 can appear in the SELECT list (as well as the WHERE
clause)
 GP Function:
 1-Buffering Function
 2- Relationship Function
 3- Geometry Combination Function
 4- Geometric Analysis Function
 5- Aggregate Function
Buffering Function
 Concept
Buffering Function
 Syntax:
 Example:
Relationship Analysis
Functions
 SDO_DISTANCE
 Concept:
Relationship Analysis
Functions
 SDO_DISTANCE
 Syntax:
 Example:
Relationship Analysis
Functions
 Relate
 Syntax
Relationship Analysis
Functions
 Relate Example:
Geometry Combination
Functions
 Concept
Geometry Combination
Functions
 Syntax:
 Examples:
Geometry Combination
Functions
Geometric Analysis
Functions
 Numeric
 Area
 Length
 Volume
Geometric Analysis
Functions
 Geometric
 MBR
 Convex Hall
 Centroid
Aggregate Functions
 AGGR_MBR
 AGGR_CONVEXHULL
 AGR_UNION
Aggregate Functions
REVIEW
 CREATE SPATIAL TABLE
 SDO_GEOMETRY (DML)
 CREATE SPATIAL INDEX
 INSERT SPATIAL METADATA
 SPATIAL OPERATORS
 SPATIAL FUNCTIONS
REFERENCE
 Pro Oracle Spatial for Oracle Database 11g
 Oracle® Spatial and Graph Developers’ Guide
(E49172-06)
THANKS 

Weitere ähnliche Inhalte

Was ist angesagt?

Lecture+12+topology+2013 (3)
Lecture+12+topology+2013 (3)Lecture+12+topology+2013 (3)
Lecture+12+topology+2013 (3)
Mei Chi Lo
 

Was ist angesagt? (20)

Intro To PostGIS
Intro To PostGISIntro To PostGIS
Intro To PostGIS
 
GeoMesa: Scalable Geospatial Analytics
GeoMesa:  Scalable Geospatial AnalyticsGeoMesa:  Scalable Geospatial Analytics
GeoMesa: Scalable Geospatial Analytics
 
OSM and QGIS
OSM and QGISOSM and QGIS
OSM and QGIS
 
Lecture+12+topology+2013 (3)
Lecture+12+topology+2013 (3)Lecture+12+topology+2013 (3)
Lecture+12+topology+2013 (3)
 
GIS
GISGIS
GIS
 
A short introduction to GIS
A short introduction to GISA short introduction to GIS
A short introduction to GIS
 
Geographic information system – an introduction
Geographic information system – an introductionGeographic information system – an introduction
Geographic information system – an introduction
 
CARTOGRAPHY – yesterday, today and tomorrow
CARTOGRAPHY – yesterday, today and tomorrowCARTOGRAPHY – yesterday, today and tomorrow
CARTOGRAPHY – yesterday, today and tomorrow
 
QGIS Open Source Desktop GIS
QGIS Open Source Desktop GISQGIS Open Source Desktop GIS
QGIS Open Source Desktop GIS
 
Geospatial digital twin
Geospatial digital twinGeospatial digital twin
Geospatial digital twin
 
Introduction to arc gis
Introduction to arc gisIntroduction to arc gis
Introduction to arc gis
 
GIS data analysis
GIS data analysisGIS data analysis
GIS data analysis
 
Intro to qgis workshop
Intro to qgis workshopIntro to qgis workshop
Intro to qgis workshop
 
Web GIS using Google Map and QGIS
Web GIS using Google Map and QGISWeb GIS using Google Map and QGIS
Web GIS using Google Map and QGIS
 
GPS Basics
GPS BasicsGPS Basics
GPS Basics
 
Gis
GisGis
Gis
 
TYBSC IT PGIS Unit I Chapter II Geographic Information and Spacial Database
TYBSC IT PGIS Unit I Chapter II Geographic Information and Spacial DatabaseTYBSC IT PGIS Unit I Chapter II Geographic Information and Spacial Database
TYBSC IT PGIS Unit I Chapter II Geographic Information and Spacial Database
 
Digital Cartography
Digital CartographyDigital Cartography
Digital Cartography
 
Introduction and Application of GIS
Introduction and Application of GISIntroduction and Application of GIS
Introduction and Application of GIS
 
Giving MongoDB a Way to Play with the GIS Community
Giving MongoDB a Way to Play with the GIS CommunityGiving MongoDB a Way to Play with the GIS Community
Giving MongoDB a Way to Play with the GIS Community
 

Andere mochten auch

Sistemas información geográfica
Sistemas información geográficaSistemas información geográfica
Sistemas información geográfica
Marvin Zumbado
 

Andere mochten auch (10)

De SIOSE a PostGIS en cuatro sesiones
De SIOSE a PostGIS en cuatro sesionesDe SIOSE a PostGIS en cuatro sesiones
De SIOSE a PostGIS en cuatro sesiones
 
Using FME to Convert TIGER Spatial Data From Oracle Spatial To ESRI Shapefiles
Using FME to Convert TIGER Spatial Data From Oracle Spatial To ESRI ShapefilesUsing FME to Convert TIGER Spatial Data From Oracle Spatial To ESRI Shapefiles
Using FME to Convert TIGER Spatial Data From Oracle Spatial To ESRI Shapefiles
 
Servidores de mapas en alta disponibilidad CyLiconValley
Servidores de mapas en alta disponibilidad CyLiconValleyServidores de mapas en alta disponibilidad CyLiconValley
Servidores de mapas en alta disponibilidad CyLiconValley
 
Oracle Spatial de la A a la Z - JUGM 2010
Oracle Spatial de la A a la Z - JUGM 2010Oracle Spatial de la A a la Z - JUGM 2010
Oracle Spatial de la A a la Z - JUGM 2010
 
Introdución a PostGis
Introdución a PostGisIntrodución a PostGis
Introdución a PostGis
 
Oracle Spatial de la A a la Z - Unidad 1
Oracle Spatial de la A a la Z - Unidad 1Oracle Spatial de la A a la Z - Unidad 1
Oracle Spatial de la A a la Z - Unidad 1
 
Curso spatial analyst ARCGIS INGEMMET Juan Salcedo
Curso spatial analyst ARCGIS INGEMMET Juan SalcedoCurso spatial analyst ARCGIS INGEMMET Juan Salcedo
Curso spatial analyst ARCGIS INGEMMET Juan Salcedo
 
OpenLayers vs. Leaflet
OpenLayers vs. LeafletOpenLayers vs. Leaflet
OpenLayers vs. Leaflet
 
Sistemas información geográfica
Sistemas información geográficaSistemas información geográfica
Sistemas información geográfica
 
Conferencia ESRI 2014. Gestión de la componente geográfica del negocio median...
Conferencia ESRI 2014. Gestión de la componente geográfica del negocio median...Conferencia ESRI 2014. Gestión de la componente geográfica del negocio median...
Conferencia ESRI 2014. Gestión de la componente geográfica del negocio median...
 

Ähnlich wie Introduction to Oracle Spatial

Odtug2011 adf developers make the database work for you
Odtug2011 adf developers make the database work for youOdtug2011 adf developers make the database work for you
Odtug2011 adf developers make the database work for you
Luc Bors
 

Ähnlich wie Introduction to Oracle Spatial (20)

Sql Saturday Spatial Data Ss2008 Michael Stark Copy
Sql Saturday Spatial Data Ss2008 Michael Stark   CopySql Saturday Spatial Data Ss2008 Michael Stark   Copy
Sql Saturday Spatial Data Ss2008 Michael Stark Copy
 
Where the %$#^ Is Everybody? Geospatial Solutions For Oracle APEX
Where the %$#^ Is Everybody? Geospatial Solutions For Oracle APEXWhere the %$#^ Is Everybody? Geospatial Solutions For Oracle APEX
Where the %$#^ Is Everybody? Geospatial Solutions For Oracle APEX
 
SQL Windowing
SQL WindowingSQL Windowing
SQL Windowing
 
Compass Framework
Compass FrameworkCompass Framework
Compass Framework
 
Odtug2011 adf developers make the database work for you
Odtug2011 adf developers make the database work for youOdtug2011 adf developers make the database work for you
Odtug2011 adf developers make the database work for you
 
ACADILD:: HADOOP LESSON
ACADILD:: HADOOP LESSON ACADILD:: HADOOP LESSON
ACADILD:: HADOOP LESSON
 
CARTO ENGINE
CARTO ENGINECARTO ENGINE
CARTO ENGINE
 
Sharing names and address cleaning patterns for Patstat
Sharing names and address cleaning patterns for PatstatSharing names and address cleaning patterns for Patstat
Sharing names and address cleaning patterns for Patstat
 
Mondrian - Geo Mondrian
Mondrian - Geo MondrianMondrian - Geo Mondrian
Mondrian - Geo Mondrian
 
Getting Started with Geospatial Data in MongoDB
Getting Started with Geospatial Data in MongoDBGetting Started with Geospatial Data in MongoDB
Getting Started with Geospatial Data in MongoDB
 
Database@Home - Maps and Spatial Analyses: How to use them
Database@Home - Maps and Spatial Analyses: How to use themDatabase@Home - Maps and Spatial Analyses: How to use them
Database@Home - Maps and Spatial Analyses: How to use them
 
OrientDB - The 2nd generation of (multi-model) NoSQL
OrientDB - The 2nd generation of  (multi-model) NoSQLOrientDB - The 2nd generation of  (multi-model) NoSQL
OrientDB - The 2nd generation of (multi-model) NoSQL
 
vFabric SQLFire for high performance data
vFabric SQLFire for high performance datavFabric SQLFire for high performance data
vFabric SQLFire for high performance data
 
Making Use of Query Layers & Spatial Views
Making Use of Query Layers & Spatial ViewsMaking Use of Query Layers & Spatial Views
Making Use of Query Layers & Spatial Views
 
MongoDB and RDBMS
MongoDB and RDBMSMongoDB and RDBMS
MongoDB and RDBMS
 
Less08 Schema
Less08 SchemaLess08 Schema
Less08 Schema
 
Gis Xke
Gis XkeGis Xke
Gis Xke
 
Jdbc Dao it-slideshares.blogspot.com
Jdbc Dao it-slideshares.blogspot.comJdbc Dao it-slideshares.blogspot.com
Jdbc Dao it-slideshares.blogspot.com
 
MIS5101 WK10 Outcome Measures
MIS5101 WK10 Outcome MeasuresMIS5101 WK10 Outcome Measures
MIS5101 WK10 Outcome Measures
 
Love Your Database Railsconf 2017
Love Your Database Railsconf 2017Love Your Database Railsconf 2017
Love Your Database Railsconf 2017
 

Mehr von Ehsan Hamzei

Mehr von Ehsan Hamzei (19)

Database Normalization
Database NormalizationDatabase Normalization
Database Normalization
 
Introduction to oracle DB data structure and data access (persian)
Introduction to oracle DB data structure and data access (persian)Introduction to oracle DB data structure and data access (persian)
Introduction to oracle DB data structure and data access (persian)
 
Arc GIS Overlay Functions
Arc GIS Overlay FunctionsArc GIS Overlay Functions
Arc GIS Overlay Functions
 
Air pollution Assessment (GIS,RS Approach)
Air pollution Assessment (GIS,RS Approach)Air pollution Assessment (GIS,RS Approach)
Air pollution Assessment (GIS,RS Approach)
 
Bluetooth Positioning
Bluetooth PositioningBluetooth Positioning
Bluetooth Positioning
 
Oracle Data Integrator (persian)
Oracle Data Integrator (persian)Oracle Data Integrator (persian)
Oracle Data Integrator (persian)
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 
Spatial queries entity recognition and disambiguation
Spatial queries entity recognition and disambiguationSpatial queries entity recognition and disambiguation
Spatial queries entity recognition and disambiguation
 
Uncertainty in Geospatial Data
Uncertainty in Geospatial DataUncertainty in Geospatial Data
Uncertainty in Geospatial Data
 
Geoprocessing
GeoprocessingGeoprocessing
Geoprocessing
 
Spatial Autocorrelation
Spatial AutocorrelationSpatial Autocorrelation
Spatial Autocorrelation
 
Map algebra
Map algebraMap algebra
Map algebra
 
Fractal Theory
Fractal TheoryFractal Theory
Fractal Theory
 
Graph Theory
Graph TheoryGraph Theory
Graph Theory
 
Fuzzy Set
Fuzzy SetFuzzy Set
Fuzzy Set
 
Spatial Transformation
Spatial TransformationSpatial Transformation
Spatial Transformation
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GIS
 
DTM Quality Assessment
DTM Quality AssessmentDTM Quality Assessment
DTM Quality Assessment
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 

Kürzlich hochgeladen

Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
AbrahamGadissa
 
grop material handling.pdf and resarch ethics tth
grop material handling.pdf and resarch ethics tthgrop material handling.pdf and resarch ethics tth
grop material handling.pdf and resarch ethics tth
AmanyaSylus
 
Paint shop management system project report.pdf
Paint shop management system project report.pdfPaint shop management system project report.pdf
Paint shop management system project report.pdf
Kamal Acharya
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 

Kürzlich hochgeladen (20)

Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdf
 
A case study of cinema management system project report..pdf
A case study of cinema management system project report..pdfA case study of cinema management system project report..pdf
A case study of cinema management system project report..pdf
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
grop material handling.pdf and resarch ethics tth
grop material handling.pdf and resarch ethics tthgrop material handling.pdf and resarch ethics tth
grop material handling.pdf and resarch ethics tth
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
 
An improvement in the safety of big data using blockchain technology
An improvement in the safety of big data using blockchain technologyAn improvement in the safety of big data using blockchain technology
An improvement in the safety of big data using blockchain technology
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 
Paint shop management system project report.pdf
Paint shop management system project report.pdfPaint shop management system project report.pdf
Paint shop management system project report.pdf
 
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...Software Engineering - Modelling Concepts + Class Modelling + Building the An...
Software Engineering - Modelling Concepts + Class Modelling + Building the An...
 
NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...
NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...
NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...
 
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
 
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdfRESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
 

Introduction to Oracle Spatial

Hinweis der Redaktion

  1. What if there are no objects within distance d? What if the nearest object is at distance 2 *d? The SDO_WITHIN_DISTANCE operator is not appropriate when you need to obtain a specific number of neighbors, no matter how far they are from the query location. For these cases, the SDO_NN operator is appropriate
  2. What if there are no objects within distance d? What if the nearest object is at distance 2 *d? The SDO_WITHIN_DISTANCE operator is not appropriate when you need to obtain a specific number of neighbors, no matter how far they are from the query location. For these cases, the SDO_NN operator is appropriate
  3. BASED ON MBR