Zoe commited on
Commit
25c46b8
·
verified ·
1 Parent(s): f896428

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -18,8 +18,12 @@ tags:
18
  - benchmark
19
  - postgis
20
  size_categories:
21
- - n<1K
22
  configs:
 
 
 
 
23
  - config_name: raster_only
24
  default: true
25
  data_files:
@@ -39,7 +43,7 @@ configs:
39
 
40
  GS-QA2 is a benchmark for **geospatial question answering over both vector and raster data**. It extends [GS-QA](https://arxiv.org/abs/2605.22811) — a vector-only benchmark built on OpenStreetMap features in a PostGIS database — with a U.S. Digital Elevation Model (DEM) raster layer and 25 new question templates that require terrain reasoning: elevation lookups, slope, aspect, ruggedness, and questions that combine vector filtering with raster analysis.
41
 
42
- Each record pairs a natural-language question with an **executable PostGIS SQL query** and its **ground-truth answer**, so every question is verifiable without manual annotation. This release contains the 680 raster-related questionanswer pairs generated for the paper's evaluation; they complement the 2,800 vector-only pairs inherited from GS-QA.
43
 
44
  Code, ingestion scripts, generation pipeline, and baseline implementations live in the companion repository: **https://github.com/ZhuochengShang/QARV**
45
 
@@ -49,22 +53,24 @@ Existing geospatial QA benchmarks evaluate vector data only (points, lines, poly
49
 
50
  ## Dataset structure
51
 
52
- Three configurations, mirroring the paper's template groups of increasing raster-reasoning complexity:
53
 
54
  | Config | Templates | Records | Description |
55
  |---|---|---|---|
56
- | `raster_only` | R1R11 (19 template files) | 380 | Direct DEM querieselevation, slope, aspect, ruggedness, elevation thresholds anchored at POIs, roads, or regions |
57
- | `raster_vector` | VR9VR14 (7 template files) | 140 | New raster–vector templates requiring tight interaction: zonal aggregation, comparison, and ranking of POIs by terrain properties |
58
- | `extended` | VR1VR8 (8 template files) | 160 | Standard vector queries augmented with a terrain condition or terrain output (e.g., range queries with elevation filters) |
 
59
 
60
- All 680 questions form a single evaluation set, published as the `test` split of each config. Questions were instantiated from templates by sampling real geographic entities (POIs, roads, parks, regions across the contiguous United States), executing the paired SQL against the reference PostGIS database (OSM + 30 m DEM, 265,950 raster tiles), and retaining only questions with valid, non-empty ground truth.
61
 
62
  ### Data fields
63
 
64
  | Field | Type | Description |
65
  |---|---|---|
66
  | `id` | string | Unique ID: `{group}/{template}/{index}` |
67
- | `group` | string | `raster_only`, `raster_vector`, or `extended` |
 
68
  | `template` | string | Template file name, e.g. `elevation+poi`, `slope+route`, `range+name+elevation_condition` |
69
  | `question` | string | Natural-language question |
70
  | `sql` | string | Executable PostGIS SQL query that produces the ground truth |
@@ -72,7 +78,7 @@ All 680 questions form a single evaluation set, published as the `test` split of
72
  | `answers` | string (JSON) | Ground-truth answer rows as a JSON-encoded list of objects. Keys vary by template (`elevation`, `slope_degrees`, `poi_name`, `distance_m`, …), so the list is serialized as a JSON string — parse with `json.loads` |
73
  | `question_entities` | string (JSON) | JSON-encoded metadata for the entities used to instantiate the template: display name, category, WKT geometry, and full OSM attributes |
74
 
75
- The untouched original template files (one JSONL per template, grouped by folder) are preserved under `raw/qa2/` for provenance.
76
 
77
  ### Example record (`raster_only`, template `elevation+poi`)
78
 
@@ -120,6 +126,17 @@ Answers are scored per output type, following the paper (Tables 9–10): token-l
120
 
121
  ## Citation
122
 
 
 
 
 
 
 
 
 
 
 
 
123
  ```bibtex
124
  @inproceedings{shang2026gsqa2,
125
  title = {GS-QA2: A Benchmark for Question Answering over Raster--Vector Data},
 
18
  - benchmark
19
  - postgis
20
  size_categories:
21
+ - 1K<n<10K
22
  configs:
23
+ - config_name: vector
24
+ data_files:
25
+ - split: test
26
+ path: data/vector-*.parquet
27
  - config_name: raster_only
28
  default: true
29
  data_files:
 
43
 
44
  GS-QA2 is a benchmark for **geospatial question answering over both vector and raster data**. It extends [GS-QA](https://arxiv.org/abs/2605.22811) — a vector-only benchmark built on OpenStreetMap features in a PostGIS database — with a U.S. Digital Elevation Model (DEM) raster layer and 25 new question templates that require terrain reasoning: elevation lookups, slope, aspect, ruggedness, and questions that combine vector filtering with raster analysis.
45
 
46
+ Each record pairs a natural-language question with an **executable PostGIS SQL query** and its **ground-truth answer**, so every question is verifiable without manual annotation. This release contains the complete benchmark: the **2,800 vector-only pairs** (V1V28, 100 per template) inherited from [GS-QA](https://arxiv.org/abs/2605.22811) by Saeedan, Rashid, Eldawy, and Hristidis, plus the **500 raster-related pairs** (25 templates × 20 questions) that GS-QA2 adds — **3,300 questions in total**.
47
 
48
  Code, ingestion scripts, generation pipeline, and baseline implementations live in the companion repository: **https://github.com/ZhuochengShang/QARV**
49
 
 
53
 
54
  ## Dataset structure
55
 
56
+ Four configurations, mirroring the paper's template groups of increasing raster-reasoning complexity:
57
 
58
  | Config | Templates | Records | Description |
59
  |---|---|---|---|
60
+ | `vector` | V1V28 | 2,800 | Vector-only questions from the original GS-QA benchmark range, nearest-neighbor, direction, towards, and intersects queries over OSM features, with entity-name, location, direction, count, distance, area, and length answers |
61
+ | `raster_only` | R1R11 | 220 | Direct DEM queries elevation, slope, aspect, ruggedness, elevation thresholds anchored at POIs and roads |
62
+ | `raster_vector` | VR9VR14 | 120 | New raster–vector templates requiring tight interaction: zonal aggregation, comparison, and ranking of POIs by terrain properties |
63
+ | `extended` | VR1–VR8 | 160 | Standard vector queries augmented with a terrain condition or terrain output (e.g., range queries with elevation filters) |
64
 
65
+ All 3,300 questions form a single evaluation set, published as the `test` split of each config. The `vector` config is stored as zstd-compressed Parquet (its ground-truth answer lists are large); the three raster configs are plain JSONL. Questions were instantiated from templates by sampling real geographic entities (POIs, roads, parks, regions across the contiguous United States), executing the paired SQL against the reference PostGIS database (OSM + 30 m DEM, 265,950 raster tiles), and retaining only questions with valid, non-empty ground truth.
66
 
67
  ### Data fields
68
 
69
  | Field | Type | Description |
70
  |---|---|---|
71
  | `id` | string | Unique ID: `{group}/{template}/{index}` |
72
+ | `template_id` | string | Paper template ID: `V1`–`V28` (vector), `R1`–`R11` (raster-only), `VR1`–`VR8` (extended), `VR9`–`VR14` (raster–vector) |
73
+ | `group` | string | `vector`, `raster_only`, `raster_vector`, or `extended` |
74
  | `template` | string | Template file name, e.g. `elevation+poi`, `slope+route`, `range+name+elevation_condition` |
75
  | `question` | string | Natural-language question |
76
  | `sql` | string | Executable PostGIS SQL query that produces the ground truth |
 
78
  | `answers` | string (JSON) | Ground-truth answer rows as a JSON-encoded list of objects. Keys vary by template (`elevation`, `slope_degrees`, `poi_name`, `distance_m`, …), so the list is serialized as a JSON string — parse with `json.loads` |
79
  | `question_entities` | string (JSON) | JSON-encoded metadata for the entities used to instantiate the template: display name, category, WKT geometry, and full OSM attributes |
80
 
81
+ The untouched original template files (one JSONL per template, grouped by folder) are preserved under `raw/qa2/` for provenance. `raw/qa2/` additionally contains 9 exploratory templates (180 QA pairs — regional/area elevation and slope aggregates and an elevation-count template) that were generated during benchmark construction but are not part of the canonical 500-question evaluation set exposed in the configs above.
82
 
83
  ### Example record (`raster_only`, template `elevation+poi`)
84
 
 
126
 
127
  ## Citation
128
 
129
+ If you use the `vector` config (V1–V28), please also cite the original GS-QA benchmark:
130
+
131
+ ```bibtex
132
+ @article{saeedan2026gsqa,
133
+ title = {GS-QA: A Benchmark for Geospatial Question Answering},
134
+ author = {Saeedan, Majid and Shihab Rashid, Muhammad and Eldawy, Ahmed and Hristidis, Vagelis},
135
+ journal = {arXiv preprint arXiv:2605.22811},
136
+ year = {2026}
137
+ }
138
+ ```
139
+
140
  ```bibtex
141
  @inproceedings{shang2026gsqa2,
142
  title = {GS-QA2: A Benchmark for Question Answering over Raster--Vector Data},
data/extended.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/raster_only.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/raster_vector.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:07f18ab0d34d4f368a3b79cbf0b03cb1749b74ea9ee0f2ee2bab83ecc4774df8
3
- size 13581329
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48cd599f2f16d3d5e5fcb9fd1699c797f9f561e620d8d047bdb6cf74abec6874
3
+ size 11651317
data/vector-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0e7a7ccbfec2c00f20f7a0730c9604d704943d5286806af829621593ecabd3e
3
+ size 2505354
data/vector-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbea901a47017dc40f058bd7eae3ac60477f6e893443cf822749a12e3b4c856e
3
+ size 18923297
data/vector-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0054950e5b3b8561189d00fed000abc3de7b9bb04aade605f191f34dbc3e1cf8
3
+ size 20476636