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

The tool can't download the OSM #134

Open
MyronBedford opened this issue May 28, 2024 · 6 comments
Open

The tool can't download the OSM #134

MyronBedford opened this issue May 28, 2024 · 6 comments

Comments

@MyronBedford
Copy link

For some reason, the OSM isn't downloading when processing lidar. The course view will pop up for you to select the amount of lidar you want and the OSM won't be overlayed. I did get an error once that said that the OSM can't be downloaded but I'm not getting that error anymore. I'll go through the process and then the course preview will have nothing.

The one error I am getting is this:
Exception in Tkinter callback
Traceback (most recent call last):
File "tkinter_init_.py", line 1705, in call
File "tgc_gui.py", line 547, in generateCourseFromLidar
File "tgc_image_terrain.py", line 246, in generate_course
File "tgc_image_terrain.py", line 119, in get_lidar_trees
File "GeoPointCloud.py", line 230, in projToCV2
File "GeoPointCloud.py", line 198, in enuToCV2
ValueError: cannot convert float NaN to integer
Now I don't know whether this is a completely different issue, (I like to use the trees from the lidar because they're more accurate.)
or whether it's part of the OSM gongshow but this also appears sometimes. While it's creating the course preview.

@chadrockey
Copy link
Owner

@MyronBedford check the areas of the course, it looks like there might be a waypoint without a coordinate.

says you’re getting a NaN in a calculation, so it’s likely a point like 0,0 snuck in

@MyronBedford
Copy link
Author

How and where would I do that?

@chadrockey
Copy link
Owner

chadrockey commented May 29, 2024 via email

@MyronBedford
Copy link
Author

The course is Kelowna Golf and country club

@MyronBedford
Copy link
Author

I tried going back through and checking every individual point and line. Would there be a problem with points that aren't disconnected from each other?
When I'm loading Lidar it gives me this before the outline.

Adding golf features to lidar data
OpenStreetMap Overpass query: (node(nan,132.9671996917034,nan,133.25691928702742);way(nan,132.9671996917034,nan,133.25691928702742););out;
OpenStreetMap servers are too busy right now. Try running this tool later.
OpenStreetMap download failed. You won't see helpful OSM outlines or drawings on your preview or mask.
Mapquest Image URL Request: https://www.mapquestapi.com/staticmap/v5/map?key=MAPQUEST_API_KEY&scalebar=true&format=png&center=nan,133.11171883879825&type=hyb&zoom=16&size=1500,963
Could not get sat preview: HTTP Error 401: Unauthorized

@MyronBedford
Copy link
Author

The OSM won't download even now. It keeps coming up with this error:
OpenStreetMap Overpass query: (node(nan,132.9671996917034,nan,133.25691928702742);way(nan,132.9671996917034,nan,133.25691928702742););out;
OpenStreetMap servers are too busy right now. Try running this tool later.
OpenStreetMap download failed. You won't see helpful OSM outlines or drawings on your preview or mask.
Mapquest Image URL Request: https://www.mapquestapi.com/staticmap/v5/map?key=MAPQUEST_API_KEY&scalebar=true&format=png&center=nan,133.11171883879825&type=hyb&zoom=16&size=1500,963
Could not get sat preview: HTTP Error 401: Unauthorized

Even when the OSM servers are obviously not busy, I can't get into them when they are.

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