blast2dem error: "The system cannot find the path specified."

877 views
Skip to first unread message

Mike Gleason

unread,
Jan 31, 2012, 4:35:05 PM1/31/12
to LAStools - efficient tools for LIDAR processing
I just started using LAStools last night, but got the hang of some of
the simpler tools like txt2las, las2las, etc. Unfortunately, now I'm
hung up on using blast2dem.

blast2dem seems to work fine for me from the GUI, but when I try to
run it from the command line, I get the error: "The system cannot find
the path specified."

I am working on Windows 64 bit, have stored the lastools directory at
the C level, and edited the Windows PATH environment variable to
include "C:\lastools\bin" as well as "C:\lastools\bin\blast".

After setting the working directory using the cd command, I have tried
all of the following at the command line without success:
blast2dem -i SP1_to_SP8_UTM.las -o dem.asc
blast2dem -i SP1_to_SP8_UTM.las -oasc
blast2dem -i "SP1_to_SP8_UTM.las" -oasc
blast2dem -i C:\lidar\SP1_to_SP8_UTM.las -oasc
blast2dem -i "C:\lidar\SP1_to_SP8_UTM.las" -oasc

I have also copied the exact command used successfully by the
blast2dem GUI and still had no success. My sense is that the issue
isn't an inability to find the input file, but rather an inability for
blast2dem to find some path related to the source code.

Has anyone else encountered this? Or does anyone have any suggestions?

Martin Isenburg

unread,
Feb 10, 2012, 7:18:02 AM2/10/12
to LAStools - efficient tools for LIDAR processing
Hello,

> blast2dem seems to work fine for me from the GUI, but when I try to
> run it from the command line, I get the error: "The system cannot find
> the path specified."
> I am working on Windows 64 bit, have stored the lastools directory at
> the C level, and edited the Windows PATH environment variable to
> include "C:\lastools\bin" as well as "C:\lastools\bin\blast".
>
> After setting the working directory using the cd command, I have tried
> all of the following at the command line without success:
> blast2dem -i SP1_to_SP8_UTM.las -o dem.asc
> blast2dem -i C:\lidar\SP1_to_SP8_UTM.las -oasc

in the last version there was an issue with blast2dem that occurred
when the Windows PATH environment variable was set and the tools was
called from elsewhere without an absolute or a relative directory
path. I had emailed Mike earlier that all he needed to do was start
the tool with the full path when working in the command line, for
example:

C:\lastools\bin\blast2dem -i SP1_to_SP8_UTM.las -o dem.asc

However, this issue was fixed in the 120209 version and now you can
set the Windows PATH environment variable to include "C:\lastools\bin"
and run lastools from whichever directory you are in without using the
full path.

Cheers,

Martin
Reply all
Reply to author
Forward
0 new messages