SlideShare a Scribd company logo
SPOT DATABASES: EFFICIENT
CONSISTENCY CHECKING AND
OPTIMISTIC SELECTION IN
PROBABILISTIC SPATIAL
DATABASES
Presented By : Pratik S. Udapure
Agenda
 Introduction
 Optimization
 Spatial Indexes
 Spatial Query
 SQL examples
 Features of Spatial Databases
 Advantages of Spatial Databases
 Disadvantages of Spatial Databases
 Conclusion
Introduction
 Spatial database: is a database that is
optimized to store and query data that
represents objects defined in a geometric
space
 It offers additional functions that allow
processing spatial data types.
 Geometry.
 Geography.
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.)
Spatial DB Image
Optimization:
 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
 Octree
 Quadtree
 UB-tree
 R-tree
 kd-tree
 M-tree
Spatial Indexes: Grid Index
In the context of a Spatial Index, a grid (a.k.a. "mesh", also
"global grid" if it covers the entire surface of the globe) is a
regular division of a 2-D surface that divides it into a series
of contiguous cells, which can then be assigned unique
identifiers and used for spatial indexing purposes.
Spatial Indexes: Z-Order
 In mathematical analysis and computer
science, Z-order, Morton order, or Morton code
is a function which maps multidimensional
data to one dimension while preserving locality
of the data points.
Spatial Indexes: Octree
An octree is a tree data structure in which each
internal node has exactly eight childern. Octrees
are most often used to partition a three dimensional
space by recursively subdividing it into eight octants
Spatial Indexes: Quad Tree
 A quadtree is a tree data structure in which
each internal node has exactly four children.
Quadtrees are most often used to partition a
two-dimensional space by recursively
subdividing it into four quadrants or regions.
Spatial Indexes: UB Tree
 The UB-tree as proposed by Rudolf Bayer and Volker
Markl is a balanced tree for storing and efficiently
retrieving multidimensional data. It is basically a B+tree
(information only in the leaves) with records stored
according to z-order, also called Morton order. Z-order is
simply calculated by bitwise interlacing the keys.
Spatial Indexes: R Tree
 R-trees are tree data structure used for spatial
access methods,i.e., for indexing multi-
dimensional information such as geographical
coordinates, rectangles or polygons.
Spatial Indexes: KD Tree
 The k-d tree is a binary tree in which every node
is a k-dimensional point. Every non-leaf node can
be thought of as implicitly generating a splitting
hyperlane that divides the space into two parts,
Spatial Indexes: M Tree
 M-trees are tree data structure that are similar to
R-trees and B-trees. 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
Spatial Query
 A spatial query is a special type of database
query supported by geo databases and spatial
databases
 Some of the most important are that they allow
for the use of geometry data types such as
points, lines and polygons and that these
queries consider the spatial relationship
between these geometries.
SQL example
 Create “pubs” table
create table pubs (name varchar,
beer-price float4);
addgeometrycolumn(‘beer-db’,'pubs','location’
,2167,'POINT',3);
Insert data
insert into pubs values ('Garricks Head',4.50,
GeometryFromText('POINT (1196131 383324)’,2167));
Perform Query
 select name, beer-price, distance(location,
GeometryFromText('POINT(1195722 383854)',2167))
from pubs order by beer-price;
 name | beer-price | distance
 ---------------+------------+------------------
 Fireside | 4.25 | 1484.10275160491
 The Forge | 4.33 | 1533.06561109862
 Rumours | 4.46 | 2042.00094093097
 Garricks Head | 4.5 | 669.389105609889
 Slap Happy | 4.5 | 1882.31910168298
 Old Bailys | 4.55 | 1147.20900404641
 Black Sheep | 4.66 | 536.859935972633
 Big Bad Daves | 4.75 | 907.446543878884
Features of spatial databases
 Spatial Measurements: Computes line length, polygon
area, the distance between geometries, etc.
 Spatial Functions: Modify existing features to create new
ones, for example by providing a buffer around them,
intersecting features, etc.
 Spatial Predicates: Allows true/false queries about
spatial relationships between geometries. Examples
include "do two polygons overlap" or 'is there a
residence located within a mile of the area we are
planning to build the landfill?'
 Geometry Constructors: Creates new geometries,
usually by specifying the vertices (points or nodes)
which define the shape.
 Observer Functions: Queries which return specific
information about a feature such as the location of the
center of a circle
Advantages of Spatial
Databases
Able to treat your spatial data like anything else in the DB
 transactions
 backups
 integrity checks
 less data redundancy
 fundamental organization and operations handled by the DB
 multi-user support
 security/access control
 locking
Advantages cont.
Spatial querying using SQL
 use simple SQL expressions to determine spatial
relationships
 distance
 adjacency
 containment
 use simple SQL expressions to perform spatial
operations
 area
 length
 intersection
 union
 buffer
Disadvantages of Spatial
Databases
 Cost to implement can be high
 Some inflexibility
 Incompatibilities with some GIS software
 Slower than local, specialized data structures
 User/managerial inexperience and caution
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.
 Big career opportunities in Spatial DB sector
in developing GIS software

More Related Content

What's hot (19)

Physical architecture of sql server
Physical architecture of sql server
Divya Sharma
 
Presentation on tablespaceses segments extends and blocks
Presentation on tablespaceses segments extends and blocks
Vinay Ugave
 
MapInfo Professional 12.0 and SQL Server 2008
MapInfo Professional 12.0 and SQL Server 2008
Peter Horsbøll Møller
 
Adbms 27 parallel database distribution architecture
Adbms 27 parallel database distribution architecture
Vaibhav Khanna
 
Sql server introduction
Sql server introduction
Riteshkiit
 
Hive and HiveQL - Module6
Hive and HiveQL - Module6
Rohit Agrawal
 
Dbms schemas for decision support
Dbms schemas for decision support
rameswara reddy venkat
 
Best Practices in the Use of Columnar Databases
Best Practices in the Use of Columnar Databases
DATAVERSITY
 
Sql Server Basics
Sql Server Basics
rainynovember12
 
MS Sql Server: Introduction To Database Concepts
MS Sql Server: Introduction To Database Concepts
DataminingTools Inc
 
Using Spectrum on Demand from MapInfo Pro
Using Spectrum on Demand from MapInfo Pro
Peter Horsbøll Møller
 
Row or Columnar Database
Row or Columnar Database
Biju Nair
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
theijes
 
Hbase
Hbase
AmitkumarPal21
 
Data analytics with R
Data analytics with R
Dr. C.V. Suresh Babu
 
Bigtable_Paper
Bigtable_Paper
Tarun Kumar Sarkar
 
Sql server basics
Sql server basics
Dilfaroz Khan
 
Be Location Intelligent with MapInfo Pro v2019
Be Location Intelligent with MapInfo Pro v2019
Peter Horsbøll Møller
 
Rise of Column Oriented Database
Rise of Column Oriented Database
Suvradeep Rudra
 
Physical architecture of sql server
Physical architecture of sql server
Divya Sharma
 
Presentation on tablespaceses segments extends and blocks
Presentation on tablespaceses segments extends and blocks
Vinay Ugave
 
MapInfo Professional 12.0 and SQL Server 2008
MapInfo Professional 12.0 and SQL Server 2008
Peter Horsbøll Møller
 
Adbms 27 parallel database distribution architecture
Adbms 27 parallel database distribution architecture
Vaibhav Khanna
 
Sql server introduction
Sql server introduction
Riteshkiit
 
Hive and HiveQL - Module6
Hive and HiveQL - Module6
Rohit Agrawal
 
Best Practices in the Use of Columnar Databases
Best Practices in the Use of Columnar Databases
DATAVERSITY
 
MS Sql Server: Introduction To Database Concepts
MS Sql Server: Introduction To Database Concepts
DataminingTools Inc
 
Using Spectrum on Demand from MapInfo Pro
Using Spectrum on Demand from MapInfo Pro
Peter Horsbøll Møller
 
Row or Columnar Database
Row or Columnar Database
Biju Nair
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
theijes
 
Be Location Intelligent with MapInfo Pro v2019
Be Location Intelligent with MapInfo Pro v2019
Peter Horsbøll Møller
 
Rise of Column Oriented Database
Rise of Column Oriented Database
Suvradeep Rudra
 

Viewers also liked (7)

Sql db optimization
Sql db optimization
Nikhildas P C
 
Practical SQL query monitoring and optimization
Practical SQL query monitoring and optimization
Ivo Andreev
 
Mongo db pefrormance optimization strategies
Mongo db pefrormance optimization strategies
ronwarshawsky
 
"MySQL Boosting - DB Best Practices & Optimization" by José Luis Martínez - C...
"MySQL Boosting - DB Best Practices & Optimization" by José Luis Martínez - C...
CAPSiDE
 
MySQL Performance Tips & Best Practices
MySQL Performance Tips & Best Practices
Isaac Mosquera
 
Performance Tuning And Optimization Microsoft SQL Database
Performance Tuning And Optimization Microsoft SQL Database
Tung Nguyen Thanh
 
3 g huawei-wcdma-rno-parameters-optimization
3 g huawei-wcdma-rno-parameters-optimization
shagahod
 
Practical SQL query monitoring and optimization
Practical SQL query monitoring and optimization
Ivo Andreev
 
Mongo db pefrormance optimization strategies
Mongo db pefrormance optimization strategies
ronwarshawsky
 
"MySQL Boosting - DB Best Practices & Optimization" by José Luis Martínez - C...
"MySQL Boosting - DB Best Practices & Optimization" by José Luis Martínez - C...
CAPSiDE
 
MySQL Performance Tips & Best Practices
MySQL Performance Tips & Best Practices
Isaac Mosquera
 
Performance Tuning And Optimization Microsoft SQL Database
Performance Tuning And Optimization Microsoft SQL Database
Tung Nguyen Thanh
 
3 g huawei-wcdma-rno-parameters-optimization
3 g huawei-wcdma-rno-parameters-optimization
shagahod
 
Ad

Similar to Spot db consistency checking and optimization in spatial database (20)

Spatial Databases
Spatial Databases
Pratibha Chaudhary
 
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
Vikas Jagtap
 
Building a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQL
Kudos S.A.S
 
Optimizing spatial database
Optimizing spatial database
Ishraq Al Fataftah
 
power point presentation on spatial database
power point presentation on spatial database
anushaashraf20
 
Spatial databases
Spatial databases
Dabbal Singh Mahara
 
Building a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQL
Sohail Akbar Goheer
 
SPATIAL DATABASES.pptx
SPATIAL DATABASES.pptx
AmanSingla57
 
SPATIAL DB IN DATABASE MANAGEMENT SYSTEM
SPATIAL DB IN DATABASE MANAGEMENT SYSTEM
ANITHAR21446
 
What is a spatial database system? How is it different from a RDBMS?
What is a spatial database system? How is it different from a RDBMS?
LonJames2
 
Introduction to spatialdatabases lecture slides
Introduction to spatialdatabases lecture slides
DeivamaniMallayya
 
Intro to spatial databases: GIS, Postgres.
Intro to spatial databases: GIS, Postgres.
LonJames2
 
Building A Spatial Database In Postgresql (Ppt).pdf
Building A Spatial Database In Postgresql (Ppt).pdf
ssuser0ab1a4
 
Spatial Database Systems
Spatial Database Systems
Asifuzzaman Hridoy
 
TYBSC IT PGIS Unit II Chapter I Data Management and Processing Systems
TYBSC IT PGIS Unit II Chapter I Data Management and Processing Systems
Arti Parab Academics
 
Spatial Data in SQL Server
Spatial Data in SQL Server
Eduardo Castro
 
Multidimensional access methods
Multidimensional access methods
unyil96
 
Ch1revised
Ch1revised
maheswari narne
 
Spatial
Spatial
sqlserver.co.il
 
FOSS4G 2017 Spatial Sql for Rookies
FOSS4G 2017 Spatial Sql for Rookies
Todd Barr
 
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
Vikas Jagtap
 
Building a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQL
Kudos S.A.S
 
power point presentation on spatial database
power point presentation on spatial database
anushaashraf20
 
Building a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQL
Sohail Akbar Goheer
 
SPATIAL DATABASES.pptx
SPATIAL DATABASES.pptx
AmanSingla57
 
SPATIAL DB IN DATABASE MANAGEMENT SYSTEM
SPATIAL DB IN DATABASE MANAGEMENT SYSTEM
ANITHAR21446
 
What is a spatial database system? How is it different from a RDBMS?
What is a spatial database system? How is it different from a RDBMS?
LonJames2
 
Introduction to spatialdatabases lecture slides
Introduction to spatialdatabases lecture slides
DeivamaniMallayya
 
Intro to spatial databases: GIS, Postgres.
Intro to spatial databases: GIS, Postgres.
LonJames2
 
Building A Spatial Database In Postgresql (Ppt).pdf
Building A Spatial Database In Postgresql (Ppt).pdf
ssuser0ab1a4
 
TYBSC IT PGIS Unit II Chapter I Data Management and Processing Systems
TYBSC IT PGIS Unit II Chapter I Data Management and Processing Systems
Arti Parab Academics
 
Spatial Data in SQL Server
Spatial Data in SQL Server
Eduardo Castro
 
Multidimensional access methods
Multidimensional access methods
unyil96
 
FOSS4G 2017 Spatial Sql for Rookies
FOSS4G 2017 Spatial Sql for Rookies
Todd Barr
 
Ad

Recently uploaded (20)

LDMMIA GRAD Student Check-in Orientation Sampler
LDMMIA GRAD Student Check-in Orientation Sampler
LDM & Mia eStudios
 
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
razelitouali
 
Ray Dalio How Countries go Broke the Big Cycle
Ray Dalio How Countries go Broke the Big Cycle
Dadang Solihin
 
MATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKAN
aditya23173
 
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
aditya23173
 
Nice Dream.pdf /
Nice Dream.pdf /
ErinUsher3
 
Rai dyansty Chach or Brahamn dynasty, History of Dahir History of Sindh NEP.pptx
Rai dyansty Chach or Brahamn dynasty, History of Dahir History of Sindh NEP.pptx
Dr. Ravi Shankar Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
Arshad Shaikh
 
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Rajdeep Bavaliya
 
The Man In The Back – Exceptional Delaware.pdf
The Man In The Back – Exceptional Delaware.pdf
dennisongomezk
 
What are the benefits that dance brings?
What are the benefits that dance brings?
memi27
 
Final Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptx
bobby205207
 
Publishing Your Memoir with Brooke Warner
Publishing Your Memoir with Brooke Warner
Brooke Warner
 
Revista digital preescolar en transformación
Revista digital preescolar en transformación
guerragallardo26
 
What is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptx
Ramakrishna Reddy Bijjam
 
Overview of Off Boarding in Odoo 18 Employees
Overview of Off Boarding in Odoo 18 Employees
Celine George
 
june 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptx
roger malina
 
How to Configure Vendor Management in Lunch App of Odoo 18
How to Configure Vendor Management in Lunch App of Odoo 18
Celine George
 
IDF 30min presentation - December 2, 2024.pptx
IDF 30min presentation - December 2, 2024.pptx
ArneeAgligar
 
Unit 3 Poster Sketches with annotations.pptx
Unit 3 Poster Sketches with annotations.pptx
bobby205207
 
LDMMIA GRAD Student Check-in Orientation Sampler
LDMMIA GRAD Student Check-in Orientation Sampler
LDM & Mia eStudios
 
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
razelitouali
 
Ray Dalio How Countries go Broke the Big Cycle
Ray Dalio How Countries go Broke the Big Cycle
Dadang Solihin
 
MATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKAN
aditya23173
 
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
aditya23173
 
Nice Dream.pdf /
Nice Dream.pdf /
ErinUsher3
 
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
Arshad Shaikh
 
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Paper 108 | Thoreau’s Influence on Gandhi: The Evolution of Civil Disobedience
Rajdeep Bavaliya
 
The Man In The Back – Exceptional Delaware.pdf
The Man In The Back – Exceptional Delaware.pdf
dennisongomezk
 
What are the benefits that dance brings?
What are the benefits that dance brings?
memi27
 
Final Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptx
bobby205207
 
Publishing Your Memoir with Brooke Warner
Publishing Your Memoir with Brooke Warner
Brooke Warner
 
Revista digital preescolar en transformación
Revista digital preescolar en transformación
guerragallardo26
 
What is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptx
Ramakrishna Reddy Bijjam
 
Overview of Off Boarding in Odoo 18 Employees
Overview of Off Boarding in Odoo 18 Employees
Celine George
 
june 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptx
roger malina
 
How to Configure Vendor Management in Lunch App of Odoo 18
How to Configure Vendor Management in Lunch App of Odoo 18
Celine George
 
IDF 30min presentation - December 2, 2024.pptx
IDF 30min presentation - December 2, 2024.pptx
ArneeAgligar
 
Unit 3 Poster Sketches with annotations.pptx
Unit 3 Poster Sketches with annotations.pptx
bobby205207
 

Spot db consistency checking and optimization in spatial database

  • 1. SPOT DATABASES: EFFICIENT CONSISTENCY CHECKING AND OPTIMISTIC SELECTION IN PROBABILISTIC SPATIAL DATABASES Presented By : Pratik S. Udapure
  • 2. Agenda  Introduction  Optimization  Spatial Indexes  Spatial Query  SQL examples  Features of Spatial Databases  Advantages of Spatial Databases  Disadvantages of Spatial Databases  Conclusion
  • 3. Introduction  Spatial database: is a database that is optimized to store and query data that represents objects defined in a geometric space  It offers additional functions that allow processing spatial data types.  Geometry.  Geography.
  • 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.)
  • 6. Optimization:  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  Octree  Quadtree  UB-tree  R-tree  kd-tree  M-tree
  • 8. Spatial Indexes: Grid Index In the context of a Spatial Index, a grid (a.k.a. "mesh", also "global grid" if it covers the entire surface of the globe) is a regular division of a 2-D surface that divides it into a series of contiguous cells, which can then be assigned unique identifiers and used for spatial indexing purposes.
  • 9. Spatial Indexes: Z-Order  In mathematical analysis and computer science, Z-order, Morton order, or Morton code is a function which maps multidimensional data to one dimension while preserving locality of the data points.
  • 10. Spatial Indexes: Octree An octree is a tree data structure in which each internal node has exactly eight childern. Octrees are most often used to partition a three dimensional space by recursively subdividing it into eight octants
  • 11. Spatial Indexes: Quad Tree  A quadtree is a tree data structure in which each internal node has exactly four children. Quadtrees are most often used to partition a two-dimensional space by recursively subdividing it into four quadrants or regions.
  • 12. Spatial Indexes: UB Tree  The UB-tree as proposed by Rudolf Bayer and Volker Markl is a balanced tree for storing and efficiently retrieving multidimensional data. It is basically a B+tree (information only in the leaves) with records stored according to z-order, also called Morton order. Z-order is simply calculated by bitwise interlacing the keys.
  • 13. Spatial Indexes: R Tree  R-trees are tree data structure used for spatial access methods,i.e., for indexing multi- dimensional information such as geographical coordinates, rectangles or polygons.
  • 14. Spatial Indexes: KD Tree  The k-d tree is a binary tree in which every node is a k-dimensional point. Every non-leaf node can be thought of as implicitly generating a splitting hyperlane that divides the space into two parts,
  • 15. Spatial Indexes: M Tree  M-trees are tree data structure that are similar to R-trees and B-trees. 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
  • 16. Spatial Query  A spatial query is a special type of database query supported by geo databases and spatial databases  Some of the most important are that they allow for the use of geometry data types such as points, lines and polygons and that these queries consider the spatial relationship between these geometries.
  • 17. SQL example  Create “pubs” table create table pubs (name varchar, beer-price float4); addgeometrycolumn(‘beer-db’,'pubs','location’ ,2167,'POINT',3);
  • 18. Insert data insert into pubs values ('Garricks Head',4.50, GeometryFromText('POINT (1196131 383324)’,2167));
  • 19. Perform Query  select name, beer-price, distance(location, GeometryFromText('POINT(1195722 383854)',2167)) from pubs order by beer-price;  name | beer-price | distance  ---------------+------------+------------------  Fireside | 4.25 | 1484.10275160491  The Forge | 4.33 | 1533.06561109862  Rumours | 4.46 | 2042.00094093097  Garricks Head | 4.5 | 669.389105609889  Slap Happy | 4.5 | 1882.31910168298  Old Bailys | 4.55 | 1147.20900404641  Black Sheep | 4.66 | 536.859935972633  Big Bad Daves | 4.75 | 907.446543878884
  • 20. Features of spatial databases  Spatial Measurements: Computes line length, polygon area, the distance between geometries, etc.  Spatial Functions: Modify existing features to create new ones, for example by providing a buffer around them, intersecting features, etc.  Spatial Predicates: Allows true/false queries about spatial relationships between geometries. Examples include "do two polygons overlap" or 'is there a residence located within a mile of the area we are planning to build the landfill?'  Geometry Constructors: Creates new geometries, usually by specifying the vertices (points or nodes) which define the shape.  Observer Functions: Queries which return specific information about a feature such as the location of the center of a circle
  • 21. Advantages of Spatial Databases Able to treat your spatial data like anything else in the DB  transactions  backups  integrity checks  less data redundancy  fundamental organization and operations handled by the DB  multi-user support  security/access control  locking
  • 22. Advantages cont. Spatial querying using SQL  use simple SQL expressions to determine spatial relationships  distance  adjacency  containment  use simple SQL expressions to perform spatial operations  area  length  intersection  union  buffer
  • 23. Disadvantages of Spatial Databases  Cost to implement can be high  Some inflexibility  Incompatibilities with some GIS software  Slower than local, specialized data structures  User/managerial inexperience and caution
  • 24. 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.  Big career opportunities in Spatial DB sector in developing GIS software