This repository houses an application designed to survey rural transport routes. It leverages the capabilities of ArcPy to create optimized routes based on various geographic and logistic parameters.
To run the code, you need to have ArcPy installed. ArcPy is essential for performing geographic data analysis and creating routes. Follow the instructions in requirements.txt to set up ArcPy on your computer.
Download and install Anaconda from the following link: Anaconda Download
ArcPy requires Python 3.9 or 3.10, not higher. Follow these instructions to install Python 3.9 with Conda: How to Install Python 3.9 with Conda
After setting up Anaconda and Python, install ArcPy using the Anaconda prompt. Note that ArcGIS Pro must be installed on your computer.
Open Anaconda prompt and type the following command:
conda install arcpy=3.1 -c esri
To execute the Python scripts, use the propy.bat
file provided by ArcGIS Pro. Replace *path*.py
with the path to your script.
c:\Progra~1\ArcGIS\Pro\bin\Python\scripts\propy.bat *path*.py