tannerjt / AGStoShapefile

Convert ArcGIS Server Dynamic Map Service to GeoJSON and Shapefile
MIT License
213 stars 47 forks source link

module ogr2ogr not found, tried npm install but got errors #10

Closed khblaw closed 8 years ago

khblaw commented 8 years ago

I tried the suggestion in the closed issue, but get these errors below. Also, when I type ogr2ogr in windows command line it recognizes it. I've also a gist containing the debug log. error

https://gist.github.com/kflaw/3110e46bb9dc2ebc5b66331f96cc1505

tannerjt commented 8 years ago

You may want to try upgrading node on your windows machine See documentation

khblaw commented 8 years ago

Thanks for the reply. I tried to update on windows but still am not having luck. Will need to get back to that. I'm now trying on a mac, and have gotten a little further but now am getting this error:

screen shot 2016-06-20 at 4 47 16 pm
tannerjt commented 8 years ago

I just made an update that will fix this particular error, but maybe not the underlying problem. Can you do a git pull origin master and try running again. Also, can you provide the URL to the ArcGIS REST Service? If you are specifically trying to get GeoJSON, you might also look at this library Esri-dump

khblaw commented 8 years ago

Thanks for that, I just tried again and am now getting a different error. I will check out the other library you suggested.

screen shot 2016-06-20 at 5 30 11 pm
khblaw commented 8 years ago

also here is a link to the service layer I'm tried to get

https://gisrevprxy.seattle.gov/ArcGIS/rest/services/SDOT_EXT/sdot_parking/MapServer/5

tannerjt commented 8 years ago

should be fixed now.

pbrooke commented 8 years ago

Thanks so much, this is an amazing script in every way!. I had this problem initially. What I did to get past it was to use the npm install command for each module the script uses. IE "npm install ogr2ogr". Works amazingly! Thanks again.

tannerjt commented 8 years ago

Thanks for posting this, and I'm glad it works well and is helpful for you. I'll keep updating as I get time.