Final answer:
Spatial queries involve analyzing geometry and spatial relationships, while attribute queries focus on analyzing information stored in the attribute table. The GIS questions can be answered using a combination of spatial and attribute queries.
Step-by-step explanation:
Differences between spatial and attribute queries:
Spatial queries in GIS involve analyzing geometry and spatial relationships between features, such as finding features within a certain distance or within a particular area. Attribute queries, on the other hand, focus on analyzing the information stored in the attribute table of GIS features.
Answering the GIS questions:
- To calculate the number of bee hives in the vicinity of a city centre, you would use a spatial query by determining the features from the point feature class of bee hives that fall within a certain radius of the city centre.
- To calculate how many suburbs have an average age over 65, you would use an attribute query, specifically an aggregation function like COUNT, to count the number of polygons in the polygon feature class of suburbs that have an average age attribute value greater than 65.
- To calculate how many people there are in a specific suburb, you would use a combination of a spatial query and an attribute query. First, you would use a spatial query to identify the polygon feature from the suburb feature class that contains the specific point feature from the household feature class. Then, you would use an attribute query to retrieve the number of people attribute value from the household's attribute table.
- To calculate the number of national parks entirely contained within a specific state that are also larger than 1,000 hectares in size, you would use a combination of a spatial query and an attribute query. First, you would use a spatial query to identify the polygon features from the national parks feature class that fall completely within the boundary of the specific state. Then, you would use an attribute query to filter out the national parks with a size attribute value greater than 1,000 hectares.