Closed andrewjtimmons closed 9 years ago
spawn ENOENT
would indicate that it couldn't find the ogr2ogr
command in your PATH
, does it need to be added?
Hey Mark,
Thanks for the fast reply.
This page
https://sites.google.com/site/eospansite/installinggdalonmacosx
had this step and I put it in the command line.
export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH
Is that the proper path or should I be using something else?
Cheers
Hmm.. I typically use Docker when running on the Mac. When you type ogr2ogr
on the command line is the command found? If not, locate the command in the project and add that to your PATH
.
ogr2ogr produces this
$ ogr2ogr
Usage: ogr2ogr [--help-general] [-skipfailures] [-append] [-update]
[-select field_list] [-where restricted_where]
[-progress] [-sql
So it seems to be there?
OK, that looks good, donno what's going on then. How are you running ogre? Are you running it as a super user?
I did ogre -p 3000 -t 1500000
I don't believe so. I can try running it with sudo when I get home later this evening.
I will try using a smaller shapefile that worked on your website interface as well just to ensure that my huge file is not somehow causing the issue.
Sudo fixed the issue on the small file for connecting to the ogr2ogr PATH. Thanks!
Hello,
Thank you for making this! It is awesome.
I am trying to convert a 130mb shapefile to JSON.
I npm installed ogre
I installed gdal with these instructions, including the set path step. https://sites.google.com/site/eospansite/installinggdalonmacosx
I read the other issue about enoent and path.
When I try to convert on localhost with a timeout of 1500000 I almost immediately get the error { errors: [ "Error: spawn ENOENT" ] }
Do you have any advice on what I should do?
Best, Andy