Spatial Information Systems (SIS) COMP 30110 Spatial queries and operations.

Slides:



Advertisements
Similar presentations
Spatial Information Systems (SIS) COMP Terrain modeling and geometric problems (part 2)
Advertisements

Spatial Database Systems. Spatial Database Applications GIS applications (maps): Urban planning, route optimization, fire or pollution monitoring, utility.
COMP 5138 Relational Database Management Systems Semester 2, 2007 Lecture 5A Relational Algebra.
NSF DUE ; Module 4.3. NSF DUE ; GeoTEd Partners Module name and number.
From portions of Chapter 8, 9, 10, &11. Real world is complex. GIS is used model reality. The GIS models then enable us to ask questions of the data by.
Spatial Information Systems (SIS) COMP Formats and Standards.
Introduction to Spatial Database System Presented by Xiaozhi Yu.
Spatial Information Systems (SIS)
1 CSIS 7101: CSIS 7101: Spatial Data (Part 2) Efficient Processing of Spatial Joins Using R-trees Rollo Chan Chu Chung Man Mak Wai Yip Vivian Lee Eric.
Map Analysis with Feature Datasets Francisco Olivera, Ph.D., P.E. Department of Civil Engineering Texas A&M University.
CPSC 335 Geometric Data Structures in Computer Modeling and GIS Dr. Marina L. Gavrilova Assistant Professor Dept of Comp. Science, University of Calgary,
Return to Outline Copyright © 2009 by Maribeth H. Price 6-1 Chapter 6 Spatial Joins.
Geographic Information Systems GIS Analysis and Modeling.
Spatial Information Systems (SIS) COMP 4025 Dr. Michela Bertolotto Dept. of Computer Science, UCD Room B2.21,
What is Where? Lecture 5 Introduction to GISs Geography 176A Department of Geography, UCSB Summer 06, Session B.
Spatio-Temporal Databases. Outline Spatial Databases Temporal Databases Spatio-temporal Databases Multimedia Databases …..
NR 322: Single Layer Analysis Jim Graham Fall 2008 Chapter 8 & 9.
Introduction to Spatial Analysis
Spatial Information Systems (SIS) Spatial data modelling
Spatial Information Systems (SIS) COMP Spatial access methods: Indexing.
Spatial Analysis using Vector Data # 1 Francisco Olivera, Ph.D., P.E. Srikanth Koka Department of Civil Engineering Texas A&M University.
WFM 6202: Remote Sensing and GIS in Water Management
Spatial Queries & Analysis in GIS
What is Where? u Getting Started With Geographic Information Systems u Chapter 5.
©2005 Austin Troy Lecture 9: Introduction to GIS 1.Vector Geoprocessing Lecture by Austin Troy, University of Vermont.
Dr. David Liu Objectives  Understand what a GIS is  Understand how a GIS functions  Spatial data representation  GIS application.
@ 2007 Austin Troy. Geoprocessing Introduction to GIS Geoprocessing is the processing of geographic information. – Creating new polygon features through.
Intro. To GIS Lecture 6 Spatial Analysis April 8th, 2013
Geographic Information Systems
Basic Spatial Analysis
Preparing Data for Analysis and Analyzing Spatial Data/ Geoprocessing Class 11 GISG 110.
GIS2: Geo-processing and Metadata Treg Christopher.
Applied Cartography and Introduction to GIS GEOG 2017 EL
Dr. Marina Gavrilova 1.  Autocorrelation  Line Pattern Analyzers  Polygon Pattern Analyzers  Network Pattern Analyzes 2.
 Trace the incremental algorithm for constructing convex data on the sample point data given below. Intermediate steps should be shown First, two steps.
Union and Intersection of Polygons Union = Intersection =
Spatial & Terrain Analysis Nigel Trodd Coventry University in 3D.
University of Palestine Faculty of Applied Engineering and Urban Planning GIS Course Spatial Analysis Eng. Osama Dawoud 1 st Semester 2009/2010.
Map overlays & Geoprocessing Learn about spatial analysis functions overlays, clipping & buffering Use overlays to analyze multiple spatial criteria Understand.
Spatial Query Processing Spatial DBs do not have a set of operators that are considered to be basic elements in a query evaluation. Spatial DBs handle.
Spatial DBMS Spatial Database Management Systems.
NR 143 Study Overview: part 1 By Austin Troy University of Vermont Using GIS-- Introduction to GIS.
Lecture 7 Basic GIS Analysis Operations
Introduction to Geographic Information Systems Fall 2013 (INF 385T-28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin.
1 Where have we come so far? By now, you should be familiar with: –What GIS is –How GIS works –Some of what GIS can do –GIS data formats Spatial data Tabular.
GEOG 2007A An Introduction to Geographic Information SystemsFall, 2004 C. Earl Queries can be used: to check data correctness to obtain info as steps in.
WFM 6202: Remote Sensing and GIS in Water Management © Dr. Akm Saiful IslamDr. Akm Saiful Islam WFM 6202: Remote Sensing and GIS in Water Management Dr.
Environmental GIS Nicholas A. Procopio, Ph.D, GISP
Introduction to GIS All materials by Austin Troy © 2003, except where noted Lecture 8: Site Selection and Suitability Analysis and Criterion- based mapping.
CENTENNIAL COLLEGE SCHOOL OF ENGINEERING & APPLIED SCIENCE VS 361 Introduction to GIS SPATIAL OPERATIONS COURSE NOTES 1.
Spatial Analysis – vector data analysis Lecture 8 10/12/2006.
Lecture 3: Spatial Data Management Dr. Taysir Hassan Abdel Hamid Associate Professor, Information Systems Dept., Faculty of Computers and Information.
UNIT 3 – MODULE 6: Data Analysis. TERMINOLOGY There are several terms that are important to know when discussing data analysis: – Entity – an individual.
Lesson 3 GIS Fundamentals MEASURE Evaluation PHFI Training of Trainers May 2011.
Spatial Analysis using Vector Data # 1 Francisco Olivera, Ph.D., P.E. Srikanth Koka Department of Civil Engineering Texas A&M University.
Chapter 6 Spatial Joins.
Strategies for Spatial Joins
GIS Analysis Queries Operations Non-spatial Spatial Vector Raster
GIS Institute Center for Geographic Analysis
Vector Analysis Ming-Chun Lee.
Spatial Queries & Analysis in GIS
Basic Spatial Analysis
Spatial Data Processing
LECTURE 3: Relational Algebra
Spatial and temporal data management
URBDP 422 Urban and Regional Geo-Spatial Analysis
Basic Spatial Analysis Tools
GIS Lecture: Geoprocessing
GIS Institute Center for Geographic Analysis
GIS Institute Center for Geographic Analysis
Presentation transcript:

Spatial Information Systems (SIS) COMP Spatial queries and operations

Spatial queries Examples:Examples: - “What are the two post offices nearest to Dun Laoghaire dart station?” (proximity query) - “In what county is Bray?” (containment query) - “What are Italy’s neighbouring countries” (adjacency query) - “What Italian regions are crossed by the river Po?” (intersection/overlap query) Etc…

Non-spatial queries Examples:Examples: - “What is the population of Dublin City?” - “How long is the river Shannon” (assuming that population and length are attributes stored for city and river, respectively) These are standard DB queries that request to retrieve the value of some attribute. Spatial queries, on the other hand, require different type of computations.

Examples of theme queries Let us consider thematic mapsLet us consider thematic maps What are the typical “non-spatial” queries that users might want to perform on these type of maps?What are the typical “non-spatial” queries that users might want to perform on these type of maps? Theme projectionTheme projection Theme selectionTheme selection Theme unionTheme union Etc.Etc. Same as relational algebra operatorsSame as relational algebra operators

Theme queries Theme projection: it is a non-spatial operation that works as the projection operation from relational algebra Example: in a political map of European countries with attributes name and population, we want to project on the attribute population (i.e., we eliminate the country names)

Theme projection Thematic map of countries of western Europe (and their population); projection on the attribute population

Theme queries (cont.d) Theme selection: it is a non-spatial operation (based on a non-spatial predicate) that works as the selection operation from relational algebra Example: in a political map of European countries, select all names and population of countries with more than 50M inhabitants

Theme selection Thematic map of countries of western Europe (and their population); selection of countries with more than 50M people

Theme queries (cont.d) Theme union: it is a non-spatial operation that works as the union operation from relational algebra. It can only be applied to thematic maps with same attribute schema Example: union of the map containing European countries with more than 10M inhabitants and the map containing European countries with less than 10M inhabitants. The two maps both have schema (name, population)

Theme union Thematic map of countries (and population) of western Europe with less than 10M inhabitants Thematic map of countries (and population) of western Europe with more than 10M inhabitants

Types of spatial queries/operations Containment Query Containment Query Region Query Region Query Enclosure Query Enclosure Query Clipping Clipping Line intersection query Line intersection query Adjacency query Adjacency query Metric (Proximity) Queries Metric (Proximity) Queries Spatial Join Spatial Join Map Overlay Map Overlay Merge/Aggregation Merge/Aggregation

Basic spatial queries Containment Query: Given a spatial object O, find all objects in the map that completely contain O. When O is a point, the query is called Point Query O P Containment Query Point Query (also Point-in-polygon, or Point Location)

Basic spatial queries (cont.d) Region Query: Given a region R, find all objects in the map that intersect R. When R is a rectangle, the query is called Window Query R R Region Query Window Query

Window query A thematic map M and windowing of M with area A

Basic spatial queries (cont.d) Enclosure Query: Given a region R, find all objects in the map that are completely contained in R R Enclosure Query

Basic spatial queries (cont.d) Clipping: Given a region R, extract all portions of objects in the map that are contained in R. Note that the geometry of an object in the result corresponds to the intersection of the object with the window R Clipping

Clipping A thematic map M and clipping of M with area A

Basic spatial queries (cont.d) Line intersection query: Given a line l, extract all objects in the map that intersect l. Example: “What counties are crossed by the river Shannon?” l Line intersection

Basic spatial queries (cont.d) Adjacency query: Given an object O, extract all objects in the map that are adjacent to O (i.e., share a bounding entity with O). Example: “What are Italy’s neighbouring countries?” O Adjacency query

Basic spatial queries (cont.d) Metric Queries: they involve distances. Example: Given two objects O and O’ how far are they from each other? Obvious for points. For regions, usually distance between their centroids Metric queries are also called proximity queries O Distance query O’

Basic spatial queries (cont.d) Nearest Neighbour Query: Given an object O, find the object in the map that is closest to O (typically for points) Also: K-nearest neighbour query: find the k nearest objects Nearest Neighbour Query O

Basic spatial queries (cont.d) Range Query: Given an object O, find all objects in the map that are within a given distance d from O (typically for points) Range Query O d

Basic spatial queries (cont.d) Spatial Join: Given two sets of spatial object S and S’, find all pairs (O,O’) of objects such that: – O  S, O’  S’ – O  O’   {O 1,…,O 6 } {O’ 1,…,O’ 5 } = (O 1, O’ 1 ), (O 2, O’ 1 ), (O 6, O’ 1 ), (O 4, O’ 3 ), (O 5, O’ 3 ), (O 5, O’ 5 ), (O 3, O’ 2 ) Spatial predicates other than intersection are also possible. Example: all pairs of objects that are within a given distance from each other, etc. Spatial predicates other than intersection are also possible. Example: all pairs of objects that are within a given distance from each other, etc. Spatial Join O2O2 O4O4 O1O1 O6O6 O5O5 O3O3 O’ 4 O’ 1 O’ 3 O’ 2 O’ 5

Basic spatial queries (cont.d) Map Overlay: given two maps M and M’, return a third map that contains objects from M and M’ and new objects whose geometry corresponds to the intersection of objects belonging to M and M’. Process: perform the spatial join of M and M’. Consider all pairs of intersecting objects. For each such intersection generate a new object and modify the geometry of the two original objects accordingly Example: political map of wester European countries and map of languages spoken all over western Europe

Map Overlay Overlay of the map of western European countries and the map of families of languages spoken in western Europe

Basic spatial queries (cont.d) Merge Query/Operation: Given two (or more) objects O and O’, return their geometric union This operation is used in map generalisation to perform object aggregation (more later on this) Merging two objects O O’

Merging

Remarks Spatial queries involve the geometry of objects and their spatial relations (in particular, topological queries are based on topological properties) Spatial queries involve the geometry of objects and their spatial relations (in particular, topological queries are based on topological properties) Therefore, it is important to have data structures that “support” efficient computation of geometric properties and spatial relations Therefore, it is important to have data structures that “support” efficient computation of geometric properties and spatial relations

Spatial queries and their geometric counterpart Some spatial queries involve geometric calculations such as intersection of segments, etc. Use of computational geometry algorithms in GIS

Point Location A GIS query: “What state contains city A?” Geometric query: “What polygon in the plane subdivision contains point A?” [Kirkpatrick 1983] point A?” [Kirkpatrick 1983]

Spatial Queries: Line Intersection B GIS query: “What states are crossed by river B?” Geometric query: “What polygons in the plane subdivision are intersected by polyline B?” intersected by polyline B?”

Map Overlay Example: Land cover change map and county map In GIS: overlay of multiple thematic maps of a given geographic region

Geometric Operations in Map Overlay Overlay of plane subdivisions: intersection of line segments [Nievergelt and Preparata 1982] + =

Geometric Operations in Spatial Queries Other spatial queries such as clipping make extensive use of line intersection algorithms that have been proposed in the field of computational geometry