1 / 22

Spatial Information Systems (SIS) COMP 30110 Spatial data modelling GIS and SDBMS

Spatial Information Systems (SIS) COMP 30110 Spatial data modelling GIS and SDBMS. Spatial data modelling. Spatial data models must allow the representation of the spatial extent of data and support spatial queries Two types of models:

faolan
Download Presentation

Spatial Information Systems (SIS) COMP 30110 Spatial data modelling GIS and SDBMS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Spatial Information Systems (SIS) COMP 30110 Spatial data modelling GIS and SDBMS

  2. Spatial data modelling • Spatial data models must allow the representation of the spatial extent of data and support spatial queries • Two types of models: • Object-based model: also called entity-based or feature-based • Field-based model: also called space-based

  3. Object-based model • Individual objects are represented explicitly using their geometric counterpart • The representation of the spatial extent (e.g., lines representing the boundary of a lake) using directed line segments (vectors) has given rise to the term vector model • More suitable for applications requiring high quality cartographic operations, coordinate geometry, and networks

  4. 2D Vector-based representations Primitive spatial data objects are points, lines and polygons located by Cartesian coordinates in a spatial reference frame These geometric primitives indicate static locations and spatial extents of geographic phenomena in terms of XY coordinates

  5. paper mill lake river creek creek mouth major road minor road A minor road B 2D Vector-based representations Point object marks the location of a geographic entity (e.g., a paper mill) by a pair of XY coordinates Line object shows location and linear extent of a geographic entity (e.g., a river) by a series of XY coordinates Polygon object shows location and 2D extent of a geographic area (region), e.g. a lake, by a series of XY coordinates along the boundary of the region.

  6. Field-based model The underlying (geographic) space is partitioned (also tesselated) into cells that cover it entirely. Spatial objects are embedded in the space and are described and manipulated in terms of the cells they intersect. Example: lake described by the cells that cover its interior rather than by the lines that form its boundary

  7. Raster-based representations Usually the partition is composed of polygonal units of equal size (fixed or regular grid: raster) Each cell in the grid has two associated values: a positional value that marks its identity attribute values of the underlying area it represents (e.g. land elevation, land use, etc.)

  8. Spatial data formats Vector Raster

  9. Spatial data in vector format Sets of spatial entities (points, lines, regions) and spatial relations e.g. geographic maps, digital terrain models, etc.

  10. A A B B 1 Km A B Spatial Relations • Topological Relations: containment, overlapping, etc. [Egenhofer et al. 1991] • Metric Relations: distance between objects, etc. [Gold and Roos 1994] • Direction Relations: north of, south of, etc. [Hernandez et al. 1990; Frank et al. 1991] A B

  11. Spatial data in raster format Sets of pixels • e.g. satellite images, aerial photos, scanned maps

  12. DBMS: motivations Organizations depend on the ability to efficiently – acquire, – manage, and – analyse(spatial) data. Data Management Aspect: – Data needs to be accurate and timely, and also stay accurate even ifmany people access and use the same data – Amount of spatial data is exploding – how to find data ?! Data Analysis Aspect: – Quickly find the data that is relevant to a given question powerful data management systems are needed

  13. DBMS and Spatial Data • In a GIS/SIS we need to store and manipulate both spatial and non-spatial data • Storage can be controlled directly by applications programs or by a DBMS • Early GIS built directly on top of file systems: • No DB used • Spatial and non-spatial data both stored in files controlled by the application • Functions are defined on the data • Problem with this approach: no data independence, data security, concurrency • Solution: using a DBMS

  14. Use of Relational DBMS • Each relation/table represents a theme (e.g., country, landuse, etc.) • A geographic object is a tuple/row of such relation • Each column is an attribute • Attributes have alphanumeric types (non-spatial aspects) • SQL-based querying

  15. Example BOUNDARIES COUNTRIES CONTOURS POINTS

  16. Example (cont.d) • Relation COUNTRIES with schema (name, capital, population, id-boundary) • Id-boundaryis the spatial attribute corresponding to the boundary of the country • A boundary is made of several components (contours) when a country is made of several parts. A contour is characterised by an Id and a list of points, each of which is stored in relation Points. • Point-numis used to represent an ordering of the points along the boundary of a country. For example, contour C1 is represented by the sequence {P1,P2,P3} of points, although the points are not stored in that order

  17. Example (cont.d) • Querying via SQL: “Return the contours of Italy” • selectB.Id-contour, point-num, x, y • fromCOUNTRIES C, BOUNDARIES B, • CONTOURS CT, POINTS P • where name=‘Italy’ andC.Id-boundary=B.Id-boundary • andB.Id-contour=CT.Id-contour • andCT.Id-point=P.Id-point • order byB.Id-contour, point-num • The query involves retrieving the set of coordinates of the vertices on the boundary of the polygons (objects) that represent Italy

  18. Use of relational DBMS: pros & cons • PRO: use of standard DBMS and languages (SQL) • CONS: • Querying requires knowledge of the structure of the spatial objects (no data independence from this point of view) • Representing spatial information requires a large amount of tuples (inefficient) • Need to manipulate (possibly very large) tables of points (no user friendliness) • Difficult to perform spatial computations (e.g., “when are two objects adjacent?”) and to define new “data types” for spatial objects • Spatial queries (see example) are not directly supported and require join of several different tables (inefficient)

  19. Application programs Spatial data processing Relational DBMS (standard SQL) DB files Loosely coupled approach • Separation between spatial and non-spatial data • Approach used by the majority of traditional GIS vendors (ESRI, MapInfo, Intergraph, etc.) • Two systems coexist: • - A (usually relational) DBMS, or some component of it for descriptive alphanumeric data • A specific module for spatial data management

  20. Loosely coupled approach: pros & cons • Pros: • Proper geo-spatial data management • Spatial queries are directly supported • Cons: • difficulty in modeling, using and integrating heterogenous models within the same system • partial loss of basic DBMS functionality (e.g., for querying spatial data) • need to learn complex sw packages

  21. Integrated approach: SDMS • Based on DBMS extensibility • Main concept: ability to add new types and operations to existing relational DBMS • For geo-spatial applications, extensions to relational DBMS include: • extension of the query language SQL to allow for manipulation of spatial data as well as descriptive data. New spatial types (points, lines, and regions) should be handled as alphanumeric types • adaptation of usual DBMS functions (such as indexing, query optimisation) in order to handle also spatial data efficiently • Only few of the available DBMS offer a spatial extension: • Oracle 8i/9i (more later) • Postgres

  22. Summary: GIS vs SDBMS Classical GIS systems adopt a hybrid management for data Non-spatial (attribute) data is stored in “standard” DB Spatial data is stored in proprietary (vector) files and spatial objects in these files are linked to tables containing corresponding attribute information SDBMS adopt an integrated approach Better for data integration but still “behind” from the point of view of functionality (will see Oracle Spatial later)

More Related