Lab 3
Lab 3
PROGRAM:
AT220
GROUP:
6A
COURSE:
STUDENT NAME:
STUDENT ID:
2022864984
COURSE’S LECTURER:
Any GIS dataset's central component is the attribute table, which contains data
about spatial features like geographic locations, land use types, and demographics. In
the attribute table, a spatial feature is represented by each row, and a particular piece
of information (or attribute) about that feature is contained in each column. In a city
map, for instance, a row might stand for a specific city, and columns could contain
information about the city's elevation, area, or population.
One of the most useful tools in GIS is the Field Calculator, which enables users
to automate data manipulation or carry out calculations within these attribute tables.
Users can apply sophisticated mathematical formulas, logical expressions, or string
manipulations to data, as well as create new fields and update existing attributes,
using the Field Calculator. Streamlining workflows, automating tedious tasks, and
carrying out spatial analysis effectively all depend on this functionality.
OBJECTIVE
1. To learn about attribute table (open, edit, add field, calculate geometry etc).
2. To learn about field calculator.
PROCEDURE
TASK
1. 1. Explain four numeric data types used in ArcGIS (short integer, long integer, float,
double)
Short Integer
For storing small whole numbers, the Short Integer data type is utilised. Usually,
attributes that need integer values within a specific range are the ones that use it. The
short integer format is effective for smaller datasets because it only requires two bytes
of memory. Perfect for representing or counting small whole numbers, such as
classification codes, age, or the quantity of items.Perfect for representing or counting
small whole numbers, such as classification codes, age, or the quantity of items.
Long Integer
Compared to short integers, larger whole numbers are stored in the Long Integer data
type. When the values are greater than the range of short integers but do not need the
accuracy of floating-point numbers, it is utilised and requires 4 bytes of memory. useful
for displaying larger whole numbers, like large numerical identifiers, elevation in
meters, or population counts.
Float
Decimal numbers (also known as floating-point numbers) that need less accuracy than
double numbers are stored in the Float data type. It is appropriate for computations
that don't require a great deal of precision and uses 4 bytes of memory. frequently
employed for less accurate measurements, like area, temperature, or specific scientific
data types where a lesser degree of accuracy is acceptable.
Double
The Double data type is used to store floating-point numbers more precisely. It requires
8 bytes of memory and works best when calculations or representations of decimal
values need to be more accurate. vital for uses that demand a high degree of precision,
like financial computations, geographic coordinates (latitude/longitude), and scientific
measurements.
Using a formula or expression, users can update the values in an existing field
using the Field Calculator. For instance, you can update a field to reflect a category or
classification based on other attribute values, or you can multiply the length and width
attributes to determine the total area of a feature.
In an attribute table, users can add new fields (columns), compute them, and then
fill them with data. In order to calculate a field for the population density based on area
and population, for example, this is helpful for adding new data layers that are derived
from existing attributes. Numerous mathematical operations, including addition,
subtraction, multiplication, division, and more complex functions, are supported by the
Field Calculator.
It is helpful in the cases of calculating area where You can use the Field Calculator
to enter the area values in a new field if you have a polygon layer and wish to determine
the area for each feature. It is also helpful in categorizing data where To classify land
use types according to population density or other factors, you could utilise the Field
Calculator. Other than that, It helps in creating unique identifiers where collected
attribute fields to give each feature a distinct identity.