Presentation is loading. Please wait.

Presentation is loading. Please wait.

Data Structures & GeoDatabase. GeoDatabase Implemented in a relational database Comes in two flavors – Personal & Enterprise (Access & Sys. Like Oracle)

Similar presentations


Presentation on theme: "Data Structures & GeoDatabase. GeoDatabase Implemented in a relational database Comes in two flavors – Personal & Enterprise (Access & Sys. Like Oracle)"— Presentation transcript:

1 Data Structures & GeoDatabase

2 GeoDatabase Implemented in a relational database Comes in two flavors – Personal & Enterprise (Access & Sys. Like Oracle) Supports a model of topologically integrated feature classes - 2D & 3D Supports Data Models -- ArcHydro Use can be simple or very complex! In some applications database designers will be needed to tune the database operation! Can use many different data structures

3 Outline Before looking at GeoDatabases we need to take a detailed look at the structure of the various types of data that can be used in a GeoDatabase Then we can look at the complexities of the GeoDatabase its self

4 Data Structures Images

5 Data Structures You have to know something about these Vector structures –Shapefiles (multiple files same name) –Coverages (Folders) Workstation – (folder with INFO file) PC (folder WITHOUT an INFO file) –Can only open in ArcView3.3 –Can then convert to a Shapefile

6 Data Structures You have to know something about these structures –Raster GRIDS –Images MrSid Tiff ERDAS Etc/

7 Vector: General Points are defined by a single x,y coordinate pair Lines are defined by two or more x,y coordinate pairs Polygons are defined by lines that close to form the polygon boundaries

8 3 Shape files for map Points, lines, polys

9 Vector: Shapefiles ExtensionRequiredWhat it is.dbf Attribute data file.shp Geometry.shx Index to geometry.sbn,.sbxSpatial index of features.fbn, fbxSpatial index read only features.ain, aihAttribute Index of active fields.xmlMetadata (AV8+).avlLegend data (Av3.x).prjProjection data etc.

10 Vector: Topology Shapefiles are said to have NO topology But they do (see Practical Vector GIS) WHAT IS IT??? Topological association: spatial relationship between features that share geometry In Coverages (Workstation & PC): spatial relationships between connecting or adjacent features in a data layer In GeoDatabases: a set of rules applied to feature classes that explicitly define spatial relationships that must exist between features.

11 Note: The chapter (2) in Practical Vector GIS has a lot of good information about this subject

12 Vector: Workstation Coverages Workstation ArcInfo coverages are a very common data structure They are stored in a workspace A Workspace is any folder that has –An INFO folder –And a set of coverages folders that have A bunch of.ADF files DON’T EVER MOVE THE CONTENTS OF A WORKSPACE EXCEPT IN ARC CATALOG!

13 Vector: Workstation Coverages Workstation ArcInfo coverages are a very common data structure A Workspace is any folder that has –An INFO folder –And a set of coverages folders that have A bunch of.ADF files These folders are all coverages Line data Extent Poly or Point Attribute Table TIC table An.AAT is a Arc Attribute table

14 A Coverage: points TIC

15 A Coverage: points

16 A Coverage: Arcs

17 2 Coverages for map Can’t have Points and Polys in same coverage because polys have a label point in each poly – confusion would abound!

18 Raster data We have looked at this structure before Here is ESRI’s diagram The elevation values are average for each cell in the raster There are a number of raster formats – ESRI’s is GRID

19 GRID STRUCTURE ESRI COURSE VIEW OF SOILS Explorer view A Workspace

20 Image data A raster-based representation of a scene Cell attributes are NOT like feature data Typically produced by an optical or electronic device, –camera or –scanning radiometer. Examples –remotely sensed data (for example, satellite data) –scanned data, and photographs. Stored as a raster dataset of binary or integer values that represent the intensity of reflected light, heat, sound, or any other range of values on the electromagnetic spectrum. An image may contain one or more bands.

21 Image data A raster-based representation of a scene Cell attributes are NOT like feature data Typically produced by an optical or electronic device, –camera or –scanning radiometer. Examples –remotely sensed data (for example, satellite data) –scanned data, and photographs. Stored as a raster dataset of binary or integer values that represent the intensity of reflected light, heat, sound, or any other range of values on the electromagnetic spectrum. An image may contain one or more bands..tif – tagged Image File Format.tfw – Tiff world file (location).sid – MrSID format (LizardTech).img – ERDAS Imagine format.jpg – Joint Photographic Experts …

22 USED FOR WHAT? Vector data – things with discrete borders –roads, minor civil divisions Raster data – continuous surfaces –Elevation, water table, sound levels Images – views of real world –Photos, satellite data

23 The Geodatabase It is a single container for many feature classes (FC) (layers, {themes} of any feature class type) Quite often the FCs are stored in Feature Datasets (FDS) Come in two flavors –Personal in Access databases –Enterprise in large commercial databases Oracle, DB2, SQL Server, ArcSDE

24 Geodatabase Feature Dataset Feature Classes Stand alone Feature Classes Source View

25 Display view ArcCatalog view } Cover Line (arc) point poly Anno Table

26 You need to consider... What will it be used for? What kind of data will be in the GDB –Themes and geometry types (point, line, poly?) –Attributes -- spatial or non-spatial tables What will be the projection & data extent used? What rules of data modification will be required? Do you want to maintain relationships between objects of different types? Will you be using geometric networks? Will you require topologically related features? Will you store custom objects?

27 Definitions Do all those words mean??????????

28 You need to consider... What will it be used for? What kind of data will be in the GDB –Themes and geometry types (point, line, poly?) –Attributes -- spatial or non-spatial tables What will it be used for? What kind of data will be in the GDB –Themes and geometry types (point, line, poly?) –Attributes -- spatial or non-spatial tables What will be the projection used? What rules of data modification will be required? Do you want to maintain relationships between objects of different types? Will you be using geometric networks? Will you require topologically related features? Will you store custom objects? Connectivity: Constraint on the type of network features that may be connected to one another –edge-junction rules –edge-edge rules Topology: Permissible relationships of features –within a feature class –between feature classes –between features in two different feature classes

29 You need to consider... What will it be used for? What kind of data will be in the GDB –Themes and geometry types (point, line, poly?) –Attributes -- spatial or non-spatial tables What will it be used for? What kind of data will be in the GDB –Themes and geometry types (point, line, poly?) –Attributes -- spatial or non-spatial tables What will be the projection used? What rules of data modification will be required? Do you want to maintain relationships between objects of different types? Will you be using geometric networks? Will you require topologically related features? Will you store custom objects? Associations or links between two or more objects in a GDB. Relationships can exist between 1) spatial objects (features in a feature class) 2) non-spatial objects (records in a table, or 3) spatial and non-spatial objects

30 You need to consider... What will it be used for? What kind of data will be in the GDB –Themes and geometry types (point, line, poly?) –Attributes -- spatial or non-spatial tables. What will it be used for? What kind of data will be in the GDB –Themes and geometry types (point, line, poly?) –Attributes -- spatial or non-spatial tables What will be the projection used? What rules of data modification will be required? Do you want to maintain relationships between objects of different types? Will you be using geometric networks? Will you require topologically related features? Will you store custom objects? Objects: The representation of a real world entity stored in a GDB. An object has properties and behaviors.

31 You need to consider... What will it be used for? What kind of data will be in the GDB –Themes and geometry types (point, line, poly?) –Attributes -- spatial or non-spatial tablesWhat will it be used for? What kind of data will be in the GDB –Themes and geometry types (point, line, poly?) –Attributes -- spatial or non-spatial tables What will be the projection used? What rules of data modification will be required? Do you want to maintain relationships between objects of different types? Will you be using geometric networks? Will you require topologically related features? Will you store custom objects? A one dimensional nonplaner graph (mathematics) that is composed of features. These features are constrained to exist within the network and can, therefor, be considered network features.

32 You need to consider... What will it be used for? What kind of data will be in the GDB –Themes and geometry types (point, line, poly?) –Attributes -- spatial or non-spatial tablesWhat will it be used for? What kind of data will be in the GDB –Themes and geometry types (point, line, poly?) –Attributes -- spatial or non-spatial tables What will be the projection used? What rules of data modification will be required? Do you want to maintain relationships between objects of different types? Will you be using geometric networks? Will you require topologically related features? Will you store custom objects? Relationships between connected features in a geometric network OR Shared borders between features in a topology (Now that is circular!!!!)

33 You need to consider... What will it be used for? What kind of data will be in the GDB –Themes and geometry types (point, line, poly?) –Attributes -- spatial or non-spatial tablesWhat will it be used for? What kind of data will be in the GDB –Themes and geometry types (point, line, poly?) –Attributes -- spatial or non-spatial tables What will be the projection used? What rules of data modification will be required? Do you want to maintain relationships between objects of different types? Will you be using geometric networks? Will you require topologically related features? Will you store custom objects? Custom Objects: In ArcGIS you are NOT limited to the objects provided. New objects can be added

34 More Definitions: Feature An object class in a GDB that has a field of type GEOMETRY. –Are stored in Feature Classes A representation of a real world object A point, line or poly in a coverage or shapefile A representation of a real world object in a layer on a map.

35 More yet: Feature Class Conceptual representation of a category of geographic features. Includes point, line, poly & annotation In a GDB, an object that stores features and has a geometry field type

36 Feature Dataset A collection of feature classes that share the same spatial reference. It is because they share the same spatial reference that they can participate in topological relationships with each other. Several feature classes with the same geometry may be stored in the same feature dataset. Object geometry and relationship classes can also be stored in a feature dataset

37 Some others Edge: –A line segment in a topology that defines lines or polys boundaries –Multiple features in one or more feature classes may share topology edges Dataset: –Any feature class, table, or collection of feature classes or tables in the GDB –A named collection of logically related data items arranged in a prescribed manor

38 Icons GDB Feature Dataset GDB table

39 Icons GDB Feature Dataset GDB table

40 Icons GDB Feature Dataset GDB table

41

42

43 Three ways to create a GDB Plan it Import Existing Data Create a Schema with ArcCatalog Use CASE tools Define connectivity rules, relationships Load data into Schema: Shapefiles Coverages GDB

44 Feature Datasets (FDS) Exist in a GDB to define a particular Spatial Reference Are a way to group feature Classes(FC) with the same spatial reference So they can participate in topological relationships with each other Topologically related FCs must reside in the same FDS

45 Spatial Reference A coordinate System –Geographic –UTM –Etc. A spatial domain (coord range, measures (M), and Z values (extent) Precision (# of system units/unit M) MUST be specified when creating a FDS and it feature classes or a stand alone feature class

46 Field Properties When creating a Feature Class or table you can specify the number of fields to be included And you can spec settings such as field type and max. size All fields have property default values, domains, aliases, and null allowance

47 Field Properties When creating a Feature Class or table you can specify the number of fields to be included And you can spec settings such as field type and max. size All fields have property default values, domains, aliases, and null allowance Set values at creation time Valid set or range of values for the field Aliases will display on maps Yes or NO for allowing nulls (nothing)

48 Field Precision & Scale Max. field size and precision –Precision – number of digits (not the “.”) –Scale – number of decimal places Personal GDBs support ONLY binary fields and precision and scale are ignored! NOT SO for enterprise GDB!!!

49 Required Fields Apply to all feature classes and tables Automatically created Required fields also have required properties (domain) [can’t change] Required fields for simple FCs are –OBJECTID –Shape Note: when you import data there will be other fields you cannot change in ArcGIS – But you can change them in ACCESS

50 Topologies Many datasets have features that could share boundaries or corners By creating a Topology you set up rules defining how features share their geometries. Editing a boundary or vertex shared by two or more features updates the shape of all of them.

51 Topology rules Govern the relationships between between features within a FC or features in different FCs Example: moving a slope boundary in in one FC could update two slope class polys AND update a forest stand boundary in another FC. Topology editing tools in ArcMap are used to create and change the rules

52 Geometric Networks Some vector datasets need to support connectivity tracing and network connectivity rules –Communications –Pipelines –Transportation (roads, railroads, canals) Geometric networks allow you to turn simple point and line features into network edge and junction features

53 Data Numeric data can be stored in 4 types –Short integer –Long integer –Single precision floating point (floats) –Double precision floating point (doubles)

54 Decimal vs. Binary Important concept 8,4,2,1 place weight The binary number 0110 = 6 in decimal 0001 = 1, 0010 =2, 0011 = 3, 0100 =4 The short integer is 16 bits or 2 bytes One is for sign leaving 15 for the number Range is –32,000 to +32,000 The long integer is 4 bytes or 32 bits Range is –2 billion to +2 billion (more or less)

55 Decimal vs. Binary Floats and doubles are coded in a form similar to scientific notation -3,125  -3.125 x 10 3  3.125E 3 Float is a 8 bit number and store up to 7 significant digits – -3.4E -38 to –1.2E 38 for neg numbers – 3.4E -38 to 1.2E 38 for positive As a result floats and doubles are only approximate numbers!!!!!!!!

56 More yet You cannot express the number 1,234,567.8 as a float because it contains more than 7 digits. As a float it will be 1,234,568 0.1 cannot be expressed exactly -- it will be 0.099999

57 Summary of data types NameRange, length Size (bytes) Applications Short Integer -32,768 to 32,767 2No fractions Long Integer -2,147,483,648 To 2,147,483,647 4No fractions Float~-34E -38 to ~1.2E 38 4Fractional values

58 Summary of data types NameRange, length Size (bytes) Applications Double~ -2.2E -308 ~ 1.8E 308 8Fractions OK Text <=64,000 char varies Names etc. Date mm/dd/yy hh:mm:ss 8Date and time

59 The BLOB Binary Large Object Simply some data stored in the GDB as a long sequence of binary numbers. Such as –Images –Multimedia –Code

60 Summary GDB Feature Datasets Feature Classes Features


Download ppt "Data Structures & GeoDatabase. GeoDatabase Implemented in a relational database Comes in two flavors – Personal & Enterprise (Access & Sys. Like Oracle)"

Similar presentations


Ads by Google