Querying

Prompts for querying data, especially from Overture Maps

1. Query Overture Places

Fetch points of interest from Overture Maps.

Query Overture Maps to get all [category] places within the current map extent. Include the name, address, and category for each place.

2. Query Overture Buildings

Get building footprints from Overture.

Fetch building footprints from Overture Maps for [area/extent]. Include building height and class information where available.

3. Query Overture Transportation

Get road and transportation network data.

Query Overture transportation data to get all [road_type] roads in [area]. Include road names, surface type, and speed limits.

4. Query Overture Administrative Boundaries

Fetch administrative boundary data.

Get administrative boundaries from Overture for [country/region]. Include [level] boundaries like states, counties, or municipalities.

5. Query by Bounding Box

Fetch data within a specific geographic extent.

Query [data_source] for all features within the bounding box: [min_lon], [min_lat], [max_lon], [max_lat]. 

6. Query by Radius

Find features within a distance from a point.

Query all [feature_type] within [distance] kilometers of [latitude], [longitude]. Sort results by distance from the center point.

7. Aggregate Query

Get summary statistics from queried data.

Query [data_source] and calculate the [count/sum/average] of [field] grouped by [category_field].

8. Join Query Results

Combine query results with existing data.

Query [external_source] and join the results to my [layer_name] layer using [join_field] as the common key. Add the [fields_to_add] to my layer.

9. Query with Spatial Relationship

Find features based on spatial relationships.

Query all [feature_type] that [intersect/are within/contain] the features in [reference_layer]. Return matching features as a new layer.