This commit is contained in:
DingZQ
2025-04-19 12:19:37 +08:00
parent 734c1b61c4
commit f7b33904c7

View File

@@ -58,7 +58,7 @@ def get_pipe_risk_probability_geometries(name: str) -> dict[str, Any]:
pipe_risk_probability_geometries = {}
with conn[name].cursor(row_factory=dict_row) as cur:
cur.execute(f"select ST_AsGeoJSON(geometry) AS geometry")
cur.execute(f"select ST_AsGeoJSON(geometry) AS geometry from gis_pipe")
for record in cur:
print(record['geometry'])