Check if node has coordinate
This commit is contained in:
@@ -28,6 +28,10 @@ def get_node_coord(name: str, node: str) -> dict[str, float]:
|
|||||||
return from_postgis_point(row['coord_geom'])
|
return from_postgis_point(row['coord_geom'])
|
||||||
|
|
||||||
|
|
||||||
|
def node_has_coord(name: str, node: str) -> bool:
|
||||||
|
return try_read(name, f"select node from coordinates where node = '{node}'") != None
|
||||||
|
|
||||||
|
|
||||||
#--------------------------------------------------------------
|
#--------------------------------------------------------------
|
||||||
# [EPA2][EPA3][IN][OUT]
|
# [EPA2][EPA3][IN][OUT]
|
||||||
# id x y
|
# id x y
|
||||||
|
|||||||
Reference in New Issue
Block a user