Running geoprocessing tools in ArcGIS Python API

707
6
Jump to solution
03-17-2022 02:54 PM
MichaelWen_Timmons
New Contributor III

Is there any way I can run these geoprocessing tools in ArcGIS Python API, like on a Notebook? 

arcpy.md.BuildMultidimensionalInfo

arcpy.management.CopyRaster

arcpy.management.AddRastersToMosaicDataset

 

0 Kudos
1 Solution

Accepted Solutions
AzinSharaf
Occasional Contributor II

arcpy functions are not available in ArcGIS API for Python. If you get Notebook Server (Advanced edition I think), you would get both Arcpy and Python API on your notebooks.

View solution in original post

6 Replies
DanPatterson
MVP Esteemed Contributor

Did you try them in a notebook in Pro?

You can import arcpy and its tools in Jupyter notebooks


... sort of retired...
0 Kudos
MichaelWen_Timmons
New Contributor III

They work in Pro. I'd prefer to run them in a Jupyter Notebook on AGOL or in an Azure function.

0 Kudos
AzinSharaf
Occasional Contributor II

arcpy functions are not available in ArcGIS API for Python. If you get Notebook Server (Advanced edition I think), you would get both Arcpy and Python API on your notebooks.

DanPatterson
MVP Esteemed Contributor

Jupyter Notebook

JupyterLab

Jupyter QT console

all work for me

arcpy.png

the api either uses arcpy or shapely for geometry stuff.  If arcpy is installed it can be imported.  You just need a valid version of Pro


... sort of retired...
0 Kudos
AzinSharaf
Occasional Contributor II

it seems Michael wants to run it in AGOL or in an Azure function. 

0 Kudos
DanPatterson
MVP Esteemed Contributor

well it isn't a python question so I will move it to

  • ArcGIS API for Python Questions

until it is clarified


... sort of retired...
0 Kudos