Top Banner
25

Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

Dec 27, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.
Page 2: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

Shapefiles, Topology, and the Geodatabase

Longley et al., ch. 9

Zeiler, chs. 4 and 5

Page 3: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

Shapefiles and Topology

• discrete view

– separate, countable

– exhaust the space?

– space between objects?

• editing a polygon boundary?

Page 4: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

ArcInfo Coverage

Page 5: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

ArcView Shapefile

Page 6: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

“Limited” Topology

• adjacency, connectivity (defined in coverages)– FNODE, TNODE

– LPOLY#, RPOLY#

• properties that are preserved under stretching of the space

• distinction between point, line, area is topological– can't make a line into an area

Page 7: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

Adding a New Polygon w/in a Coverage

Page 8: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

Shapefiles

• “Limited topology” - 6 kinds of shapefiles– Point

• Multipoint (several pts. represent one feature)

– polyline • multipart polyline (segments disconnected)

– Polygon• Multipart polygon

• Attributes in separate dBASE tables– no topological info.

Page 9: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.
Page 10: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.
Page 11: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

Object-Oriented Data Modeling

• Objects in the real world– Natural rules and relationships

• Rivers flow downstream• Roads handle levels of traffic• Land parcels respect landuse laws• How to build this intelligence into data

structures?

Page 12: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

OO Principles• things in the world are instances of

classes – John Smith - human being

– Harrison Blvd. - street

– Corvallis - city

– Mary’s Peak - mountain (Hugh Grant’s hill??)

• Identity, Inheritance, Encapsulation

Page 13: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

OO Principles ( cont. )Identity

• classes form hierarchies– John Smith is an instance of the class male

human beings

– male human beings are a subclass of human beings

– human beings are a subclass of mammals

– mammals are a subclass of fauna

• each subclass shares the properties of the class– and may add special properties

Page 14: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

OO Principles ( cont. )Identity

• geographic objects often group into complex objects – an airport is composed of runways, hangars,

terminals

– a state is composed of counties

– an area coverage is composed of polygons, arcs, nodes

Page 15: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

OO Principles ( cont. ):Inheritance

• Object can inherit properites– old hierarchical database concept

• objects can inherit properties that are true of all objects of that type– e.g., for all polygons

– new county in Oregon, still can’t pump gas there

• and can also add new properties – e.g., properties true only of a certain class

– rural county, always has diesel gas

Page 16: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

OO Principles ( cont. ):Encapsulation ( Behavior )

• Object can encapsulate behavior (functions)

• what kinds of behavior? • editing rules

– e.g, corners of a building must be square• might apply to all buildings but not all polygons• might apply only to some buildings

– two adjacent objects must have the same common boundary

Page 17: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

Behavior ( cont. )• attribute rules

– e.g., range of possible numbers • dates in numerical format (only 1 to 12)

• split and merge rules– 1 feature split or 2 features merged, what

happens to attributes?

– e.g., split a street, the lengths of two parts are shares of the total

– e.g., merge two polygons, their population counts are summed for the combined polygon

– e.g., merge two polygons, their population densities are averaged, weighted by area

Page 18: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

Example Merge Rule

Page 19: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

Behavior ( cont. )• editing, attribute, split and merge rules • special procedures

– e.g., procedure to measure areas of polygons• associated with polygon object type

– e.g., procedure to annotate contours

• specific interaction rules between objects– e.g., a liquor store cannot be within 500 m of a

school

– an offramp is required if a street and a freeway intersect

– at least one stream must flow out of every stream junction

Page 20: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

Encapsulation• things in the world are instances of

classes – John Smith - human being

– Harrison Blvd. - street

– Corvallis - city

– Mary’s Peak - mountain (Hugh Grant’s hill??)

• instances of a class must share ...– same topological dimensions

– same attributes

– same behaviors

Page 21: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

A “Smarter” Data Model

• ArcInfo 7 coverage– geometric information not stored in database

• ArcInfo 8 geodatabase– stores geometric information as "shape" attribute

• closer to how we actually think about geographic features – e.g., we don't naturally think about an area

coverage as a collection of arcs

• Identity, Inheritance, Encapsulation (Behavior)

Page 22: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

ArcInfo 8 and Microsoft COM

• 2,000 reusable software objects• Programmable in Visual Basic for

Applications (VBA) • Visual language for representing a data

model– Data modeling with Unified Modeling Language

(UML)

Page 23: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

Microsoft COM( Component Object

Model )• Microsoft standard for re-usable software

components – Build software from parts, not from scratch– Makes software easier to write and reuse– Provides widest choice in services, tools,

languages, and applications– Controls, tools, and server components– Geographic objects and software objects

• e.g., ArcInfo and Excel

Page 24: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.

Windows PlatformWindows Platform

GeneralGeneralpurposepurpose

WebWebprofessionalprofessional

ComponentComponentdeveloperdeveloper CommercialCommercial

professional professional developerdeveloper

BorlandBorland DelphiDelphi

AdobeAdobePageMakerPageMaker

MacromediaMacromediaDirectorDirector

PowerSoft PowerSoft PowerBuilderPowerBuilder

NetObjects NetObjects FusionFusion

SoftQuadSoftQuadHotMetal ProHotMetal Pro

BorlandBorland IntrabuilderIntrabuilder

PowerSoft PowerSoft NetImpactNetImpact

BorlandBorland LatteLatte

Multiple Languages/Tools

VISIOVISIO

Page 25: Shapefiles, Topology, and the Geodatabase Longley et al., ch. 9 Zeiler, chs. 4 and 5.