Lecture_8_Attribute_Data
Lecture_8_Attribute_Data
Introduction to
Geographic Information Systems (GIS)
Instructor: Isaya Kisekka
Attribute Data
Learning objectives
Record
Source: Esri
• An attribute table contains only ONE row for every spatial feature. In this
example every point on the map represents almond yield as a point feature
class with thousands of points following the path of the almond harvester
(picker).
• Row is linked to the spatial feature using the FID or OID.
Raster attribute table
A value attribute table lists the attributes of value and count. The value field
refers to the cell value, and the count field refers to the number of cells.
Typically used for rasters
https://help.arcgis.com/en/geodatabase/10.0/sdk/arcsde/concepts/rasters/entities/r
asters_attr.htm
Flat file DBMS
Customers
Service calls
Electric usage
Service personal
Hierarchical DBMS
Source: Esri
Source: Esri
• Joining must take into account the cardinality between the two
tables, or how many join records match each target record
• In a one-to-one join, one record in the join table matches one
record in the target table
Many-to-one joins
Source: Esri
Source: Esri
• In a one-to-many cardinality, many records in the join table match one record
in the target table
• It cannot be displayed as a single table, because there are multiple records
matched to each target record
• A relate is used instead, in which the tables remain separate but are linked
together, so that a selection in one table can be used to select the linked
records in the other table
Rule of Joining
Source: Esri
• Each record in the target table must match one and only one
record in the join table
• This rule is satisfied for one-to-one and many-to-one cardinality,
but not for a one-to-many cardinality
Many-to-many cardinality
In a many-to-many
cardinality, multiple records in
one table match multiple
records in another table
• Each student takes many
classes, and each class has
many students.
These complex relationships
are rarely satisfactorily treated
in GIS, although a relate is
one way to handle them
Four types of data relationship between tables: one-to-one,
one-to-many, many-to-one, and many-to-many.
Summary of cardinality types
One-to-one One-to-many
• States to Governors. • States to cities.
• Countries to capitals. • Districts to schools.
Source: Esri
Source: Esri
Exploring data with statistics helps you think critically about your data and
identify potential issues
• Zero magnitude earthquakes represent missing values and will impact
statistics calculated for the quakes.
• Actual earthquake distributions have many more low magnitude quakes than
large ones. This data set has been screened to show only the large quakes.
Charts
Source: Esri
Source: Esri
Statistics with a case field
Source: Esri
Fields have stringent naming rules to ensure that they work with
many different types of databases
• 6 bytes 2 − 1 = 4,294,967,295.
32 28 = 256
• 3.2957239e04 = 32957.239.
• − 3.2957239e04 = − 32957.239.
• 3.2957239e − 04 = 0.00032957239.
Float precision
• 3.2957239e12 = 3295723900000.
• 3.295723956249723e12 = 3295723956249.723.
Database storage
ArcGIS Pro has six basic field types: short and long for integers,
float and double for decimal values, text, and date
Source: Esri
Source: Esri
Field Domain
Domain name Coded values
type type
Things Text Coded Tree, Bench, Lightpole, Sign, Sculpture, Other
ConditionClass Text Coded Good, Fair, Poor
LineCategories Text Coded Sidewalk, Street, Trail, Powerline, Other
Concrete, Asphalt, Gravel, Dirt, Grass, Matting,
SurfaceMaterials Text Coded
Bark, Sand, Other
Parking, Athletic field, Pool, Landscaping,
LanduseClass Text Coded
Playground, Game court, General use, Other
• This table shows coded domains for collecting features that one
might find in a park or on a campus
• Coded domains save time and reduce typing and data entry
errors
Creating domains
Source: Esri
• Domains are created for a geodatabase rather than a feature class, so they
can be reused for many fields
• Domains are given field types that must match the fields to which they are
assigned
• This SymbolType coded value domain is for a text field, and two codes for
solid and dashed lines have been created
• Split and merge policies control the behavior of the fields if they are edited
Assigning domains
Source: Esri
Once created, the domain must be assigned to the field using the Fields view
• This ParcelType coded domain is being assigned to the Bldgtype field in this
Buildings feature class.
The field type must match (Short, Float, and so on)
Domains can be reused for many fields if desired
• True/False, or Yes/No, or, Good/Fair/Poor are examples of often-reused
coded domains.
Schema
Source: Esri
Source: Esri
Like layers, table views have properties that affect how the tables
are viewed and displayed
The settings are cosmetic and do not affect the source table
Some common table view settings include
• Aliases for field names to make them more understandable.
• Formatting of fields for consistent decimals or significant
figures.
• Displaying only some of the fields.
• Changing the field order.
Table view properties are set in the Fields view
Fields view
Source: Esri
Excel worksheets can be read directly by ArcGIS Pro, provided that certain formatting
requirements are met
• The first row must contain legal field names.
• Every column contains one type of data.
• Don’t use n/a or x to indicate missing values in a number column.
• There are no formulas, blank lines, or merged cells.
• A dummy row may help the data type be determined correctly as text, integers, or
floating point values.
NAME, NUM, STREET, CITY, STATE, ZIP, PERCENT
ddd, 999, 999, ddd, ddd, 99.99
Smith, 527, W. Main St., Peoria, Il, 45098, 38.3
A comma-delimited C SV file may work better in some cases
Importing text
a) tab-delimited file
b) comma-delimited file (CSV)
c) fixed-column file
AcGIS Pro cannot read the fixed-
column format, but Excel can be
used to convert one to a CSV