Skip to content

Commit 887dc72

Browse files
authored
Merge pull request #6 from fabanc/issue-5
Updated set-up documentation
2 parents eed691d + 9cff20a commit 887dc72

File tree

8 files changed

+52
-6
lines changed

8 files changed

+52
-6
lines changed

README.md

Lines changed: 52 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# arcgis-plus-code-generator
1+
# ArcGIS Pro Plus Code Generator
22

33

44
# Description
@@ -11,20 +11,66 @@ This tool is a side effect of a project I have done for work. I have explored di
1111

1212
# System Requirements
1313

14-
This tool is developed and tested for ArcGIS Pro. I have tested for ArcGIS Pro 2.7.
14+
This tool is developed and tested for ArcGIS Pro. I have tested for ArcGIS Pro 2.7. Your python environment must be of 3.x (tested with 3.7, but I assume it works with 3.6 too).
1515

16-
Your python environment must be of 3.x (tested with 3.7, but I assume it works with 3.6 too).
16+
The open location code library for Python must be installed in your python environment. The next section will explain how to do that.
1717

18-
The open location code library for Python must be installed in your python environment. In short
19-
`pip install openlocationcode`. For detailed instructions: https://github.com/google/open-location-code/tree/master/python
18+
# How to install
19+
20+
## Clone your Python Environment
21+
22+
Open ArcGIS Pro, and bring up the menu. That will let you access your Python options, and create a new Python environment. We need that since we need to install the open location code API, and that won't be allowed in ArcGIS Pro's default environment.
23+
- Open ArcGIS Pro
24+
- Open the menu on the left ribbon
25+
- Go to the Python section of the menu.
26+
- Click on manage environment
27+
- Clone your default environment. Give it a meaningful name and location. In my case, I am storing my custom ArcGIS Pro environment on `D:\arcgis-pro-envs`. The name of my environment is : `arcgispro-py3-plus-code`
28+
29+
![Cloning](images/clone-environment.png)
30+
31+
Once cloning is over, select your new environment as your default environment when you want to use our tool. You will need to restart ArcGIS Pro.
32+
33+
![SelectEnvironemnt](images/select-python-environment.png)
34+
35+
36+
## Install the open location code API
37+
38+
Open a command line prompt, and use the `cd` command to navigate in the subdirectory of your newly created environment. In my case: `D:\arcgis-pro-envs\arcgispro-py3-plus-code\Scripts`. Then run the following command line:
39+
40+
`pip install openlocationcode`.
41+
42+
Once it is done, the command line should look like that.
43+
44+
![pip](images/pip-install.png)
45+
46+
For more instructions about the open location code API, go to: https://github.com/google/open-location-code/tree/master/python
47+
48+
# Creating a folder connection to the tool:
49+
50+
Create a folder connection, as per the screenshot below, and navigate where you have downloaded and extracted the tool.
51+
52+
![pip](images/folder-connection.png)
53+
54+
You will then be able to access the tool
55+
56+
![pip](images/folder-connection-2.png)
2057

2158
# How to use
2259

2360
Use the tool box in ArcGIS Pro. There is built-in help in the tool metadata, and the tool is configured to guide you and minimize input errors.
2461

62+
In order to use the tool, double click on the tool `Get Plus Code`
63+
64+
![pip](images/use-tools.png)
65+
66+
The tool with then guide you through the list of parameters to provide:
67+
68+
![pip](images/parameters.png)
69+
70+
71+
2572
# How to contribute
2673

27-
This tool has been done in rush. Though is works, it does not match my standards or the industry standards in terms of unit testing or documentation.
2874
If you want to help, or have any suggestion, log an issue, and a pull request if you feel bold enough. Just remember to be nice.
2975

3076
# Data Considerations

images/clone-environment.png

130 KB
Loading

images/folder-connection-2.png

29.9 KB
Loading

images/folder-connection.png

547 KB
Loading

images/parameters.png

13.4 KB
Loading

images/pip-install.png

21.4 KB
Loading
113 KB
Loading

images/use-tools.png

29.2 KB
Loading

0 commit comments

Comments
 (0)