aliaksei135 / seedpod_ground_risk

Ground Risk model for UAS flight path analysis and risk-aware path finding
MIT License
6 stars 2 forks source link

Pathfinding layer generation error #62

Closed aliaksei135 closed 3 years ago

aliaksei135 commented 3 years ago

When adding a path layer on top of a risk layer, generation results in a following error:

Traceback (most recent call last):
  File "seedpod_ground_risk\core\plot_server.py", line 213, in compose_overlay_plot
  File "<__array_function__ internals>", line 5, in flipud
  File "numpy\lib\twodim_base.py", line 148, in flipud
ValueError: Input must be >= 1-d.
Input must be >= 1-d.

Looks like this isn't anything to do with layer itself, but the plot server not being able to handle it.

Zach10a commented 3 years ago

I've been tracking this down and it appears that the issue comes from line 213 in plot_server.py. raster_grid appears not to be producing anything in some situations.

aliaksei135 commented 3 years ago

The usual cause for that is an OSM query failing and it returning a null. I'll close this as a duplicate of #61 in that case and we can reopen if it keeps occurring after #61 is fixed.