Return points from gis_pipe
This commit is contained in:
@@ -75,8 +75,7 @@ def get_pipe_risk_probability_geometries(name: str) -> dict[str, Any]:
|
|||||||
geom = json.loads(record[key_geometry])
|
geom = json.loads(record[key_geometry])
|
||||||
|
|
||||||
pipe_risk_probability_geometries[id] = {
|
pipe_risk_probability_geometries[id] = {
|
||||||
'start': geom['coordinates'][0],
|
'points': geom['coordinates']
|
||||||
'end': geom['coordinates'][1]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for col in record:
|
for col in record:
|
||||||
|
|||||||
Reference in New Issue
Block a user