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

OS Python API Wrapper #26

Open
jnightingale99 opened this issue Nov 28, 2023 · 1 comment
Open

OS Python API Wrapper #26

jnightingale99 opened this issue Nov 28, 2023 · 1 comment

Comments

@jnightingale99
Copy link

Hello,
I'm trying to get setup with the weighted-shortest-path tutorial and receiving and error from the OS API Wrapper stating it can't currently handle multiline strings. Full error message below:

Exception has occurred: Exception Currently unable to handle multilinestrings. data = wfs_api.get_all_features_within_bbox(type_name="Highways_RoadLink", bbox="50.958859,-0.831871, 51.025201,-0.6667327", srs='EPSG:4326', allow_premium=True) Exception: Currently unable to handle multilinestrings.

Do you know what is wrong with my request to the wrapper? I've double checked the args are the same as in the tutorial.

Thank you

@tmnnrs
Copy link
Collaborator

tmnnrs commented Nov 28, 2023

Hi @jnightingale99. We are currently reviewing the contents of this repo with an eye to archive the content in favour of hosting the guidance via our new More than Maps platform.

In this instance the error will mostly likely be down to the fact that the notebook is referencing [OS-PAW]...(https://pypi.org/project/os-paw/) which has since been superseded by the osdatahub project.

osdatahub is a maintained project which (like OS-PAW) makes it easier to interact with OS data via the OS Data Hub APIs.

You can query the Highways_RoadLink feature type using the geographic extent methodology described in https://pypi.org/project/osdatahub/#features-api; and use the GeoJSON response as the input for the GeoDataFrame and subsequent NetworkX routing analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants