Python scripts execution

3003
2
10-22-2013 05:39 AM
Cristian_Galindo
Occasional Contributor III
DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far�?�

I am facing a quite interesting requirement: "run python scripts whitin an ArcGIS Runtime app".

checking the concepts in the ArcGIS Resources for ArcGIS Runtime SDK for WPF i can read:

Geoprocessing in the runtime provides you with a framework for answering your GIS questions. The API works with geoprocessing though geoprocessing service tasks. These tasks are either hosted online, through an ArcGIS Server, or can be hosted locally, by providing the local server with a runtime enabled geoprocessing package (GPK).

Geoprocessing services can host one or more tasks, which come from a tool, script, or model, authored in ArcGIS for Desktop and then published to ArcGIS for Server or packaged as a geoprocessing package


but also I can read the following statement
Not all geoprocessing tools or functionality are supported in the runtime local server. Please see the supported geoprocessing tools list.


a few lines after is the next statement:
Python scripts

Python is an open-source, general-purpose programming language used as a scripting language in ArcGIS geoprocessing. Python scripts can be shared for use with the runtime as geoprocessing packages. Scripts can be turned into script tools, and then packaged into a geoprocessing package. The ArcGIS Runtime contains its own imbedded Python


I understand that I can run python scripts using the geoprocessing packages, but not all the functionality that I can get from ArcPy library is available, Am I wrong?

is there a known workaround that allows to run python scripts? (with out using ArcObjects, just ArcGIS Runtime)
0 Kudos
2 Replies
by Anonymous User
Not applicable
MichaelBranscomb
Esri Frequent Contributor

Hi,

You can use the ArcGIS Runtime LocalServer to execute Python scripts - see the following articles for more info:

Work with local services—ArcGIS Runtime SDK for .NET | ArcGIS for Developers 

What is a geoprocessing package?—Sharing geoprocessing workflows | ArcGIS for Desktop 

Those articles relate to the current ArcGIS Runtime SDK for .NET (ArcGIS Runtime SDK for .Net | ArcGIS for Developers ) 

Regarding ArcGIS Runtime SDK for WPF: On July 1, 2016, ArcGIS Runtime SDK for WPF entered the retired phase of its product life cycle. There will be no further updates to the product or its documentation. We recommend you explore WPF solutions based on the ArcGIS Runtime SDK for .NET.  See this blog post for information on transitioning to the ArcGIS Runtime SDK for .NET.  

Cheers

Mike

0 Kudos