-
Notifications
You must be signed in to change notification settings - Fork 20
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
Error: ENOENT: no such file or directory, open '[...]/data/N44E001.hgt' #16
Comments
Hi! |
Ok no problem anyway i cloned the node-hgt into my project instead of installing with npm, I made some changes, I used geojson-elevation (it fixed the error above) and I had another error about zip unlinking (file not found) so I made a quick modification to imagico.js, replacing this line : fs.unlinkSync(tempPath); by : if (fs.existsSync(tempPath)) {
fs.unlinkSync(tempPath);
} It works pretty well in my case now. |
Hi, I am using osm-slope tool, you have done a great work, thanks you. I have the same error using osm-slope (node-hgt). **events.js:141 Error: ENOENT: no such file or directory, open 'data/N40E000.hgt' 'data/N40E000.hgt' --> Depending on wich map I am using. Is there any solution ? Can I download all .hgt file on my computer and search directly from there? Thanks for your time. |
@carles3 hi, great to hear that you're finding the module useful! I can't say for certain, but I would suspect it will work if you already have the hgt file in the correct location, since it's most likely some kind of race when getting/unpacking the ZIP file. |
I have already the file .hgt but the error is the same.
|
@carles3 not sure then, sounds very weird that you would get "no such file or directory" if the file is there. I would recommend stepping through the code to actually see where it's looking and why it goes wrong. |
Hi, and first of all great work for this module 👍
It looks like SyncTileSet is not waiting the end of file writing before calling callback, I got the error bellow, though after a while I got the specified file in my data directory at absolute path specified in the error. My code runs with values which lead to the creation of about 40 .hgt files. By the way when I execute it a second time everything is ok because .hgt files are already in data directory.
my code :
The text was updated successfully, but these errors were encountered: