Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for shapely 2.x #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions peartree/synthetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ def generate_meter_projected_chunks(
# Take chunks and merge in the small lines
# from intersection inside of the buffered circles
# and attach to nearest larger line
clean_chunks = [chunks[0]]
r = len(chunks)
clean_chunks = [chunks.geoms[0]]
r = len(chunks.geoms)
for c in range(1, r):
latest = clean_chunks[-1]
current = chunks[c]
current = chunks.geoms[c]
# Again, this is a week point of the buffer of
# 1 meter method
if latest.length <= 2:
Expand Down Expand Up @@ -210,7 +210,7 @@ def generate_stop_points(chunks: List[LineString]) -> List[Point]:
ap_ma_reproj = transform(project, ap_ma) # apply projection

# Final step will be to pull out all points back into a list
return [p for p in ap_ma_reproj]
return [p for p in ap_ma_reproj.geoms]


def generate_stop_ids(stops_count: int) -> List[str]:
Expand Down