Skip to content

Commit eee0541

Browse files
committed
chg: grass uri format
1 parent 442f6ee commit eee0541

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/datasync/grass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def register_layers(parquet_file_path: str, project_number: str, gisbase: str):
112112
# the prefix grass: is not a standard
113113
# the query parameters GISBASE and LOCATION_NAME are actually valid env variables for grass gis # noqa: E501
114114
# type is an additional query param to add differentiate between raster and vectors # noqa: E501
115-
uri = f"grass:{d.get('resource')}@{d.get('mapset')}?GISBASE={gisbase}&LOCATION_NAME={d.get('location')}&type={d.get('type')}" # noqa: E501
115+
uri = f"grass://{d.get('resource')}@{gisbase}/{d.get('location')}/{d.get('mapset')}?type={d.get('type')}" # noqa: E501
116116
# NOTE: it's necessary to add a type, some resources otherwise have the same name between rasters and vectors # noqa: E501
117117
resource_id = f"{d.get('dataset_id')}-{d.get('resource')}-{d.get('type')}"
118118
metadata = json.loads(d.get("metadata"))

0 commit comments

Comments
 (0)