Skip to content

Utilities and sample scripts for the Run Python Script GeoAnalytics tool

Notifications You must be signed in to change notification settings

noahslocum/RunPythonScript-Samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Run Python Script - Samples

Utilities and sample scripts for the Run Python Script GeoAnalytics Server tool

For an overview of Run Python Script, check out this blog post

SubmitRPSJob.py uses the ArcGIS API for Python to submit a script to the Run Python Script tool on your GeoAnalytics Server. The utility can be used in command line (python SubmitRPSJob.py -portal https://mydomain.com/portal -username analyst1 -password ilovegis -script C:\workflow1.py) or in the Python console:

from SubmitRPSJob import submit
submit(portal_url="https://mydomain.com/portal",username="analyst1", password="ilovegis", script_path=r"C:\workflow1.py")

The scripts folder contains sample python scripts demonstrating functionality included with Run Python Script:

  • read-into-df.py - create Spark DataFrames from ArcGIS Enterprise layers
  • write-to-webgis.py - write a Spark DataFrame to an ArcGIS Enterprise layer
  • run-ga-tools.py - chain GeoAnalytics tools into an analysis pipeline
  • es-connect.py - read data from outside of ArcGIS Enterprise with pyspark
  • s3-connect.py - write data outside of ArcGIS Enterprise with pyspark

Other Resources:

About

Utilities and sample scripts for the Run Python Script GeoAnalytics tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages