mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
GeoTIFF: Continue intergation.
This commit is contained in:
1 parent
6e52b1681e
commit
5c83d67865
3 files changed
+90
-13
No files matched your search
@@ -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 != "":
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user