GeoscienceAustralia / BAL

Bushfire Attack Level Toolbox - An ESRI ArcGIS toolbox to calculate severity of exposure to bushfire attack
http://geoscienceaustralia.github.io/BAL
Apache License 2.0
6 stars 5 forks source link

Input datasets must be in same folder #6

Closed wcarthur closed 7 years ago

wcarthur commented 7 years ago

Input DEM and classified vegetation raster layers must be in the same directory. This is documented, but it would be easier to remove this dependency on the location of the input data.

Traceback generated when DEM and vegetation data are in different directories:


  File "C:\WorkSpace\bal\bal.py", line 370, in <module>
    run()
  File "C:\WorkSpace\bal\bal.py", line 356, in run
    mask = find_aoi(extent, dem, veg)
  File "C:\WorkSpace\bal\bal.py", line 308, in find_aoi
    arcpy.Intersect_analysis([dem_poly, veg_poly], mask)
  File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\analysis.py", line 317, in Intersect
    raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Features: Dataset dem_poly.shp #;C:\WorkSpace\bal\examples\input\veg_poly.shp # does not exist or is not supported
Failed to execute (Intersect).

Failed to execute (BAL).
wcarthur commented 7 years ago

Resolved in #7