Comments (4)
Hmm, it might be that the code for checking if pip is installed isn't working correctly. Can you access pip from the command line? What happens if you enter the command pip --version
?
If that works, then could you please try running the command make all
in the command prompt with the working directory set to the global-protected-areas
directory? This will bypass the potentially faulty installation checks in the .bat file.
from global-protected-areas.
Ok looks like pip
was installed correctly, and the version pops up no problem when I run pip --version
.
Running make all
does work in that the files downloaded and the cleaning process began. However I then had some new errors - first a good old error 999999 on RepairGeometry, and then Out of Memory error 000426 on SimplifyPolygon. Not sure how to deal with those. Maybe I need to split the data & run separately?
Full output here:
C:\Users\rsenior\Documents\global-protected-areas-master>make all
downloading data
100% [....................................................................] 1359539595 / 1359539595extracting polygon data
repairing polygon data
Traceback (most recent call last):
File "code/python/repair-geometry.py", line 18, in
arcpy.RepairGeometry_management(sys.argv[1])
File "C:\Program Files (x86)\ArcGIS\Desktop10.7\ArcPy\arcpy\management.py", line 3049, in RepairGeometry
raise e
arcgisscripting.ExecuteError: ERROR 999999: Error executing function.
Failed to execute (RepairGeometry).
make: *** [Makefile:143: data/intermediate/1/WDPA_shapefile_polygons.gdb] Error 1
C:\Users\rsenior\Documents\global-protected-areas-master>make all
omitting invalid areas from polygon data
reprojecting polygon data to output coordinate system
simplifying polygon data
Traceback (most recent call last):
File "code/python/simplify.py", line 22, in
simplify_params['error_option'], simplify_params['collapsed_point_option']
File "C:\Program Files (x86)\ArcGIS\Desktop10.7\ArcPy\arcpy\cartography.py", line 1564, in SimplifyPolygon
raise e
arcgisscripting.ExecuteError: ERROR 000426: Out Of Memory
Failed to execute (SimplifyPolygon).
make: *** [Makefile:90: data/intermediate/4/WDPA_shapefile_polygons.gdb] Error 1
from global-protected-areas.
Ok, I'm sorry I don't know if I can be much more help. I haven't encountered those errors before when running the code. Is it possible the issue with the repair geometry tool is because I'm running an earlier version of ArcMap (version 10.3)? Also, could the out of memory error be due to differences in the amount of RAM on our systems (my system 16 GB RAM)? In terms of addressing these issue, if you manually open the data in the global-protected-areas/intermediate/1
folder, you can manually inspect the WDPA data in the geodatabase and rerun the repair geometry tool in ArcMap. After that, you could delete the subsequent intermediate directories (i.e. folders named 2 and greater) and try running make all
again and see if that fixes it?
from global-protected-areas.
Thanks for your help and suggestions. To update, I have no idea why SimplifyPolygon kept running into the out of memory error (I also have 16 GB RAM), but I did manage to simplify the polygons in R
instead. From there I manually went through each line in Makefile
, with two additional but fixable problems:
- Dissolve would not work initially because of invalid geometries, so inside the for loop of
dissolve_each.py
I again had to run RepairGeometry, prior to the dissolve - Within
remove_slivers.py
, Eliminate would throw an error 999998. As suggested here, it runs successfully if run in the foreground of ArcMap
Everything else worked perfectly, and I've been able to complete all the steps. Hooray!
from global-protected-areas.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from global-protected-areas.