|
TEACHING GEOG 385.02/GTECH 785.02 |
GIS SG course homepage |
By the end of this lecture you should be able to:
In vector systems, much of the analysis we are familiar with (review Tools for Raster Analysis) will be performed in the attribute database (attribute table) and the result will be mapped.
Our database queries and map algebra in raster involved the maps themselves (remember that the spatial and attribute components in raster are both represented within the raster image). In vector systems, however, database query and map algebra are operations within the attribute database/table independent of the spatial component.
This can be done in vector systems that have a
EXAMPLE: A vector layer/theme showing land parcels with an attribute
database attached to it:
|
ID |
Owner |
Year purchased |
Size |
County |
Landuse |
Value |
|
1 |
Smith |
1921 |
2000 |
Broward |
Industrial |
300000 |
|
2 |
Brown |
1933 |
500 |
Dade |
Residential |
90000 |
|
3 |
|
1991 |
1450 |
Broward |
Residential |
60000 |
|
… |
|
|
|
|
|
|
|
n |
|
|
|
|
|
|
Means: "What is at this location?" or more specifically in vector format "What attributes are associated with this feature?"
In the example, if you click on a particular parcel the GIS will display, in tabular form, the attributes of this particular parcel.
NOTE: Because you are querying vector features as whole entities, you can click anywhere within this parcel but the result will be the same. In vector format all associated attribute values apply to the entire feature.
Means: "Where is this attribute or this combination of attributes found?" or "What features have this attribute or combination of attributes?"
Example: Select and map all parcels that are located in Broward country.
([COUNTY]= "BROWARD")
This will select two records from the attribute table (1 and 3). The associated features (parcels with ID 1 and 3 on the map) can then be identified on the map (colored differently, etc.).
EXAMPLE of logical AND (INTERSECTION of attributes):
From the table of parcel information, select parcels that are located in
([COUNTY] = "BROWARD") AND ([SIZE]<1500)
This will select one land parcel that meets both criteria (record 3 which corresponds to parcel 3 on the map).
EXAMPLE of logical OR (UNION of attributes):
From the table of parcel information, select all features that meet AT LEAST
ONE of the criteria from the example above. Using SQL again:
([COUNTY] = "BROWARD") OR ([SIZE]<1500)
This query will select all three parcels in the database.
Multiple attribute query in vector format:
ArcGIS is particularly good for this, because it has very simple SQL interface.
Map algebra is used to calculate new attribute values for spatial features using old attribute values from one or more fields. In vector this is all done within the attribute database.
It is somewhat different from map algebra in raster where we substituted entire maps into mathematical equations (remember that the spatial and attribute components in raster are the same thing…).
In raster, we used scalar, transform, and overlay operations on raster images.
In vector, this is all done in the attribute database between attribute fields.
EXAMPLE: Using the existing attributes from the attribute table for parcels, we want to calculate a new attribute that indicates value of land per hectare (perhaps they are thinking of subdividing parcels…).
[HECTVALUE] = [VALUE]/[SIZE]
|
ID |
Owner |
Year purchased |
Size |
County |
Landuse |
Value |
HectValue |
|
1 |
Smith |
1921 |
2000 |
Broward |
Industrial |
300000 |
150 |
|
2 |
Brown |
1933 |
500 |
Dade |
Residential |
90000 |
180 |
|
3 |
|
1991 |
1450 |
Broward |
Residential |
60000 |
41.4 |
|
… |
|
|
|
|
|
|
|
|
n |
|
|
|
|
|
|
|