GeoTIFF: Continue intergation.

This commit is contained in:
parouby committed 2025-11-12 10:41:45 +01:00
1 parent 6e52b1681e
commit 5c83d67865
3 files changed
+90 -13

No files matched your search

+9 -1
View File
@@ -62,7 +62,15 @@ class GeoTIFF(SQLSubModel):
self._description = description
self._file_bytes = b''
self._coordinates = coordinates
if coordinates is None:
self._coordinates = {
"bottom" : 0.0,
"top": 0.0,
"left": 0.0,
"right": 0.0,
}
else:
self._coordinates = coordinates
self._file_name = ""
if path != "":
+2 -2
View File
@@ -43,8 +43,8 @@ class GeoTIFFList(PamhyrModelList):
f"WHERE scenario = {self._status.scenario_id}"
)
for af in self._lst:
ok &= af._db_save(execute, data)
for gt in self._lst:
ok &= gt._db_save(execute, data)
return ok