SlideShare una empresa de Scribd logo
1 de 30
OPTIMIZING SPATIAL
DATABASES
BY ANDA VELICANU, ŞTEFAN OLARU

Presented By: Ishraq Fataftah
Agenda
   Introduction.
   Spatial Indexing Structure.
     R-Tree Index.
     Quadtree Index.

   Comparing Spatial Indexes.
   Oracle Examples.
   Conclusion.
Introduction




               City Map
Introduction Cont.
   Spatial Objects: Consists of
    lines, surfaces, volumes and higher dimension
    objects that are used in applications of
    computer-aided
    design, cartography, geographic information
    systems.

   Spatial Data: The values of the objects’ spatial
    attributes
    (length, configuration, perimeter, area, volume,
     etc.)
Introduction Cont.
   Spatial Databases: is a collection of spatial
    and non-spatial data that is interrelated, of
    data descriptions and links between data.
   It offers additional functions that allow
    processing spatial data types.
     Geometry.

     Geography.
Introduction Cont.
   Optimizing spatial databases means
    optimizing the queries, which requires less
    time spent by running the queries before
    receiving an answer.
Spatial Indexes
   Indexing spatial data: a mechanism to decrease
    the number of searches (optimize spatial queries).
   A spatial index is used to locate objects in the
    same area of data or from different locations.
   Spatial indexes include:
      Grid index.
     Z-order.
     Quadtree, Octree.
     UB-tree,
     R-tree.
     kd-tree,
     M-tree.
Spatial Indexes: Grid Index
Spatial Indexes: Z-Order
Spatial Indexes:UB Tree
Spatial Indexes: Kd tree
Spatial Indexes: m tree
Spatial Indexes: R-Tree
Spatial Indexes: R-Tree
Spatial Indexes: R-Tree
   Objects (geometric shapes, lines or points) are
    grouped using a MBR (Minimum Bounding
    Rectangle).
   Objects are added to an MBR with an
    index, leading to the smallest distance
    possible.
   Queries and updates get the R-tree’s root and
    browses down to the leaves.
Spatial Indexes: R-Tree
   Criteria that may affect the response time of an
    R-tree configuration for the two-dimensional
    case,
     The MBR area
     The MBR perimeter

     The distance between bounding rectangles

     Using the storage space
Spatial Indexes: R-Tree
   Building an R-tree index depends on two
    characteristics:
     The   way the objects are inserted in the tree.
       Incremental with dynamic data.
       Batch with known data.

     Dimensionality
       Linear.
       Dimensional.
Spatial Indexes: R-Tree


                    Spatial object:
                    Contour (outline) of the area
                    around the building(s).

                    Minimum bounding region
                    (MBR) of the object.




                                    18
Spatial Indexes: Quadtree
   This type of indexing starts is a tree whose
    inner nodes have up to four children.
   Used to partition a two-dimensional space by
    dividing it into four identically shaped regions.
     Bein equal parts on each level.
     Depend on incoming data.
Spatial Indexes: Quadtree
   Types of Quadtree indexes are classified by:
     The type of data that is represented
     The independence of the tree’s shape on the
      order in which data is processed.
     Variability of the tree obtained from data
      processing.
Spatial Indexes: Quadtree
   Region Quadtree:
     Decomposing   the region into four equal
      quadrants.
     Each node in the tree has either four children or
      none (leaf node).
     A Region tree with four sizes and a depth of n can
      be used for representing an image of 2n × 2n
      pixels, each pixel’s value is 0 or 1.
Spatial Indexes: Quadtree
   Point Quadtree:
     Based   on binary trees used to represent   two-
     dimensional point data type.
     Complex   nodes that contain more than two
      pointers (left, right) and information.
     4 pointers: NW, NE, SW and SE,
     The key represented in x, y coordinates,
     Information.
     The tree shape depends on the order in which
      data is processed.
Spatial Indexes: Quadtree
   Edge Quadtree:
     Used  mostly to store lines and not points.
     Curves are approximated by subdividing the cells
      in a very fine resolution.
     Result as very unbalanced trees.

     Rarely used.
Spatial Indexes: Quadtree
   Common characteristics between all Quadtree
    types:
     The  space is split into cells;
     Each cell or group of cells has a maximum
      capacity, and when it is reached the group of cells
      splits;
     The tree’s dimension and shape depend (strictly
      or not) on how the new data is inserted.
Comparing Spatial Indexing
   Quadtrees
     use interior spaces for queries and data
      geometries.
     Pieces of space are labeled as interior or
      border, considering whether or not they are within
      the geometry.
     Inner surfaces arising from the execution of a
      query are also identified
   R-tree uses only inner queries.
Comparing Spatial Indexing
Comparing Spatial Indexing
   Quadtree has its advantages in terms of more
    complex types of queries.
   Basic spatial operations are performed much
    faster using an R-tree indexing type.
Oracle Spatial Examples
   Oracle Spatial is a component of Oracle
    Database.
   Oracle Spatial supports the object-relational
    model for representing the geometry.
   SDO_GEOMETRY.
Oracle Spatial Examples
Conclusion
   Spatial Databases are widely used nowadays.
   Optimizing Spatial Databases is of a
    significant importance.
   Spatial databases can be optimized using
    spatial indexes like R-tree or Quadtree and
    other indexing structures.
   Oracle supports spatial indexing using R-Tree
    and Quadtree.

Más contenido relacionado

La actualidad más candente

4.2 spatial data mining
4.2 spatial data mining4.2 spatial data mining
4.2 spatial data miningKrish_ver2
 
datamodel_vector
datamodel_vectordatamodel_vector
datamodel_vectorRiya Gupta
 
Geographic Phenomena and their Representations
Geographic Phenomena and their RepresentationsGeographic Phenomena and their Representations
Geographic Phenomena and their RepresentationsNAXA-Developers
 
Spatial analysis and Analysis Tools ( GIS )
Spatial analysis and Analysis Tools ( GIS )Spatial analysis and Analysis Tools ( GIS )
Spatial analysis and Analysis Tools ( GIS )designQube
 
Spatial data analysis 1
Spatial data analysis 1Spatial data analysis 1
Spatial data analysis 1Johan Blomme
 
Algorithms for Query Processing and Optimization of Spatial Operations
Algorithms for Query Processing and Optimization of Spatial OperationsAlgorithms for Query Processing and Optimization of Spatial Operations
Algorithms for Query Processing and Optimization of Spatial OperationsNatasha Mandal
 
Database gis fundamentals
Database gis fundamentalsDatabase gis fundamentals
Database gis fundamentalsSumant Diwakar
 
Spatial vs non spatial
Spatial vs non spatialSpatial vs non spatial
Spatial vs non spatialSumant Diwakar
 
QUERY AND NETWORK ANALYSIS IN GIS
QUERY AND NETWORK ANALYSIS IN GISQUERY AND NETWORK ANALYSIS IN GIS
QUERY AND NETWORK ANALYSIS IN GISDEVANG KAPADIA
 
Surface Representations using GIS AND Topographical Mapping
Surface Representations using GIS AND Topographical MappingSurface Representations using GIS AND Topographical Mapping
Surface Representations using GIS AND Topographical MappingNAXA-Developers
 
Raster data model
Raster data modelRaster data model
Raster data modelPramoda Raj
 

La actualidad más candente (20)

4.2 spatial data mining
4.2 spatial data mining4.2 spatial data mining
4.2 spatial data mining
 
GIS & Raster
GIS & RasterGIS & Raster
GIS & Raster
 
datamodel_vector
datamodel_vectordatamodel_vector
datamodel_vector
 
Spatial databases
Spatial databasesSpatial databases
Spatial databases
 
Geographic Phenomena and their Representations
Geographic Phenomena and their RepresentationsGeographic Phenomena and their Representations
Geographic Phenomena and their Representations
 
GIS Data Types
GIS Data TypesGIS Data Types
GIS Data Types
 
Spatial Data Model 2
Spatial Data Model 2Spatial Data Model 2
Spatial Data Model 2
 
Spatial analysis and Analysis Tools ( GIS )
Spatial analysis and Analysis Tools ( GIS )Spatial analysis and Analysis Tools ( GIS )
Spatial analysis and Analysis Tools ( GIS )
 
Spatial data analysis 1
Spatial data analysis 1Spatial data analysis 1
Spatial data analysis 1
 
Vectors and Rasters
Vectors and RastersVectors and Rasters
Vectors and Rasters
 
Mrp Intrim
Mrp IntrimMrp Intrim
Mrp Intrim
 
Algorithms for Query Processing and Optimization of Spatial Operations
Algorithms for Query Processing and Optimization of Spatial OperationsAlgorithms for Query Processing and Optimization of Spatial Operations
Algorithms for Query Processing and Optimization of Spatial Operations
 
Database gis fundamentals
Database gis fundamentalsDatabase gis fundamentals
Database gis fundamentals
 
GIS data structure
GIS data structureGIS data structure
GIS data structure
 
Types of GIS Data
Types of GIS DataTypes of GIS Data
Types of GIS Data
 
Spatial vs non spatial
Spatial vs non spatialSpatial vs non spatial
Spatial vs non spatial
 
Raster
RasterRaster
Raster
 
QUERY AND NETWORK ANALYSIS IN GIS
QUERY AND NETWORK ANALYSIS IN GISQUERY AND NETWORK ANALYSIS IN GIS
QUERY AND NETWORK ANALYSIS IN GIS
 
Surface Representations using GIS AND Topographical Mapping
Surface Representations using GIS AND Topographical MappingSurface Representations using GIS AND Topographical Mapping
Surface Representations using GIS AND Topographical Mapping
 
Raster data model
Raster data modelRaster data model
Raster data model
 

Similar a Optimizing spatial database

Spot db consistency checking and optimization in spatial database
Spot db  consistency checking and optimization in spatial databaseSpot db  consistency checking and optimization in spatial database
Spot db consistency checking and optimization in spatial databasePratik Udapure
 
Data models in geographical information system(GIS)
Data models in geographical information system(GIS)Data models in geographical information system(GIS)
Data models in geographical information system(GIS)Pramoda Raj
 
R-Tree Implementation of Image Databases
R-Tree Implementation of Image DatabasesR-Tree Implementation of Image Databases
R-Tree Implementation of Image Databasessipij
 
SPATIAL R-TREE INDEX BASED ON GRID DIVISION FOR QUERY PROCESSING
SPATIAL R-TREE INDEX BASED ON GRID DIVISION FOR QUERY PROCESSINGSPATIAL R-TREE INDEX BASED ON GRID DIVISION FOR QUERY PROCESSING
SPATIAL R-TREE INDEX BASED ON GRID DIVISION FOR QUERY PROCESSINGijdms
 
Data indexing presentation part 2
Data indexing presentation part 2Data indexing presentation part 2
Data indexing presentation part 2Vivek Kantariya
 
Spatial database managment.pptx
Spatial database managment.pptxSpatial database managment.pptx
Spatial database managment.pptxbitcivilmeerut
 
Spatial Data Mining
Spatial Data MiningSpatial Data Mining
Spatial Data MiningRashmi Bhat
 
23. Advanced Datatypes and New Application in DBMS
23. Advanced Datatypes and New Application in DBMS23. Advanced Datatypes and New Application in DBMS
23. Advanced Datatypes and New Application in DBMSkoolkampus
 
spatial databases ADBMS ppt
spatial databases ADBMS pptspatial databases ADBMS ppt
spatial databases ADBMS pptRitaThakkar1
 
ROMAN URDU OPINION MINING SYSTEM (RUOMIS)
ROMAN URDU OPINION MINING SYSTEM (RUOMIS) ROMAN URDU OPINION MINING SYSTEM (RUOMIS)
ROMAN URDU OPINION MINING SYSTEM (RUOMIS) cseij
 
Hybrid geo textual index structure
Hybrid geo textual index structureHybrid geo textual index structure
Hybrid geo textual index structurecseij
 
Comparative study of Bitmap indexing and B Tree.
Comparative study of Bitmap indexing and B Tree.Comparative study of Bitmap indexing and B Tree.
Comparative study of Bitmap indexing and B Tree.Sudhanshu Deshmukh
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)Madishetty Prathibha
 
Scattered gis handbook
Scattered gis handbookScattered gis handbook
Scattered gis handbookWaleed Liaqat
 

Similar a Optimizing spatial database (20)

Spot db consistency checking and optimization in spatial database
Spot db  consistency checking and optimization in spatial databaseSpot db  consistency checking and optimization in spatial database
Spot db consistency checking and optimization in spatial database
 
Data models in geographical information system(GIS)
Data models in geographical information system(GIS)Data models in geographical information system(GIS)
Data models in geographical information system(GIS)
 
Geoinformatics.pptx
Geoinformatics.pptxGeoinformatics.pptx
Geoinformatics.pptx
 
R-Tree Implementation of Image Databases
R-Tree Implementation of Image DatabasesR-Tree Implementation of Image Databases
R-Tree Implementation of Image Databases
 
SPATIAL R-TREE INDEX BASED ON GRID DIVISION FOR QUERY PROCESSING
SPATIAL R-TREE INDEX BASED ON GRID DIVISION FOR QUERY PROCESSINGSPATIAL R-TREE INDEX BASED ON GRID DIVISION FOR QUERY PROCESSING
SPATIAL R-TREE INDEX BASED ON GRID DIVISION FOR QUERY PROCESSING
 
Data indexing presentation part 2
Data indexing presentation part 2Data indexing presentation part 2
Data indexing presentation part 2
 
Spatial database managment.pptx
Spatial database managment.pptxSpatial database managment.pptx
Spatial database managment.pptx
 
Cg4201552556
Cg4201552556Cg4201552556
Cg4201552556
 
Cr25555560
Cr25555560Cr25555560
Cr25555560
 
Indexing Data Structure
Indexing Data StructureIndexing Data Structure
Indexing Data Structure
 
Spatial Data Mining
Spatial Data MiningSpatial Data Mining
Spatial Data Mining
 
23. Advanced Datatypes and New Application in DBMS
23. Advanced Datatypes and New Application in DBMS23. Advanced Datatypes and New Application in DBMS
23. Advanced Datatypes and New Application in DBMS
 
spatial databases ADBMS ppt
spatial databases ADBMS pptspatial databases ADBMS ppt
spatial databases ADBMS ppt
 
ROMAN URDU OPINION MINING SYSTEM (RUOMIS)
ROMAN URDU OPINION MINING SYSTEM (RUOMIS) ROMAN URDU OPINION MINING SYSTEM (RUOMIS)
ROMAN URDU OPINION MINING SYSTEM (RUOMIS)
 
Hybrid geo textual index structure
Hybrid geo textual index structureHybrid geo textual index structure
Hybrid geo textual index structure
 
UNIT V.pdf
UNIT V.pdfUNIT V.pdf
UNIT V.pdf
 
Comparative study of Bitmap indexing and B Tree.
Comparative study of Bitmap indexing and B Tree.Comparative study of Bitmap indexing and B Tree.
Comparative study of Bitmap indexing and B Tree.
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
 
Visualization Proess
Visualization ProessVisualization Proess
Visualization Proess
 
Scattered gis handbook
Scattered gis handbookScattered gis handbook
Scattered gis handbook
 

Más de Ishraq Al Fataftah

Más de Ishraq Al Fataftah (9)

Towards scalable locationaware
Towards scalable locationawareTowards scalable locationaware
Towards scalable locationaware
 
Password based cryptography
Password based cryptographyPassword based cryptography
Password based cryptography
 
Malicious traffic
Malicious trafficMalicious traffic
Malicious traffic
 
Edge detection
Edge detectionEdge detection
Edge detection
 
Peer to-peer mobile payments
Peer to-peer mobile paymentsPeer to-peer mobile payments
Peer to-peer mobile payments
 
Publish subscribe model overview
Publish subscribe model overviewPublish subscribe model overview
Publish subscribe model overview
 
Requirement engineering evaluation
Requirement engineering evaluationRequirement engineering evaluation
Requirement engineering evaluation
 
Packet sniffing in switched LANs
Packet sniffing in switched LANsPacket sniffing in switched LANs
Packet sniffing in switched LANs
 
Presentation skills
Presentation skillsPresentation skills
Presentation skills
 

Último

What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 

Último (20)

What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Optimizing spatial database

  • 1. OPTIMIZING SPATIAL DATABASES BY ANDA VELICANU, ŞTEFAN OLARU Presented By: Ishraq Fataftah
  • 2. Agenda  Introduction.  Spatial Indexing Structure.  R-Tree Index.  Quadtree Index.  Comparing Spatial Indexes.  Oracle Examples.  Conclusion.
  • 3. Introduction City Map
  • 4. Introduction Cont.  Spatial Objects: Consists of lines, surfaces, volumes and higher dimension objects that are used in applications of computer-aided design, cartography, geographic information systems.  Spatial Data: The values of the objects’ spatial attributes (length, configuration, perimeter, area, volume, etc.)
  • 5. Introduction Cont.  Spatial Databases: is a collection of spatial and non-spatial data that is interrelated, of data descriptions and links between data.  It offers additional functions that allow processing spatial data types.  Geometry.  Geography.
  • 6. Introduction Cont.  Optimizing spatial databases means optimizing the queries, which requires less time spent by running the queries before receiving an answer.
  • 7. Spatial Indexes  Indexing spatial data: a mechanism to decrease the number of searches (optimize spatial queries).  A spatial index is used to locate objects in the same area of data or from different locations.  Spatial indexes include:  Grid index.  Z-order.  Quadtree, Octree.  UB-tree,  R-tree.  kd-tree,  M-tree.
  • 15. Spatial Indexes: R-Tree  Objects (geometric shapes, lines or points) are grouped using a MBR (Minimum Bounding Rectangle).  Objects are added to an MBR with an index, leading to the smallest distance possible.  Queries and updates get the R-tree’s root and browses down to the leaves.
  • 16. Spatial Indexes: R-Tree  Criteria that may affect the response time of an R-tree configuration for the two-dimensional case,  The MBR area  The MBR perimeter  The distance between bounding rectangles  Using the storage space
  • 17. Spatial Indexes: R-Tree  Building an R-tree index depends on two characteristics:  The way the objects are inserted in the tree.  Incremental with dynamic data.  Batch with known data.  Dimensionality  Linear.  Dimensional.
  • 18. Spatial Indexes: R-Tree Spatial object: Contour (outline) of the area around the building(s). Minimum bounding region (MBR) of the object. 18
  • 19. Spatial Indexes: Quadtree  This type of indexing starts is a tree whose inner nodes have up to four children.  Used to partition a two-dimensional space by dividing it into four identically shaped regions.  Bein equal parts on each level.  Depend on incoming data.
  • 20. Spatial Indexes: Quadtree  Types of Quadtree indexes are classified by:  The type of data that is represented  The independence of the tree’s shape on the order in which data is processed.  Variability of the tree obtained from data processing.
  • 21. Spatial Indexes: Quadtree  Region Quadtree:  Decomposing the region into four equal quadrants.  Each node in the tree has either four children or none (leaf node).  A Region tree with four sizes and a depth of n can be used for representing an image of 2n × 2n pixels, each pixel’s value is 0 or 1.
  • 22. Spatial Indexes: Quadtree  Point Quadtree:  Based on binary trees used to represent two- dimensional point data type.  Complex nodes that contain more than two pointers (left, right) and information.  4 pointers: NW, NE, SW and SE,  The key represented in x, y coordinates,  Information.  The tree shape depends on the order in which data is processed.
  • 23. Spatial Indexes: Quadtree  Edge Quadtree:  Used mostly to store lines and not points.  Curves are approximated by subdividing the cells in a very fine resolution.  Result as very unbalanced trees.  Rarely used.
  • 24. Spatial Indexes: Quadtree  Common characteristics between all Quadtree types:  The space is split into cells;  Each cell or group of cells has a maximum capacity, and when it is reached the group of cells splits;  The tree’s dimension and shape depend (strictly or not) on how the new data is inserted.
  • 25. Comparing Spatial Indexing  Quadtrees  use interior spaces for queries and data geometries.  Pieces of space are labeled as interior or border, considering whether or not they are within the geometry.  Inner surfaces arising from the execution of a query are also identified  R-tree uses only inner queries.
  • 27. Comparing Spatial Indexing  Quadtree has its advantages in terms of more complex types of queries.  Basic spatial operations are performed much faster using an R-tree indexing type.
  • 28. Oracle Spatial Examples  Oracle Spatial is a component of Oracle Database.  Oracle Spatial supports the object-relational model for representing the geometry.  SDO_GEOMETRY.
  • 30. Conclusion  Spatial Databases are widely used nowadays.  Optimizing Spatial Databases is of a significant importance.  Spatial databases can be optimized using spatial indexes like R-tree or Quadtree and other indexing structures.  Oracle supports spatial indexing using R-Tree and Quadtree.

Notas del editor

  1. Traditional VS SpatialSpatial objects: examples, location or shape, river, forest, border
  2. Point data is a point which is completely characterized by its location in a multidimensional space.Regional Data
  3. the grid is a specific area which is divided into a series of contiguous cells, that can have unique identifiers, so they can be used as spatial indexes.Such grids exist in a variety of form s
  4. is used for data structures to map multidimensional data in one dimension. it can be used as binary search trees, B trees, lists or hash tables.
  5. UB trees are balanced trees for efficient storageand query of multidimensional data.They are actually B + trees (with informationonly in the leaves), with records stored as inZ-order.
  6. Kd (k-dimensional) Tree is a space partitioning data structure for organizing points in a k-dimensional space. Kd-tree is used in applications involving multi-dimensional search key.
  7. m-tree index can be used for efficient handling of complex object queries using an arbitrary metric.As in any Tree-based data structure, the M-Tree is composed of Nodes and Leaves. In each node there is a data object that identifies it uniquely and a pointer to a sub-tree where its children reside. Every leaf has several data objects. For each node there is a radius r that defines a Ball in the desired metric space. Thus, every node n and leaf l residing in a particular node N is at most distance r from N, and every node n and leaf l with node parent N keep the distance from it.
  8. the surface is replaced by volume and the perimeter of a polygon or hyper-polygon is defined by the sum of its extensions in different sizes or by the sum of volumes of the polygon’s sides.
  9. The number of times,in which the decomposition is made, can befixed in advance or may be governed by theproperties of input data
  10. (surfaces, points, lines or curves),
  11. Root node represents the entire imageregion. If in a region there are pixels whichare not all 0 or 1, the region will divide in thesub-regions. Each leaf node represents ablock of pixels that are either all 0 or all 1.
  12. 100 miles radius of midtown Manhattan, New York,
  13. Create Table.Insert Data.Modify MetaData.Create Index.Query 1: Intersection.Query 2: Area.Query 3: Distance.Query 4: Spatial relations.