PUBLISHED BY Environmental Systems Research Institute, Inc. 380 New York Street Redlands, California 92373-8100
Copyright © 1999 Environmental Systems Research Institute, Inc. ESRI, MapObjects, ARC/INFO, and ArcView are trademarks of All rights reserved. Printed in the United States of America. Environmental Systems Research Institute, Inc., registered in the United States and certain other countries; registration is pending in The information contained in this document is the exclusive the European Community. ArcInfo, ArcMap, ArcCatalog, ArcObjects, proper ty of Environmental Systems Research Institute, Inc. This AML, ArcSDE, ArcIMS, ARC GRID, Arc Explorer, and the ESRI Press work is protected under United States copyright law and the logo are trademarks and www.esri.com is a service mark of copyright laws of the given countries of origin and applicable Environmental Systems Research Institute, Inc. international laws, treaties, and/or conventions. No par t of this work may be reproduced or transmitted in any form or by any The names of other companies and products mentioned herein are means, electronic or mechanical, including photocopying or trademarks or registered trademarks of their respective trademark recording, or by any information storage or retrieval system, owners. except as expressly permitted in writing by Environmental Systems Research Institute, Inc. All requests should be sent to Environmental Systems Research Institute, Inc. the attention of Contracts Manager, Environmental Systems Modeling Our World Research Institute, Inc., 380 New York Street, Redlands, The ESRI Guide to Geodatabase Design California 92373-8100 USA. ISBN 1-879102-62-5
The information contained in this document is subject to change without notice.
U.S. Government Restricted/Limited Rights Any software, documentation, and/or data delivered hereunder is subject to the terms of the License Agreement. In no event shall the U.S. Government acquire greater than RESTRICTED/LIMITED RIGHTS. At a minimum, use, duplication, or disclosure by the U.S. Government is subject to restrictions as set for th in FAR §52.227-14 Alternates I, II, and III (JUN 1987); FAR §52.227- 19 (JUN 1987) and/or FAR §12.211/12.212 (Commercial Technical Data/Computer Software); and DFARS §252.227- 7015 (NOV 1995) (Technical Data) and/or DFARS §227.7202 (Computer Software), as applicable. Contractor/ Manufacturer is Environmental Systems Research Institute, Inc., 380 New York Street, Redlands, California 92373-8100 USA. Preface
All geographic information systems (GIS) are built model (objects, features, surfaces, networks, images, using formal models that describe how things are and so forth) in detail, Michael also provides good located in space. A formal model is an abstract and insight into how to use this framework to design well-defined system of concepts. It defines the useful information models that fit your particular vocabulary that we can use to describe and reason needs. about things. A geographic data model defines the vocabulary for describing and reasoning about the This book serves a variety of different purposes. For things that are located on the earth. Geographic data the geographer or scientist, it defines a conceptual models serve as the foundation on which all context for representing geographic information. For geographic information systems are built. the GIS specialist, it serves as a guidebook in designing and using geographic databases. Finally, it We are all familiar with one model for geographic introduces database concepts to a geographic information—the map. A map is a scale model of audience, and geographic concepts to the database reality that we build, using a set of conventions and specialist. rules (for example, map projections, line symbols, text). Once we construct a map, we can use it to ArcInfo 8 defines a unified framework for answer questions about the reality it represents. For representing geographic information in a database. example, how far is it from Los Angeles to San Several different generic data models are supported Diego? Or, what cities lie along the Mississippi River? within this framework: The map model also serves as a tool for • cell-based or raster representation communicating facts about geography visually: Is the terrain rough? Which way is north? In fact, when we • object-based or feature-based representation see a map, we often understand things that might not even occur to us as specific questions. • network or graph-element representation
Maps work because we know the “rules” of • finite-element or TIN representation conventional map reading: blue lines are rivers, Each of these generic models has its own vocabulary North is toward the top of the page, and so on. In a used to define and reason about geographic similar way, geographic data models define their information. When we decide to represent roads, own set of concepts and relationships, which must rivers, terrain, or any sort of phenomena in a GIS, be understood before you can expect to create or we need to decide exactly how we define interpret your own data model. These concepts information in terms of these generic models. As relate to how you can represent geographic chapter 1 points out, there are many ways that information in a computer system, rather than, as in information can be modeled in a GIS. The the map example, on paper. representation you choose for the data model will In Modeling Our World, Michael Zeiler has written affect how you sample and measure geographic an excellent primer for understanding the various information, how you display it visually, and which models used to represent geographic information in relationships between elements can be represented, ArcInfo™ 8 software. He presents, using as well as query and analysis operations that can be straightforward text and excellent illustrations, the applied to the information. concepts and vocabulary employed in the design, Some have asserted that we should hide implementation, and use of the ArcInfo 8 geographic representational models for geographic information database. In addition to explaining the ArcInfo data (features, geometry, rasters, surfaces, and so on) from the users of geographic information systems. model, rather than custom application logic written Somehow, these representational concepts are for each application. For other aspects of the data considered “implementation details.” In this view, a model, which may already be familiar to the reader, single real-world thing, such as the Mississippi River, the specific jargon and concepts used in ArcInfo 8 should be modeled as a single thing within the GIS. (for topics like image data, as an example) are Perhaps, behind the scenes, the system could clearly introduced and defined. automatically use multiple representations for these real-world things. If you ask “What is upstream?” it This book also connects the specialized world of could use a network representation of the river. If geographic information systems and the broader you ask “What is the surface area of the water?” it world of object-relational databases. ArcInfo now could use a polygon feature representation. If you supports the direct use of standard relational ask “What area does it drain?” it could use a surface database technology as an integral part of the GIS. or terrain representation, and so on. While it may be This introduces some new concepts to the GIS desirable to hide these concepts from some community. Topics such as transaction models for consumers of geographic information, I believe that simultaneous editing of a shared, seamless database a strong understanding of geographic data models are described in detail. For the GIS specialist, this and representations is crucial to the correct design provides a good introduction to standard database and use of geographic information systems. concepts. For the database specialist, this book Geographic data models act as the lens or filter serves as a good answer to the question “what is so through which we perceive and interpret the infinite special about spatial?” complexity of the real world. It is only in the context Working with geographic information systems is fun of representations of the Mississippi River, for for me because it serves to integrate concepts and example, that we can define specific properties, ideas from a variety of different disciplines— behavior, or even its identity as a “thing of interest.” geometry and networks from applied mathematics, Understanding geographic data model concepts is sampling and measurement theory from remote central to knowing how to define and collect sensing and physics, information modeling and geographic information. It is also crucial for correctly multiuser database issues from information interpreting the results derived from the analysis of technology. In working with GIS, we get to integrate geographic information. This is similar to the role all of this in a single, useful framework for building that statistics and sampling theory play in the natural real systems. This book presents that synthesis, sciences. based on our work with ArcInfo 8. I hope you find For the GIS specialist, this book serves as an this book useful and stimulating as a basis for your introduction to a new object-relational model for own work in geographic information systems. representing features, spatial relationships between features, and other thematic relationships. This new model is significantly richer in its ability to represent Scott Morehouse features with associated behavior, relationships, and Director of Software Development properties than the current coverage or shapefile Environmental Systems Research Institute, Inc. model. If you are already familiar with coverages, Redlands, California shapefiles, and database tables, the new model is a dramatic extension of concepts and capabilities with which you are already familiar. Our goal in building the new feature data model has been to move as much specialized application logic (for example, maintaining connectivity or relational integrity between objects) as possible into the scope of the data model itself. This allows more of the GIS application to be defined using rules in the data Acknowledgments
This book, Modeling Our World, is the distillation of The attractive city maps throughout this book were many people’s inspirations, ideas, and labors. kindly provided by Gar Clarke, GIS manager at the City of Santa Fe, New Mexico. The image of Mars at Many deserve recognition—the ArcInfo user the front of chapter 9 is courtesy of Malin Space community, which always amazes us with creative Science Systems and JPL/NASA. applications of GIS; the ArcInfo 8 development team, which has produced a true masterpiece of software; The maps on the chapter title pages are drawn from and the teams throughout ESRI, which collaborated the work of many cartographers from history. Their to take GIS technology to new levels. maps remind us that, although we have reached a level of sophistication in drawing maps with Because of the constraints of space, only a few can computers, we have yet to equal their artistry. be directly acknowledged. These are some of the contributors to this software release and book. Several people were actively engaged in the production of this book. Jennifer Wrightsell The structural design of ArcInfo 8 was led by some rigorously edited the chapters and designed the of the brightest thinkers in the industry. Sud Menon layout, along with Andy Mitchell and Youngiee Auh. directed the architectural design of the geodatabase Amaree Israngkura designed the cover. Michael and he is responsible for many of the insights Hyatt did the copyedit. Robin Floyd and Christian expressed in this book. Jeff Jackson led the Harder managed and guided the publication of this implementation of software component technology book. that has revolutionized ArcInfo. Erik Hoel applied his expertise to the development of the network features Scott Morehouse wrote the preface and is ESRI’s and the framework for vertical applications. The visionary on advancing the theory and practice of development of the ArcMap™ and ArcCatalog™ GIS. Clint Brown prodded and inspired us to create applications was led by Barry Michaels, Scott Simon, the best product we had within ourselves. Curt and Keith Ludwig. The accessibility and consistency Wilkinson and David Maguire worked hard to ensure of the software user interface was guided by Rupert that ArcInfo 8 meets the goals and requirements of Essinger. This complex endeavor was orchestrated users. Jack Dangermond created this very special by Matt McGrath. and unique institute where we can believe that we make a difference in this world and act on that idea. Many product specialists and programmers at ESRI provided material for this book and reviewed Finally, my wife Elizabeth deserves special thanks for chapters. These include Andy MacDonald, Charlie her countless hours of support. Her commitment and Frye, Mike Minami, Aleta Vienneau, Jim TenBrink, encouragement made the effort to produce this book Wolfgang Bitterlich, Tom Brown, Dale Honeycutt, possible. Steve Kopp, Brett Borup, Peter Petri, Clayton Crawford, and Andrew Perencsik. The contributions of Andy, Dale, and Steve to chapters 5, 8, and 9 respectively are particularly noteworthy. Contents
PREFACE ...... vii
ACKNOWLEDGMENTS ...... ix
CHAPTER 1: OBJECT MODELING AND GEODATABASES ...... 1 Modeling objects with GIS ...... 2 The progress of geographic data models ...... 4 The geodatabase, store of geographic data ...... 8 Features in an object-oriented data model ...... 10 Serving geographic data ...... 12 Accessing geographic data...... 14 Building data models...... 16 Guide to reading UML object diagrams ...... 19 Technology trends ...... 21
CHAPTER 2: HOW MAPS INFORM...... 23 The utility of maps ...... 24 How maps present information ...... 25 The parts of a map ...... 27 Presenting geography with layers ...... 28 Drawing features with symbols...... 30 Drawing feature layers ...... 32 Classifying attribute values ...... 36 Displaying thematic, spectral, and picture data...... 38 Visualizing surfaces with TIN layers ...... 41 CHAPTER 3: GIS DATA REPRESENTATIONS ...... 45 The fundamentals of a GIS ...... 46 The diverse applications of GIS ...... 48 Three representations of the world ...... 51 Modeling surfaces ...... 52 Modeling imaged or sampled data ...... 54 Modeling discrete features ...... 56 Comparing spatial data representations ...... 58
CHAPTER 4: THE STRUCTURE OF GEOGRAPHIC DATA...... 61 The catalog and connections to data...... 62 The geodatabase, datasets, and feature classes ...... 64 ArcInfo workspaces and coverages ...... 66 Shapefiles and CAD files ...... 68 Maps and layers ...... 70 Comparing the structure of vector datasets ...... 72 Comparing feature geometry in vector datasets ...... 73
CHAPTER 5: SMART FEATURES ...... 75 The qualities of features ...... 76 Steps to making features smart ...... 78 Designing the geodatabase ...... 80 Storing data in tables ...... 82 The shape and extent of features ...... 84 Attributes: qualities of an object ...... 86 Adding simple behavior with subtypes ...... 88 Validating attributes ...... 90 Relationships among objects ...... 92 Extending object classes ...... 96 The geodatabase object model...... 98
CHAPTER 6: THE SHAPE OF FEATURES ...... 101 Geometry and features ...... 102 Constructing geometry ...... 105 Testing spatial relationships ...... 110 Applying topological operators...... 112 Geometry object model ...... 114 iv • Modeling Our World CHAPTER 7: MANAGING WORK FLOW WITH VERSIONS ...... 115 Using versions ...... 116 Long transactions and the geodatabase ...... 118 The fundamentals of versions ...... 120 Editing versioned geodatabases...... 122 Types of work flows ...... 124
CHAPTER 8: LINEAR MODELING WITH NETWORKS ...... 127 Modeling infrastructure ...... 128 The network model ...... 130 How features connect ...... 132 Network features ...... 134 Network flow ...... 139 Analysis on a network ...... 142 Network object model ...... 145
CHAPTER 9: CELL-BASED MODELING WITH RASTERS ...... 147 Representing geography with rasters ...... 148 Using raster data...... 150 Raster data model ...... 152 Raster display and analysis ...... 154 The spatial context of rasters ...... 156 Raster formats ...... 158 Raster object model ...... 160
CHAPTER 10: SURFACE MODELING WITH TINS ...... 161 Representing surfaces ...... 162 Structure of a TIN ...... 164 Modeling surface features ...... 166
Contents • v CHAPTER 11: FINDING LOCATIONS...... 169 Using locations ...... 170 Converting locations to map features...... 172 Converting x,y locations ...... 173 Converting addresses ...... 174 Converting place names ...... 177 Converting postal zones ...... 178 Converting route locations ...... 179
CHAPTER 12: GEODATABASE DESIGN GUIDE ...... 181 Purpose and goals of design ...... 182 Overview of design steps ...... 184 Step 1: Model the user’s view ...... 186 Step 2: Define entities and relationships ...... 188 Step 3: Identify representation of entities ...... 190 Step 4: Match to geodatabase data model ...... 192 Step 5: Organize into geographic data sets...... 194
INDEX...... 197
vi • Modeling Our World Object modeling and 1 geodatabases
A geographic data model is a representation of the real world that can be used in a GIS to produce maps, perform interactive queries, and execute analysis. Contemporary developments in database and software technology are enabling a new generation of geographic data models. These are the topics in this chapter: • Modeling objects with GIS • The progress of geographic data models • The geodatabase, store of geographic data • Features in an object-oriented data model • Serving and accessing geographic data • Building data models • Guide to reading UML object diagrams Northern Polar Region. Gerhard Mercator, 1595. • Technology trends
1 MODELING OBJECTS WITH GIS
The purpose of a geographic information system • As a border between two areas. A river can (GIS) is to provide a spatial framework to support delimit political areas such as provinces or decisions for the intelligent use of earth’s resources counties, or can be a barrier for natural regions and to manage the man-made environment. such as wildlife habitats. Most often, a GIS presents information in the form of maps and symbols. Looking at a map gives you the knowledge of where things are, what they are, how they can be reached by means of roads or other transport, and what things are adjacent and nearby. A GIS can also disseminate information through an interactive session with maps on a personal computer. This interaction reveals information that is not apparent on a printed map. • As an areal feature with an accurate For example, you can query all known attributes of representation of its banks, braids, and a feature, create a list of all things connected from navigable channels on the river. one point on a network to another, and perform simulations to gauge qualities such as water flow, travel time, or dispersion of pollutants. The way you choose to display and analyze information depends upon how you model geographic objects from the world.
MANY WAYS TO MODEL A SYSTEM Our interaction with objects in the world is diverse, and you can model them in many ways. • As a sinuous line forming a trough in a surface model. From the river’s path through a surface, Consider one example, rivers. Rivers are natural you can calculate its profile and rate of descent, features, are used for transportation, delimit political the watershed it drains, and its flooding potential or administrative areas, and are an important feature for a prescribed rainfall. in the shape of a surface. Here are a few of the many ways you can think about modeling rivers in a GIS: • As a set of lines that form a network. Each section of line has flow direction, volume, and other attributes of a river. You can apply a linear network model to analyze hydrographic flow or ship traffic.
MAP USE GUIDES THE DATA MODEL It is clear that even a common type of geographic feature such as a river can be represented in a GIS in a variety of ways. No model is intrinsically superior; the type of map you want to create and the context of the problems to be solved will guide which model is best.
2 • Modeling Our World Representations of geography features
Features are discrete objects on a map. Small objects are represented as points, long objects as lines, and broad objects as polygons.
surface
network