mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Point: Fix points order at DB loading.
This commit is contained in:
1 parent
e0cee0fbef
commit
9482aaf523
2 files changed
+12
-3
No files matched your search
@@ -175,7 +175,7 @@ class PointXYZ(Point):
|
||||
return new
|
||||
|
||||
table = execute(
|
||||
"SELECT pamhyr_id, deleted, " +
|
||||
"SELECT pamhyr_id, ind, deleted, " +
|
||||
"name, x, y, z, sl, scenario " +
|
||||
"FROM geometry_pointXYZ " +
|
||||
f"WHERE profile = {profile.pamhyr_id} " +
|
||||
@@ -188,6 +188,7 @@ class PointXYZ(Point):
|
||||
it = iter(row)
|
||||
|
||||
pid = next(it)
|
||||
ind = next(it)
|
||||
deleted = (next(it) == 1)
|
||||
name = next(it)
|
||||
x = next(it)
|
||||
@@ -218,7 +219,7 @@ class PointXYZ(Point):
|
||||
)
|
||||
|
||||
loaded.add(pid)
|
||||
new.append(point)
|
||||
new.append((ind, point))
|
||||
|
||||
data["scenario"] = scenario.parent
|
||||
new += cls._db_load(execute, data)
|
||||
|
||||
Reference in new issue
Block a user