Summary
The 2.4.1 Release contains changes that continue to build upon the Jupyter Lab and Notebook 7.0 architecture changes implemented at 2.4.0.
These modifications change how some familiar functionality is accessed, and provides some new ways to work with your Web GIS organization. Let's take a look at some of these new updates.
Primary Python Support is for version 3.11. Secondary support is provided for Python 3.10 and 3.12. We have dropped Support for Python 3.9.
Note: The ArcGIS API for Python 2.4.1 release is supported with:
- ArcGIS Pro 3.5 and later default and cloned environments
- ArcGIS Enterprise 11.4 and later
- Stand-alone conda and Python environments
New processing option: Spatially Enabled DataFrame
We've provided an environment variable called ARCGIS_GEOMETRY_ENGINE that allows you to explicitly set the library used for certain spatial spatial transformations, such as reading and/or writing of shapefiles and file geodatabases. See the API Reference for the GeoAccessor for details. Methods to which this processing applies are noted in the Reference documentation.
You can set the processing environment at the top a document with:
import os
os.environ["ARCGIS_GEOMETRY_ENGINE"] = "Engine_of_Choice"
New class: arcgis.gis.OfflineContentManager
The new OfflineContentManager
provides functionality to package organizational content with options for defining a dependency tree, list the content of the resulting package, as well as import this content to another organization. In effect this allows cloning content in disconnected environments. This class utilizes the new arcgis.apps.itemgraph module to create packages that can be used for downloading items and their dependencies for uploading items into other deployments in a disconnected environment. The export_items()
method provides paramters to specify how items and thier dependencies are packaged and then exported to a desired location. The list_items()
method provides access to explore the output pacakge, and the import_content()
operation loads package contents into a desired deployment. See the API Reference for code examples.
New capabilities: arcgis.gis.workflowmanager
The API includes new implementations for listening, receiving and sending workflow manager messages. These updates allow for step execution which allow users to run, stop and finish steps. The improved messaging allows easy viewing of progress and whether calls succeeded. See new classes:
New classes: arcgis.graph
This module has added multiple new dataclasses to help with setting the correct syntax for functions so requests are all processed appropriately. The classes are strongly typed for input and outputs so all endpoints receive exactly what is expected. Check out the API Reference for details:
New module: arcgis.apps.itemgraph
The itemgraph
submodule provides classes and functions for building a dependency graph for organizational Item content. Module members can be used directly, or the OfflineContentManager can be used to utilize the functionality.