Professional Documents
Culture Documents
Spatial Databases
GIS Case Studies
Elizabeth Sayed Elizabeth Stoltzfus December 4, 2002
Agenda
Spatial Database Basics Geographic Information Systems (GIS) Basics Case Studies
SDBMS works with a spatial application at the front end and a DBMS at the back end
Spatial application
SDBMS has three layers: Interface to spatial application Core spatial functionality Interface to DBMS
DBMS
Data types
Interface to DBMS
Taxonomy
Form an entity to hold river names, sources, lengths, and geographies CREATE TABLE River( Name Source Distance Shape varchar(30), varchar(30), Integer, LineString);
Find all the counties through which the Merced river runs SELECT FROM WHERE
Name State Pop Shape
GIS Applications
1. Cartographic
Irrigation Land evaluation Crop Analysis Air Quality Traffic patterns Planning and facilities management
3. Geographic objects
Car navigation systems Utility distribution and consumption Consumer product and services
Pine
(0,2)
Fir
(0,0)
Oak
(2,0) (4,0)
Object Viewpoint
Name Pine Fir Oak Shape [(0,2), (4,2), (4,4), (0,4)] [(0,0), (2,0), (2,2), (0,2)] [(2,0), (4,0), (4,2), (2,2)
Field Viewpoint
Pine: 0<x<4; 2<y<4 Fir:
0<x<2; 0<y<2
Pictograms - Shapes
Types: Basic Shapes, Multi-Shapes, Derived Shapes, Alternate Shapes, Any possible Shape, User-Defined Shapes
Basic Shapes
Alternate Shapes
Multi-Shapes
0, N
*
User Defined Shape
Derived Shapes
!
UC Berkeley: IEOR 215
19
Spatial ER Diagram
RName PolygonID FoName River FoName
Supplies_to
River
FacName Facility
Touches Forest
Belongs_to
Belongs_to
Forest
FiName PointID
FiName
Case Studies
Specific applications of spatial databases
Location of Nests
Source: Spatial Database Development for green house gas emission Estimation using remote sensing and GIS
Conclusion
Many varied applications of spatial databases Stores spatial data in various formats specific to use Captures spatial data more concisely Enables more thorough understanding of data Retrieves and manipulates spatial data more efficiently and effectively
Problem 1 Solution
a) Find all cities that are located within Marin County. SELECT FROM WHERE SELECT FROM WHERE SELECT FROM WHERE C2.Name County C1, City C2 Within(C1.Shape, C2.Shape) = 1 AND C1.Name = Marin; R.Name County C, River R Touch(C.Shape, R.Shape) = 1 AND C.Name = Mendocino; C1.Name County C1, County C2 Disjoint(C1.Shape, C2.Shape) = 1 AND C2.Name = Orange;
Problem 2 Solution
ClosetID Length
Type
Hallway
RoomID
Closet
HallI D
Accesses Belongs_T o
Room
Belongs_T
FurnID
o
Belongs_To
Furniture
Name