You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+52-6Lines changed: 52 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# arcgis-plus-code-generator
1
+
# ArcGIS Pro Plus Code Generator
2
2
3
3
4
4
# Description
@@ -11,20 +11,66 @@ This tool is a side effect of a project I have done for work. I have explored di
11
11
12
12
# System Requirements
13
13
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).
15
15
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.
17
17
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
+

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.
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
+

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
+

53
+
54
+
You will then be able to access the tool
55
+
56
+

20
57
21
58
# How to use
22
59
23
60
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.
24
61
62
+
In order to use the tool, double click on the tool `Get Plus Code`
63
+
64
+

65
+
66
+
The tool with then guide you through the list of parameters to provide:
67
+
68
+

69
+
70
+
71
+
25
72
# How to contribute
26
73
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.
28
74
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.
0 commit comments