Skip to content

Commit 262b342

Browse files
authored
fix: stac-geoparquet extension (#686)
1 parent ccffddf commit 262b342

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/core/src/geoarrow/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ pub fn from_table(table: Table) -> Result<ItemCollection> {
154154
if let Some(version) = version {
155155
let _ = item_collection
156156
.additional_fields
157-
.insert(VERSION_KEY.to_string(), version.into());
157+
.insert("stac_geoparquet:version".to_string(), version.into());
158158
}
159159
Ok(item_collection)
160160
}

crates/core/src/geoparquet/feature.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ mod tests {
223223
let item_collection = super::from_reader(bytes).unwrap();
224224
assert_eq!(item_collection.items[0], item);
225225
assert_eq!(
226-
item_collection.additional_fields["stac:geoparquet_version"],
226+
item_collection.additional_fields["stac_geoparquet:version"],
227227
"1.0.0"
228228
)
229229
}

0 commit comments

Comments
 (0)