Refine
This commit is contained in:
@@ -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'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user