Skip to content

Commit a3edfc1

Browse files
authored
Merge pull request #79 from emotional-cities/dataset-id
Prefer dataset label as record id
2 parents 500fee9 + 798f3f0 commit a3edfc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pluma/export/ogcapi/records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class RecordProperties:
4343
class DatasetRecord:
4444
def __init__(self, dataset: Dataset, gdf: GeoDataFrame, properties: RecordProperties) -> None:
4545
root_path = Path(dataset.rootfolder.path)
46-
self.id = f"{root_path.name.lower()}"
46+
self.id = dataset.datasetlabel or f"{root_path.name.lower()}"
4747
self.start_date = gdf.index[0]
4848
self.end_date = gdf.index[-1]
4949
self.created_timestamp = pd.Timestamp(datetime.now(timezone.utc))

0 commit comments

Comments
 (0)