This commit is contained in:
DingZQ
2025-04-19 12:35:05 +08:00
parent 9f7e26905e
commit 3afcb678e5

View File

@@ -66,7 +66,7 @@ def get_pipe_risk_probability_geometries(name: str) -> dict[str, Any]:
cur.execute(f"select {key_pipeId}, ST_AsGeoJSON(geometry) AS {key_geometry} from gis_pipe")
for record in cur:
id = record[key_pipeId]
geom = record[key_geometry]
geom = json.loads(record[key_geometry])
print(geom)
print(geom['coordinates'])