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

"No objects to concatenate" error from Roadway.create_roadway_network_from_extracts() #2

Closed
BYerraWSP opened this issue Dec 21, 2021 · 4 comments

Comments

@BYerraWSP
Copy link

Step #3 in the Ranch-Demo notebook is giving a "No objects to concatenate" error. Step #3 calls Roadway.create_roadway_network_from_extracts(). I believe the issue is while executing the function call to "extract_osm_link_from_shst_extraction". [Previous step of extracting SharedStreet and osmnx were successful.]

@i-am-sijia
Copy link
Collaborator

I would first check the sharedstreets extraction output files located at 'shst_extract_dir' defined in the notebook, like the output geojson file, see if it makes sense.

@yueshuaing
Copy link
Collaborator

The read_shst_extraction(shst_extract_dir, "*.out.geojson") function is reading any files end with '.out.geojson' in 'shst_extract_dir', but my 'shst_extract_dir' only has one file named 'boundary.0.geojson' after running step1.
Based on the Ranch-Demo.ipynb, seems that the 'shst_extract_dir' should have two files extract.boundary.0.out.geojson and out.out.geojson
That's probably the reason why it got nothing to concatenate

@i-am-sijia
Copy link
Collaborator

Thanks @yueshuaing. boundary.x.geojson is the input geojson to shst extract command. So it sounds like the shst extraction was unsuccessful for you. Can you try the following:

Open command line prompt, run the following (replace /d with the path to your run folder, so the /usr/node folder on the linux machine is mounted to your run folder):
docker run -it --rm -v /d:/usr/node/ shst:latest /bin/bash

You should see a container running in command line, and then run shst extraction by the following (replace the 'data/external/sharedstreets_extract' string with your folder setting):
shst extract usr/node/data/external/sharedstreets_extract/boundary.0.geojson --out=usr/node/data/external/sharedstreets_extract/boundary.0.out.geojson --metadata --tile-hierarchy=8 --tiles

This way you can monitor what's going on inside of the container when executing shst extraction. I suspect you would get some error.

@i-am-sijia
Copy link
Collaborator

If shst extraction is successful, you should see files like below:

  • extract.boundary.0.out.geojson: this is the output file of links from shst extraction
  • extract.boundary.0.tiles.txt: this is the log file of osm tiles used in shst extraction
  • boundary.0.geojson: this is the input file to shst extraction command

image

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

3 participants