Start region work
This commit is contained in:
@@ -24,7 +24,7 @@ def get_node_coord(name: str, id: str) -> dict[str, float]:
|
||||
def inp_in_coord(line: str) -> str:
|
||||
tokens = line.split()
|
||||
node = tokens[0]
|
||||
coord = f"'({tokens[1]}, {tokens[2]})'"
|
||||
coord = f"st_geomfromtext('point({tokens[1]} {tokens[2]})')"
|
||||
return f"insert into coordinates (node, coord) values ('{node}', {coord});"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user