Aggregate regional bathymetry partitions
This commit is contained in:
@@ -56,6 +56,7 @@ class MapResultExportRequest(BaseModel):
|
||||
area_id: UUID | None = None
|
||||
partitioned: bool = False
|
||||
product_key: str | None = None
|
||||
partition_scope_key: str | None = None
|
||||
theme_id: str | None = None
|
||||
name: str | None = None
|
||||
|
||||
@@ -67,8 +68,8 @@ class MapResultExportRequest(BaseModel):
|
||||
self.earlier_dataset_id is None or self.later_dataset_id is None
|
||||
):
|
||||
raise ValueError("earlier_dataset_id and later_dataset_id are required for evolution exports")
|
||||
if self.partitioned and not self.product_key:
|
||||
raise ValueError("product_key is required for partitioned raster exports")
|
||||
if self.partitioned and not self.product_key and not self.partition_scope_key:
|
||||
raise ValueError("product_key or partition_scope_key is required for partitioned exports")
|
||||
return self
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user