Академический Документы
Профессиональный Документы
Культура Документы
Exercise One
1. 1 Conceptual for lab exercise
1
Geo-database management System Lab manual
2
Geo-database management System Lab manual
Physical Design
You will test the main advantages of using a geodatabase by performing the following actions:
o Define the common spatial reference using feature datasets
o Organize the features with the same geometry and spatial reference in feature classes
o Define attribute constraints to eliminate edit errors using subtypes, domains, and default
values
o Define spatial and non-spatial relationships using relationship classes
o Add supplementary spatial and attribute behaviors by defining relationship rules for
relationship classes
Exercise Two
2 Creating Personal Geodatabase
it is very helpful to have some base data available for creating exercises and maps. If the data is well-
organized, you can save yourself hours of work when pulling together resources for a class or
presentation. In this short exercise, you will create a Geodatabase that will give you basic data. In the
future, you can add other feature classes to your Geodatabase that you find helpful.
3
Geo-database management System Lab manual
Follow these steps to create a new file geodatabase in ArcCatalog using ArcToolbox:
1. Select ArcToolbox from the Standard toolbar.
2. Go to Data Management Tools Workspace, and double-click on the Create File
GDB tool.
3. For File GDB Location, select Folder Connections, go to <drive>:\ g\Data, and
select the MyGeodatabase folder.
4. For File GDB Name, type Topo5000.
5. For File GDB Version (optional), select the CURRENT option to create a file
geodatabase compatible with ArcGIS Version 10.1, and click on OK.
2.2 Creating new items in a geodatabase
Once you have created Geodatabase, you need to populate it, meaning add items to it. Geodatabase
items Geodatabases organize geographic data into a hierarchy of data objects. These data objects are
stored in feature classes, object classes, and feature datasets.
i. A feature class- is a collection of features with the same type of geometry and the same
attributes. This are the GIS data layers
ii. A feature dataset- is a collection of feature classes that share the same spatial reference. It
is similar to a sub-directory
iii. An object class- is a table in the Geodatabase that stores non spatial data.
4
Geo-database management System Lab manual
5
Geo-database management System Lab manual
Create a table which show the registrar officers to register the parcel
Add owning type with text data type in the parcel feature
6
Geo-database management System Lab manual
Feature services can track who has made changes to the data and when. This information is stored in
fields directly in the dataset.
Editor tracking is a feature of ArcGIS for Desktop that can be utilized by ArcGIS Server to track edits
on feature classes and tables. Editor tracking is enabled using ArcGIS for Desktop:
1. In the Catalog tree, right-click any feature class or table and click Manage > Enable Editor
Tracking. This automatically creates fields for tracking edits (if they don't already exist) and
enables editor tracking.
2. Review the message prompt and click Yes.
3. To review your editor tracking settings, right-click your feature class or table and select
Properties.
4. Click the Editor Tracking tab.
5. Verify your editor tracking settings. You can turn off editor tracking by unchecking the Enable
editor tracking check box.
You must configure editor tracking settings on each dataset individually. You can choose to create a
feature service in which only some of the layers have editor tracking enabled.
7
Geo-database management System Lab manual
3. Exercise Three
3 Migrating existing data into a Geodatabase
You can use the Feature Class to Feature Class and Feature Class to Geodatabase tools to import
coverage, shapefiles, and CAD files into a geodatabase. You can also import feature classes from
another geodatabase. When you import several feature classes at the same time with the Feature Class
to Geodatabase tool, each feature class imports into a separate feature class.
Create a geodatabase and a feature dataset with the name SNNPR GDBMS and
SNNPR_UTM_37. Import towns and Zones of the southern region in to the database from
your Ethio-GIS files
8
Geo-database management System Lab manual
7. Review the names in the New Field Name column. If you do not want to use a default, click a
name and type a new one.
8. If you do not want to import one of the fields, click TRUE in the Visible column and
change it to FALSE.
9. Click OK.
10. On the Feature Class To Feature Class tool, click OK to import the feature class.
To the former geodatabase Add only woredas of the region from ethio woreda
with only one field woreda Name
Can you list down the fields and their data type?
9
Geo-database management System Lab manual
Exercise Four
4. Domains
Domains are rules applied to a field in a business table that describe the legal values of a field type,
providing a method for enforcing data integrity. Attribute domains are used to constrain the values
allowed in any particular attribute for a table or feature class.
Domains: Constraints which limit attribute values to a numerical range or a list of
possibilities. Domains are defined for the geodatabase and can be applied to multiple
feature classes, tables, or subtypes.
Example 1: Population value in a province. A province cannot have a negative
population value. If we also know that no province has a population greater than
10,000,000, we could set our domain range to 0- 10,000,000.
Attribute domains can be shared across feature classes, tables, and subtypes in a geodatabase.
Whenever a domain is associated with an attribute field, only the values within that domain are valid
for the field. In other words, the field will not accept a value that is not in that domain.
There are two types of domains you can definerange domains and coded domains. Range domains
can only be applied to numeric fields.
Can you list down the types of road in Dilla Town
Prepare a domain for road type (coded domain)
Code Full name description
CSR Coble Stone road
DWR Dry weather road
GR Gravel road
AS Asphalt
10
Geo-database management System Lab manual
Domain properties:- When creating or modifying a domain, you must edit the following properties:
4. Enter the domain name and description: Enter the domain name and give it a description in
the Domain Name and Description columns of the top part of the Domains tab. The
domain name will be used to assign the domain to a field and its description is used simply to
describe a domains purpose or use.
Name and description
When creating a new domain, you specify a name that will describe the parameter it
governs.
The characters ' and `, a single quote and an apostrophe, may not be used when naming a
domain.
After a domain is created, when you open the Properties dialog box for a feature class or
table, the domain name is displayed in the domain drop-down menu when choosing a
domain to associate with a given field. The description is a small sentence describing the
purpose of the domain.
Use (name = road type and description = types of road in Dilla town)
Field type: - The field type is the type of attribute field with which the domain can be associated.
The field type can be set to any of the following:
o ShortShort integers
o LongLong integers
o FloatSingle-precision floating point numbers
o DoubleDouble-precision floating point numbers
o Text (Coded domains only)Alphanumeric characters
o DateDate and time data
Once the field type is set, the name of the domain will appear in the domain drop-down
list for any field of that type in the Properties dialog box.
11
Geo-database management System Lab manual
Here the domain is created for the type of road which is text
Domain type
When you create a domain, you must specify which type of domain you want to use.
There are two types of attribute domains:
Range domainsA range domain specifies a valid range of values for a numeric attribute.
When creating a range domain, you enter a minimum and maximum valid value. A range
domain can be applied to short-integer, long-integer, float, double, and date attribute types.
Coded domainsA coded value domain can apply to any type of attributetext, numeric,
date, and so on. Coded value domains specify a valid set of values for an attribute.
12
Geo-database management System Lab manual
Merge policies
When two features are merged into a single feature, merge policies control the value of
attributes in the new feature. An attribute for any given feature class or subtype can have one
of three merge policies:
Default valueThe attribute of the resulting feature takes on the default value for the
attribute of the given feature class or subtype. This is the only merge policy that applies to
nonnumeric fields and coded value domains.
Sum valuesThe attribute of the resulting feature takes on the sum of the values from the
original features' attributes.
Geometry weightedThe attribute of the resulting feature is the weighted average of the
values of the attributes from the original features. This average is based on the original
feature's geometry.
For this exercise select default for both policies
Coded values
The coded value section is only available for coded domains. It contains the coded values for a
domain as well as an associated description of what that value represents.
The following graphic displays a method of using abbreviated text as coded values to represent
categories of a feature. In this instance, road types categories are represented by roads made up
materials
13
Geo-database management System Lab manual
5. In the upper table of the Fields tab select the field to add a domain to.
6. Apply the domain to the selected field:
7. In the Field Properties box select the domain to apply from the Domain drop box.
Note: Only domains from the current geodatabase that match the field type will be
listed in the Domains drop box.
14
Geo-database management System Lab manual
Or
go to Arccatalog right click on the geodatabase properties and domain tab
select the domain name from the list of domains ( if more than one available)
go to coded values
add code and discritption
The Domains property page can be used to delete an attribute domain from the geodatabase or modify
an existing domain. You can modify domains by selecting them on the Domains Properties dialog
box.
The domain type or field type cannot be modified. But the following properties can be modified:
Domain name
Max and min values for range domains
Codes associated with coded value domains
The Description field
Split and Merge policies
1. In the Catalog tree, right-click the geodatabase and click Properties.
2. Click the Domains tab.
3. Click the domain you want to delete by clicking the left tab in the grid.
4. Press the Delete key.
5. Click Apply to delete the domain from the geodatabase, or click OK to delete the domain and
close the dialog box.
16
Geo-database management System Lab manual
17
Geo-database management System Lab manual
Exercise Six
6 Working with excel data
6.1 Table Joins
Table Join A table join appends the attributes of a non-spatial table to a (spatial) layer attribute table,
creating one large table. Joins are used when there is a one-to-one relationship that means that for
each geographic feature in the layer there is one match in the non-spatial table.
If the file is/are already exist in excel form
Add table to your geodatabase
RC on the database import table(single) (select farmers list file from GDMss folder
given to this exercise Select the excel spreadsheet which contains the data
Add Ok
Otherwise do a follow
Prepare a Parcel layer which has the following attributes
Parcel_ID Soil Type Area Owning type Land Use Owner_ID Registered_By
0280/02 001/98 001
1565/10 002/99 002
0405/01 003/88 003
1047/11 003/97 004
1316/07 002/89 005
014/02 125/98 006
1238/10 435/99 003
0405/08 556/00 004
0571/05 559/01 005
1448/04 001/98 003
1299/01 001/96 006
1308/01 002/88 005
1423/03 125/97 004
1222/01 435/96 004
1015/10 002/88 005
0288/01 001/98 004
0068/04 001/96 001
18
Geo-database management System Lab manual
For Registrar use the following Table you created under Domain Exercise
R_ID Name Sex Position Work Experience
001 Shemisu Nuru M Chief registrar 19
002 Abebech Yilma F Senior registrar 12
003 Garuma Kumera M Junior Registrar 6
004 Hawa Ali F Junior Registrar 4
005 Rediet Belay F Senior registrar 10
006 Helen H/Mariam F Junior Registrar 5
During saving the second and third files use save as type CSV (Comma Delimited)
While closing the file be positive and select ( save, yes ok options only)
Finally add all the three files together with the aerial photograph in ArcMap
Start digitizing parcels in the aerial photograph use the correct parcel ID and Owner Id listed in
the table
From table of content RC on parcel
19
Geo-database management System Lab manual
Which field can serve as joining field? Why ? Fill the following table
Table Relate A table relate keeps the non-spatial and spatial tables separate but linked. This means
that if you select records in one table, records in the related table will also be selected. Relates are
used when there is a one-to-many, many-to-many, many-to-one, or one-to-one (less common)
relationship between geographic features and non-spatial data.
Which parcels are owned by Females?
How many of them are registered by Garuma Kumera?
20
Geo-database management System Lab manual
Exercise Five
5. Subtypes
Subtypes are properties of feature classes or non-spatial tables. The subtypes gather the features from a
feature class or records from a non-spatial table that share the same attribute values using an attribute
field. The attribute field that groups the features must be of the data type Short or Long integer, and it
will be named the subtype field. A feature class can have only one subtype field. You can assign
different behaviors to individual subtypes from a feature class/table.
A subtype has a code and a description. After you have defined the subtypes for a subtype field, you
can change everything related to a subtype: change the value or description of code, add more codes,
and delete code. The subtypes help you in the geometry editing process and prevent errors when
editing feature attribute values. The subtypes maintain the integrity in a geodatabase.
Subtypes: Rules for categorizing distinct features in the same feature class.
Example: Roads. Normally subject to a national transportation classification system, so
only a few possible values. E.g., Trunk Road, Primary Road, Secondary Road,
Residential Street. With subtypes, we can automatically classify roads as we edit,
saving time and improving data quality.
Creating new subtypes for a feature class or table
1. In the ArcCatalog tree, create a road feature class under your database which has the following
attributes
2. Right click the feature class or table to which you want to add subtypes (in this case on Road).
3. Click Properties.
4. Click the Subtypes tab.
5. Click the dropdown arrow and click the subtype field from the list of available long integer
and short integer fields.
6. To add a new subtype, click the first empty field under Code and type an integer value that will
be the code for that subtype.
7. Press the Tab key or click the Description field and type a description for the subtype.
21
Geo-database management System Lab manual
8. For each field, type a default value in the appropriate field in the table.
Add the road layer and look at the table of content. What do you observe?
Start editing the road does it save your time to digitize and add attribute value ? how?
22
Geo-database management System Lab manual
Exercise Seven
7 validation
7.1 Creating a topology
Consists of a set of rules structuring the relationship between collections of features in one or
more feature classes in a feature dataset. Which
o uses to ensure data quality and to allow your geodatabase to more realistically
represent geographic features.
o framework for behavior that allows you to control the geometric relationships
between features and to maintain their geometric integrity.
o To develop a behavior enables you to more accurately model the world and Maintain
referential integrity between objects in the geodatabase.
How topologies are built
The validating process proceeds in the following sequence:
1. Cracking features
2. Clustering vertices
When a vertex of one feature in the topology is within the cluster tolerance of an edge of any
other feature in the topology,
o The topology engine creates a new vertex on the edge ( Cracking)
o to allow the features to be geometrically integrated in the clustering process
(Clustering).
To create a topology,
o specify which feature classes will participate
o All feature classes participating in a topology must be in the same feature dataset.) and
o determine rules will govern the interaction of features.
o Specify a cluster tolerance (involves snapping feature vertices together to make them
coincident,)
Vertices within the cluster tolerance may move slightly in the snapping process.
23
Geo-database management System Lab manual
The default cluster tolerance is the minimum possible cluster tolerance and is
based on the precision defined for the dataset.
The cluster tolerance should be small, so only close vertices are snapped
together.
Vertices that within the cluster tolerance are defined as coincident and snapped
together.
Cluster tolerance control which feature classes are more likely to be moved in the
clustering process. (adjusted. )
if they fall within the cluster tolerance of another vertex, All vertices of any
feature in a feature class that participates in a topology can potentially be
moved.
Ranks are assigned to the feature classes in the topology to accommodate this
common situation.
The less reliable features to snap to the more reliable ones.
Vertices of lower ranking features within the cluster tolerance will be snapped
to nearby vertices of higher ranking features.
Vertices of features of equal rank that lie within the cluster tolerance will be
geometrically averaged together.
o Feature classes that model terrain or buildings three dimensionally have a z-value
representing elevation for each vertex.
o if a topology has feature classes that model elevation, you can control how coincident
vertices are snapped vertically with the z cluster tolerance and ranks.
Rule
o define for a topology control the allowable relationships of
features within a feature class,
between features in different feature classes, or
Between subtypes of features.
o The initial validation of the topology checks all the features against all the rules.
o This initial check can take some time, but subsequent checks are performed only on the
areas that have been edited the dirty areas.
25
Geo-database management System Lab manual
26
Geo-database management System Lab manual
27
Geo-database management System Lab manual
Exercise Eight
8. Topology with multiple layers
Make you data ready for topology (only for this exercise)
Practical 8.1
Create a folder on D:/Drive with a name Topology_relation exercise
Under the folder create a personal geodatabase called Electrification
Under the database create a feature dataset with the following criterias
o Name == Elect_UTM_Adindan_37
o Use the coordinate system indicated in the feature datasets name
o Import the file given to this exercise in the newly created feature dataset
Create Sub type to Pole as the following
o Add field to show material Type of which a pole is constructed from
with a field name P_Material ,
dont forget to make data type short integer
o Create Sub type as coded as below
1 = Steel
2 = Concrete
3 = Wood
o Edit the table as follow
(make Concrete as default)
the Upper Right corners of the block steel ,
All poles at the end of electric line Wood (except pole Zero)
And the rest corners and Pole Along the side of the block as concrete.
Stop editing
Create Topology
Create a topology
Name Elec_Topology
Xy tolerance 0.01
Participant features == all features in the feature dataset
Rule as follow
o Poles
All poles should be along the electric line
o Electric line
cannot be overlap (share certain edge with other) ,
must not self overlap (over lap edge with its own),
cannot be intersect ( share vertex or boundary),
must not self intersect ,
must be single part,
o Compound and communal land
must not overlap , overlap with
must not have gap, gap with
Feature layers maintained by a topology
o the topology internally stores two additional types of feature classes:
dirty areas and
error features
o these are
Instead of storing topological information with the feature classes,
to discover the relationships when the information is requested, such as when
you are editing using the shared geometry tool.
To help you manage the process of creating and editing a logically consistent
topology,
Errors and exceptions
o Errors and exceptions are stored as features in the topology and allow you to render and
manage the places where features do not obey the topology rules you specified.
o Topologies also store error features, which record where topological errors were
discovered during validation.
o Certain errors may be acceptable, in which case the error features can be marked as
exceptions
Practical 8.3
o start editing base on the topology ( dont complete your editing, left some errors for
the next exercises )
29
Geo-database management System Lab manual
Dirty areas
o Dirty areas are areas that have been edited or affected by the addition, update, or
deletion
of features.
o Dirty areas allow the topology to limit the area that must be checked for topology errors
during topology validation.
o Let the topology efficiently track the places where topology rules may have been
violated during editing.
o Allow selected parts, rather than the whole extent of the topology, to be validated after
editing.
Dirty areas are created when:
A feature is created or deleted.
A features geometry is modified.
A features subtype is changed.
Versions are reconciled.
The topology properties are modified.
Practical 8.4
o Right click on the topology in table of Content Property Symbology
Check Dirty Area
o Now start editing on the basis of the topology inspection message
o What is new? _________________
o What does it mean _________________
a report of the total number of errors and exceptions
o You can use the report of the number of error features as a measure of the data
quality of a topological dataset.
Practical 8.5
o Right click on the topology in table of Content Property error
o Generate error export to file (the error will generate in text document (.txt)
o Open the exported text document in Microsoft office word ( still the file is a
little hard to understand )
o Convert text to table ( use comma as separate text at)
o Can you open the file in Microsoft office excel
error inspector in ArcMap
30
Geo-database management System Lab manual
Exercise 9
9 Relationship Classes
A relationship class contains several properties that define how objects in the origin relate to objects in
the destination. You specify these properties when you create the relationship class.
Cardinality:
Cardinality describes how many objects of one type are related to an object of another type.
Is the relationship one-to-one, one-to-many, or many-to-many?
certain types of relationships support certain cardinalities, and
You can control cardinalities for any relationship class when you define relationship rules.
Key fields
o A relationship between two objects is maintained through attribute values for key fields.
o Primary and foreign keys
Type: Simple or composite
o Simple relationships
Simple, or peer-to-peer, relationships are relationships between two or more objects in the
database that exist independently of each other.
In a relationship between object A and object B, if object A is deleted from the database,
object B continues to exist
Simple relationships can have one-to-one, one-to-many, or manyto-many cardinality.
o Composite relationships
The geodatabase also supports the notion of a composite relationship, where the lifetime of
the origin object controls the lifetime of its related objects.
Composite relationships are always one-to-many but can be constrained to be one-to-one
using relationship rules.
Origin and destination classes
Message notification direction, applicable if you want to implement custom cascade update or
delete behavior Name Forward and backward labels that display when you navigate related
records in ArcMap
31
Geo-database management System Lab manual
Practice 9.1
Create relationship class Steps:
1. In the Catalog tree, right-click the geodatabase or feature dataset in which you want to create
the new relationship class and point to New > Relationship Class.
1. Name == Pole_Transformer
2. Remind the cardinality of the two feature and determine the origin - destination relation
32
Geo-database management System Lab manual
Relationship rules
o Relationship rules control which object subtypes from the origin class can be related to
which object subtypes in the destination class.
Practical 9.2
Practical 9.3
Steps:
1. Start editor
2. Click the Edit tool on the Editor toolbar.
3. Select the features you want to validate here drag over pole. You can only validate features
from a geodatabase.
4. Click the Editor menu and click Validate Features.
If your selection contains any invalid features, a message box appears with the number of
invalid features.
Only those features that are invalid will remain selected.
5. Click OK.
6. Click one of the invalid features.
7. Validate the features again.
33
Geo-database management System Lab manual
Practice 10.1
Create relationship class Steps:
2. In the Catalog tree, right-click the geodatabase or feature dataset in which you want to create
the new relationship class and point to New > Relationship Class.
1. Name == Pole_Transformer
2. Remind the cardinality of the two feature and determine the origin - destination relation
Practical 10.2
Practical 10.3
Steps:
11. Start editor
12. Click the Edit tool on the Editor toolbar.
13. Select the features you want to validate here drag over pole. You can only validate features
from a geodatabase.
14. Click the Editor menu and click Validate Features.
If your selection contains any invalid features, a message box appears with the number of
invalid features.
Only those features that are invalid will remain selected.
15. Click OK.
35
Geo-database management System Lab manual
36
Geo-database management System Lab manual
Exercise Six
5. Raster Dataset
5.1 Importing or loading raster data
Raster data can be imported into a geodatabase in several ways:
by using Import raster datasets (geodatabase context menu),
the Copy Raster tool (geoprocessing tools), or
Load Data (ArcCatalog dataset context menu).
When working with multiple raster datasets, there are three possible storage methods
You can store each raster dataset individually,
Mosaic them all into one large raster dataset, or
Store them all inside a raster catalog container.
Storing the raster datasets individually is the best method when the datasets are not adjacent to each
other and when the datasets are rarely used on the same project. Mosaicking your inputs together to
form one large, single extent of raster data is appropriate for most applications, but a raster catalog
may be desired for one or more of the following reasons:
The extents of the raster datasets partially or fully overlap, and you want the common areas to be
preserved.
The extents of the raster datasets fully overlap and are part of a time series.
You do not need to see the entire area at one time. Raster catalogs display a wireframe at smaller
scales.
There are times when it is important to preserve each piece of metadata associated with each
raster dataset.
Steps:
You may want to use an existing raster catalog as a template if you have created additional
fields in it that you want to have in your new raster catalog. The new raster catalog will then
have the same fields as the template raster catalog.
37
Geo-database management System Lab manual
The raster catalog name cannot have spaces. You can use underscores to separate letters.
4. Optionally, click the Coordinate System for Raster Column button to choose a coordinate
system for the raster catalog.
5. Click the Coordinate System for Geometry Column button to set a coordinate system for
the geometry column.
If your coordinate system for the geometry column is unknown, you need to set the domain.
Setting the domain for a raster catalog works the same way as it does for a feature class.
Note: You do not need to specify a spatial index grid for a file geodatabase since it uses
its own optimized index.
8. Choose whether you want your raster catalog to be managed or unmanaged by the geodatabase.
9. Click OK.
38
Geo-database management System Lab manual
39
Geo-database management System Lab manual
The mosaicking tolerance controls whether or not resampling of the pixels takes place. If the
difference in pixel alignment of the incoming dataset and the target dataset is less than the
tolerance, no resampling is performed (instead, a shift is performed). The unit of tolerance is
pixels, which have valid values between 0 and 1. To learn more about the mosaicking
tolerance.
10. Optionally, choose a Color Matching Method.
This allows you to choose an algorithm to color match the raster dataset being mosaicked
together.
11. Click OK.
40
Geo-database management System Lab manual
2. Type a name for the new raster catalog (name it as DEMData). The raster catalog name cannot
have spaces. You can use underscores to separate letters.
3. Optionally, click the Coordinate System for Raster Column button to choose a
coordinate system for the raster catalog. (left other optional)
4. Choose whether you want your raster catalog to be managed or unmanaged by the geodatabase.
5. Click OK
6. Now load raster data in the catalog .
7. Load the data from the given exercise folder raster exercise select both
ASTGTM_N05E038_dem1.tif and ASTGTM_N06E038_dem1.tif
8. Look the DEMData in arcmap
9. Right click on DEMData in the table of content and open attribute
(what do you observe , any advantage, when shall we use raster catalog
41