-
updateFromKML.py is for appending new KML point data to point feature classes and layers. It applies the following methods to an open ArcGIS Pro project:
- removeExisting() - Removes intermediate data from input
- kmlToFC() - Converts KML file to appropriately projected feature class (FC)
- appendTo() - Appends the new FC to a master FC
- appendToFL() - Appends the new FC to the correct Feature Layer/Service in an ArcGIS Online (AGOL) website
-
exportToPDF.py is a script tool that exports all of the layouts from your ArcGIS Pro project into PDFs.
updateFromKML.py
- Create a config.py file in the same working directory as this project. The config.py file was not included in this repo to protect privacy. Create a dictionary for the variables defined in the script. A single dictionary should exist per method. Confirm that the data paths specified as variables are correct. The shallower the data paths, the better this script will run.
- Open an ArcGIS Pro project with the appropriately named map containing the correct point Feature Layer to append to.
- Run the script from a Python window inside the open ArcGIS Pro project.
- Notes:
- Make sure the correct Python interpreter is used if running from an IDE. The interpreter used here "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe").
- This where the GeoProcessing history is saved. The tools' run results are written here: "C:\Users\User\AppData\Roaming\Esri\ArcGISPro\ArcToolbox\History"
exportToPDF.py
- Create a script tool, assigning the script path and the figFolder string parameter as a Folder data type. Documentation is here: https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/create-a-python-script-tool.htm.
- Run the script tool to export all of your open Project's Layouts.