Skip to content

Commit f6f68fd

Browse files
authored
fix conversion from position to point (#30)
1 parent d27a79b commit f6f68fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tasi/utils/geo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def position_to_point(df: pd.DataFrame, position: Any) -> Union[Point, MultiPoin
2323
"""
2424
df = df.sort_index(axis=1)
2525

26-
values = df[position]
26+
values = df[position][["easting", "northing"]]
2727

2828
# get the flatten columns (remove empty levels)
2929
flat_columns = flatten_index(values.columns)

0 commit comments

Comments
 (0)