Lecture 8 9
Lecture 8 9
Lecture 8 9
Outline
❖ Background
❖ Vector Data Model
Outline
Vector Data Model
POLYGON STORAGE
❖ Type 1 (Nontopological)
❖ Every polygon is stored as a sequence of coordinates
❖ Common boundaries between two nearby areas are coded
twice once for each polygon
Type 2 (Topologically structure)
▪ Every arc is stored as a sequence of coordinates
▪ Areas are built by linking arcs
▪ Shared boundary is stored only once
▪ Used in most vector based GIS packages
Vector Data Base Creation
▪ Vector data is created by digitizing points and lines or by
scanning and vectorising or directly from other digital
sources
▪ Once vector data base is created, cleaning, editing and
building topology have to be carried out
▪ Building topology calculates and encodes relationship
between points, lines and areas
23 Original Map
63 64
10
X
23 Map expressed in
63 Cartesian Coordinates
64
X
10 (Data Model)
Data Structure
Feature Number Location
Bernhardsen, Tor. (1999). 2nd Ed. Geographic Information Systems: An Introduction. p. 62. fig. 4.12.
Polygon Topology Model
Polygon Topology Contiguity
Variety of Vector Models
Source: Demers, Michael. N. (2000). 2nd Ed. Fundamentals of Geographic Information Systems. p. 117.
fig 4.19. tessellation: a mosaic, typically consisting of small square stones
Source: Demers, Michael. N. (2000). 2nd Ed. Fundamentals of Geographic Information Systems. p. 117.
Representation of points
❑ Point objects occupy very small area at
the scale at which the data are
represented. For example,
▪ Electric poles in a residential area
▪ Individual trees in a woodland
▪ Temples or schools in a town
▪ Capital cities in a map of the continent
▪ Junctions of roads
Point
Unique identifier
Simple
Type of point Text
Node
Serial number
X,Y,Z coordinates
Associated display and topology information
Representation of segments
Figure 3.8
The data structure of a line
coverage.
Figure 3.9
The data structure of a
Figure 3.9
The data structure of a
01 ATM x1 y1 z1 N ICICI
02 Br. x2 y2 z2 Y SBI
03 Br. x3 y3 z3 Y Srswt
04 Br. x4 y4 z4 Y Can
05 ATM x5 y5 z5 N SBI
06 Br. x6 y6 z6 Y S.Ind
ESRI Coverage
Coverage: native GIS data structure for a vector layer in
ArcInfo
❑ fully topologica
o better suited for large data sets
o better suited for fancy spatial analyses
❑ comprises multiple physical file
▪ (12 or so) per coverage
▪ each coverage saved in a separate folder named same as the
coverage
▪ physical file set differs depending on type of coverage (point,
line, polygon).
▪ coverage folders stored in a “workspace” directory with an info
folder for tracking
▪ attribute tables stored there also
l
Soil
POLYGON G T
ARC/INFO Spatial
Database Structure
(coverage)
INFO Soil
Donut
shapefile Donut.dbf table
Shape field
accesses separate
coordinate files
Shapefile Data Format
• Rapid display
• Non-topological
• Coincident Geometry
▪ Coincident geometry between features maintained using feature-
centric editing tools.
http://workshops.opengeo.org/postgis-intro/introduction.html
Problems with Shape Files
http://workshops.opengeo.org/postgis-intro/introduction.html
Computing Evolution
Internet Pervasive
Computing
Desktop
Chang, Kang-tsung. 2010. Introduction to Geographic Information Systems, 5th ed., McGraw-Hill Higher Education, Toronto.
Chang, Kang-tsung. 2010. Introduction to Geographic Information Systems, 5th ed., McGraw-Hill Higher Education, Toronto.
Example
❑ Class Pointer
//Propertie
Double length
Double Width
String Color
//Constructo
Public Pointer
// Initialize with some value
// Method
Void OnClickMiddleButton
// Method detail
Void OnClickLeftButton
// Method detail
}
}
}
}
CLASSES
❑ A class is a set of objects with similar
attributes.
❑ A class defines the properties and methods of
the objects that a members of that class.
❑ For example: a class called feature can cover
point, line and polygon feature objects.
❑ The feature class defines the same properties
and same methods for all three types of
objects.
Chang, Kang-tsung. 2010. Introduction to Geographic Information Systems, 5th ed., McGraw-Hill Higher Education, Toronto.
Relationships
Inheritance: defines relationship between a superclass and
a subclass.
▪ A subclass is a member of a superclass, inheriting
properties and methods of the superclass.
▪ Subclass can have additional properties and methods
separating it from other members of the superclass.
Example: a residential area is a member of ‘built-up’
superclass but is separated from other members of that
class by lot size
Instantiation – an object of a class can be created from an
object of another class.
Example – a high-density residential area object can be
created from a residential area object.
Chang, Kang-tsung. 2010. Introduction to Geographic Information Systems, 5th ed., McGraw-Hill Higher Education, Toronto.
Interface Poly
// Propertie
Int sides
String color
// Method
Double Area (coordinates
Return area
Double Perimeter()
Double Centroid ()
{
// Method
Double Area (coordinates
Double Perimeter()
Double Centroid ()
}
{
}
}
;
Interfaces
Chang, Kang-tsung. 2010. Introduction to Geographic Information Systems, 5th ed., McGraw-Hill Higher Education, Toronto.
http://www.esri.com/software/arcgis/geodatabase/index.html
Geodatabase
• Stores tables, feature classes, feature datasets, and
more
• Tables
o Non-spatial referred to as object class.
o A collection of attribute rows and columns
• Feature class
o A collection of features feature
o Conceptually like a shapefile dataset
http://webhelp.esri.com/arcgisserver/9.3/java/index.htm#geodatabases/
topology_basics.htm
Feature Classes
Feature Class Table
Chang, Kang-tsung. 2010. Introduction to Geographic Information Systems, 5th ed., McGraw-Hill Higher Education, Toronto.
Opensource :GeoTools
❑ GeoTools is an open source (LGPL) Java code library
which provides standards compliant methods for the
manipulation of geospatial data, for example to
implement Geographic Information Systems (GIS).
❑ The GeoTools library implements Open Geospatial
Consortium (OGC) specifications as they are
developed
http://geotools.org/
Feature-linked Disconnected
Annotation Editing*
GeoDatabase
Spatial Database
❑ Most users of PostGIS are setting up systems where
multiple applications will be expected to access the
data, so having a standard SQL access method
simplifies deployment and development
❑ Some users are working with large data sets; with
files, they might be segmented into multiple files,
but in a database they can be stored as a single
large table
❑ combination of support for multiple users, complex
ad hoc queries, and performance on large data sets
are what sets spatial databases apart from file-
based systems.
.
ISource: http://workshops.opengeo.org/postgis-spatialdbtips/introduction.html#introduction
Spatial Database: PostGIS
http://postgis.refractions.net/docs/ch04.html
A.WATER CONSERVATION
LANDUSE PLANNING
❑ Name the owner of a selected piece or land on a land ownership map
or cadastral map displayed on the monitor.
❑ Name all the villages each having at least an area of x% of the total
under wastelands and lying in a radius of y kms, from a selected point
on the display.
❑ List the name of the landowners of plots lying within a distance of x
kms, from a canal or a road or a stream.
❑ Who are landowners affected by the submergence of cultivable land
due increase in dam height or realignment of an old highway or laying
of a new one?
Topology
Science and mathematics of geometric relationships
Simple features + topological rules
Connectivity
Adjacency
Shared nodes / edges
Topology uses
Data validation
Spatial analysis (e.g. network tracing, polygon adjacency)
Topology
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
Arc-Node Topology
http://webhelp.esri.com/arcgisdesktop/9.2/published_images/
Topology%20concept%201.GIF
Arc-Node Topology
RELATIONSHIPS IN NETWORKS
B
1 3
D
2
A
4
5
C
Queries
What is nearby?
http://webhelp.esri.com/arcgisdesktop/9.2/published_images/
Topology%20concept%203.GIF
Polygon Topology
RELATIONSHIPS BETWEEN AREAS
c
1 · C
6
A
2
3 ·b
5
· d
·a
B
4
Polygon Topology
ARC ATTRIBUTE TABLE
ARCS R L FROM TO
------------------------------------------------------------------
1 0 A c a
2 A C c b
3 A B b a
4 0 B a d
5 B C b d
6 0 C d c
------------------------------------------------------------------
0 IS THE OUTER AREA
ARC GEOMETRY
1 (x1,y1), (x2,y2), ... , (xn,yn)
2 (p1,q1), (p2,q2), ... , (pm,qm)
3 (r1,s1), (r2,s2), ... , (rk,sk)
...
Geodatabase Topology
http://www.esri.com/news/arcnews/summer02articles/
summer02gifs/p1p2-lg.gif
Geodatabase Topology
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
Geodatabase Topology
❑ Features can share geometry within topology in the
following ways:
❑ Line features can share end points (arc-node topology)
❑ Area features can share boundaries (polygon topology)
❑ Line features can share segments with other line features ( route
topology)
❑ Area features can be coincident with other area features (region
topology)
❑ Line features can share endpoint vertices with point features (node
topology)
❑ Point features can share geometry with line features.
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
Geodatabase Topology
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
Geodatabase Topology
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
Geodatabase Topology
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
Geodatabase Topology
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
Geodatabase Topology
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
Geodatabase Topology
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
Geodatabase Topology
www.esri.com/library/whitepapers/pdfs/geodatabase-topology.pdf
Opensource :GeoTools
❑ GeoTools is an open source (LGPL) Java code library
which provides standards compliant methods for the
manipulation of geospatial data, for example to
implement Geographic Information Systems (GIS).
❑ The GeoTools library implements Open Geospatial
Consortium (OGC) specifications as they are
developed
http://geotools.org/
Advantages Advantages
APPLICATIONS