What's new in version 2.4.1

New

  • Enhances documentation for arcgis.map module classes with type hinting
  • New modules:
  • New classes:
    • OfflineContentManager
    • arcgis.graph module
      • See the API Reference for new data classes categorized by type that ensure valid inputs for the numerous specific types of objects that can be used as arguments for members within the module.

Guides

Samples

Module Changes

arcgis.gis

  • GIS
    • Adds support for login profiles to cache OAuth refresh tokens, supporting persistent authentication of 3rd party identity providers
  • Item
  • ContentManager
    • import_table()
      • Adds support for folder parameter
    • analyze()
      • Adds documentation note to file_type parameter that geojson support is available for ArcGIS Online
    • add()
      • Adds note about support for overwrite
  • Folders
  • Folder
    • add()
      • New parameter
        • upload_file_size - to support user import for larger part size for large files
        • stream - to support rare casses when ArcGIS Enterprise does not allow streaming uploads
    • delete()
      • Adds documenation for return value
  • UserManager
  • User
    • delete()
      • Updates warning message when attempting to delete a User who still owns items
    • folders
      • Updates reference documentation with code snippet
    • items()
      • Updates reference documentation with explanation and code snippet
  • GroupMigrationManager
    • create()
      • New parameter:
        • export_folder
    • load()
      • New parameter:
        • folder_name
  • OrgRecycleBin
    • Adds reference documentation and code snippets for content() method
  • ViewManager
    • Adds code snippet for initialization and updates reference documentation for methods

arcgis.gis Enumerations

arcgis.gis Dataclasses

  • SpatialFilter
    • Updates documentation with code snippets and explanation
    • Adds ability to import directly

arcgis.gis.admin

arcgis.gis.server

arcgis.gis.agonb

arcgis.gis.workflowmanager

arcgis.gis.tasks

  • Adds code snippets and formatting for all members
  • New properties:

arcgis.features

  • FeatureLayer
    • query()
      • Improves performance by adding multiprocessing and parameter refinement internally
    • edit_features()
      • Updates reference documentation with examples of returned values
    • append()
      • Updates reference documentation with notes for further reading and how to find supported formats
  • Spatially Enabled DataFrame - GeoAccessor
    • Adds documentation on how to control spatial processing engine for applicable methods
    • plot()
      • Adds check to use existing renderer if present in DataFrame
  • OrientedImageryLayer
    • Adds Table of Contents heading and documentation

arcgis.features.analysis

  • find_point_clusters()
    • Updates documentation with version availability information for time_field, search_time_interval, and search_time_unit parameters

arcgis.features.managers

arcgis.raster.functions

arcgis.notebook

arcgis.geometry

  • SpatialReference
    • Adds support for wkt2 format when initializing object
    • Updates internal inheritance to remove unnecessary members from objects

arcgis.graph

arcgis.layers

arcgis.apps

arcgis.learn

Fixes

  • Public Repo #2166 - Updates exception handling to include missing class so complete messaging appears

Guides

  • Updates to numerous guides for Map methods

Samples

Module Changes

arcgis.gis

  • GIS
    • BUG-000173116 - Fixes KeyError regaring role values when initializing with a public account
    • Fixes issue with recursion occurring on objects created using the generate token endpoint
    • Fixes population of internal User information for connections, such as using API Key, do not have explicit user
    • Fixes incorrect URL used for initialization with "home" keyword in a Notebook Server notebook
    • Fixes issues with initialization of objects using OAuth:
    • Fixes issue with duplicate imports leading to failures with interactive OAuth authorization
    • Fixes incorrect SSLError returned when initializing with publicly defined certificate
  • Item
    • BUG-000171384 - Fixes error where tables property returned empty list when item is a Map Service
    • Fixes error when accessing layers in ArcGIS Notebooks using "home" authentication
    • download()
      • Fixes failures to download json structure for specific item types, such as Web Experiences, lacking specific headers
    • publish()
      • Public Repo Issue #2152 - Fixes incorrect behavior of waiting for job to finish on asynchronous operation
      • Fixes issue where Date Only fields were not handled appropriately
    • remap_data()
      • Fixes incorrect results issue with force=True if services had differing number of layers
    • update()
      • BUG0-000172092 - Fixes issue where thumbnail was being overwritten
  • GroupManager
    • clone()
      • Fixes KeyError: 'membershipAccess' when cloning between ArcGIS Online organization
  • Group
    • update()
      • Fixes TypeError...unexpected keyword argument 'auto_join' error
  • GroupMigrationManager
    • load()
      • Fixes "Item does not exist error" on job result when items within the EPK item are skipped or fail to import
  • SharingGroupManager
    • list()
      • Fixes situation where only 5 groups were being returned regardless of whether item was shared with more
  • ContentManager
    • clone_items()
      • Public Repo Issue #2146 - Fixes issue where features failed to clone if layer id is not 0
      • BUG-000171865 - Fixes issue where only first item clones when cloning multiple dashboard items simultaneously
      • Public Repo Issue #1872 - Fixes IndexError when cloning items with an empty string as the name value
      • Fixes error when cloning items referencing services whose associated item has been deleted
      • Fixes issue with results not added after cloning Quick Capture items
      • Public Repo Issue #2147 - Fixes ItemCreateException when attempting to clone multiple items with copy_global_ids=True if any of the items do not contain global_id values
      • Public Repo Issue #2151 - Fixes error when cloning tile layer items using the copy_data=False argument failed with ItemCreateException
      • Fixes issue where copy_data=False was incorrectly creating hosted service items
  • Folder
    • add()
      • Fixes issue where Date Only fields were not handled appropriately
      • Fixes empty results when adding Geoprocessing Service item if url is in the dictionary used for item_properties argument
  • UserManager
    • create()
      • Fixes Unable to create <user_name> error on ArcGIS for Kubernetes deployments if New Member Defaults are not set
  • User
    • BUG-000173279 - Changes how users are initialized when returned in searches so that the role property hydrates with custom role names
    • items()
      • Fixes issue where incorrect total number of results returned
  • APIKey
    • update()
      • BUG-000170593 - Fixes Error Code 500 issue when update privileges on the APIKey
  • ViewManager
    • create()
      • Updates documentation for set_item_id parameter to note suppported platform and version
  • RoleManager
    • clone()
      • Fixes AttributeError regarding no name attribute

arcgis.gis Dataclasses

  • SpatialFilter
    • as_json()
      • Fixes UnboundLocalError because internal Spatial Reference variable handled incorrectly

arcgis.gis.admin

arcgis.gis.server

  • DataStoreManager
    • validate()
      • BUG-000172692 - Fixes incorrect return value of False on valid datastores
  • Service
    • Fixes missing documentation
  • Server
    • Fixes AttributeError when initiliazing using the portal_connection argument
  • LogManager
    • query()
      • Fixes issue where no results are returned if end_time argument provided as a string

arcgis.features

  • FeatureLayer
    • query()
      • Fixes Cannot access local variable error if only OBJECTID field is set in out_fields argument
      • BUG-000171499 - Fixes issue with incorrect number of results returned on referenced services with result_record_count argument
    • edit_features()
      • Fixes Invalid 'editsUploadFormat' parameter error when running asynchronously on ArcGIS Enterprise
  • Spatially Enabled DataFrame - GeoAccessor
    • insert_layer()
      • Fixes issue on ArcGIS Enteprise where layer schema was inserted but features were not
    • to_featureclass()
      • BUG-000171826 - Fixes issue where null values for Int32 or Float64 datatypes were converted to strings
    • to_featurelayer()
      • Fixes AttributeError: 'GIS' object has not attribute 'is_arcgisonline' error
      • Fixes Overwrite unsuccessful error and messaging when originated from a FeatureSet
      • Updates internal processing to improve performance on large files
    • compare()
    • from_featureclass()
      • Fixes TypeError when location argument is an arcpy.mp.Layer object
      • Fixes KeyError when using a subset for the fields argument in arcpy environments
      • Public Repo Issue #2241 - Fixes issues with reading projection information incorrectly depending upon avaialble Geometry Engines
    • from_layer()
      • Fixes issue with duplicate records returned on Feature Layer objects hosted in ArcGIS Enteprise created with this method
  • FeatureCollection
    • from_featureset()
      • Updates url endpoint for Esri Symbol Page link in symbol parameter description

arcgis.features.managers

  • FeatureLayerCollectionManager
    • Fixes AttributeError: 'dict' object has no attribute 'result' errors with definition calls to ArcGIS Online
    • update_definition()
      • Fixes Invalid definition error when updating editorTrackingInfo
    • create_view()
      • BUG-000169543 - Fixes PropertyMap instance has no _serviceItemId_ error on ArcGIS Enterprise resulting in an empty view
    • overwrite()
      • BUG-000173138 - Fixes Error getting Item Info from Datastore error when using on hosted tables published from service definition files
  • FeatureLayerManager
    • Fixes issue where layer failed to refresh after calls updating the definition
  • AttachmentManager
    • count()
      • Fixes KeyError: 'count' when calling method
    • search()
      • Fixes situation where all records were returned instead of specific results

arcgis.raster.orthomapping

  • Project
    • Fixes issue where gis argument was not used for initialization

arcgis.geoenrichment

  • encrich()
    • BUG-000171775 - Fixes AttributeError with the KeyFacts data collection

arcgis.geometry

  • BUG-000173067 - Fixes issue where importing "*" from module overrides GIS object
  • Geometry

arcgis.layers

arcgis.map

  • MapContent
    • add()
      • Fixes issue where FeatureSets were not displaying if OBJECTID field was not in the fields list
  • PopupManager
    • Updates support for working with table objects

arcgis.apps

arcgis.learn

  • Deprecates the overwrite parameter in save() methods for all models
  • Fixes overutilization of GPU memory during inferencing for numerous models
  • Fixes ValueError when using Language Pack to classify pixels
  • Fixes URLError when usig _from_model() to load models if the torch cache is cleared or unavailable
  • Fixes issue with weight loading on Prithvi models
  • Fixes issue with output not appearing in notebooks if models are trained before optimized with lr_find()
  • Data Preparation Methods
    • prepare_data()
      • Fixes error with ClimaX data on Linux Operating Systems
      • Fixes WellKnownBandNames error if the EMD key is not available
      • Fixes AssertionError when using ClimaX models for forecasting monthly
      • Updates vague description for path argument to clarify when lists are necessary
    • prepare_textdata()
      • Updates class_mapping parameter description with applicability information
  • Automated Machine Learning
    • AutoDL
      • Adds RTDetrV2, SamLoRA, and Mask2Former as options for network argument
      • Deprecates support for OCRNet as option for network argument
      • fit()
        • Fixes issue when using default backbone in advanced mode
    • AutoML
      • Fixes error training models because of hard-coded extraneous data
  • Object Classification Models
  • Object Detection Models
    • RetinaNet
      • Fixes training and optimization crashes on machines with only a CPU
  • Pixel Classification Models
    • Fixes incorrect NoData cells display issue with show_results() on Multispectral edge detection models
    • BDCNEdgeDetector
      • Fixes RuntimeError when training or optimizing with specific timm backbones
    • MMDetection
      • fit()
        • Fixes RuntimeError failure when training with _mixed_precision
    • DETReg
      • lr_find()
        • Fixes RuntimeError when called with mixed_precision
    • MultiTaskRoadExtractor
      • Fixes training and optimization RuntimeErrors on initial run with models initialized from linknet backbones
        • Deprecates support for using linknet backbones with multiple GPUs
  • Image Translation Models
    • WNet_cGAN
      • lr_find()
        • Fixes Out of memory error when using data prepared with batch_size=None
  • 3D Models
    • SQNSeg
      • fit()
        • Fixes NaN validation errors and training losses with _mixed_precision
  • Object Tracking Models
    • SiamMask
      • save()
        • Fixes AssertionError when called on models trained with mixed_precision
  • Feature, Tabular, and Timeseries models
    • Fixes AttributeError caused by Pandas datetime on TimeSeries models when using show_results() or show_batch()
    • MLModel
      • from_model()
        • Fixes Invalid data type error when setting emd_path to a Deep Learning Package item
        • Fixes AttributeError stemming from version mismatch with sklearn when loading from older models in emd_path argument
      • predict()
        • Fixes TypeError when explain=True on Tree-based models
        • Fixes ValueError when mitigating with fairness arguments on Regression models
  • Raster Time Series Models
    • ClimaX
      • Fixes inferencing failures on models trained with multidimensional data in ArcGIS Pro
    • PSETAE
      • Fixes NotADirectory error and issue dropping last point when training
      • from_model()
        • Fixes TypeError when loading from model trained with mixed_precision
  • Unstructured Text Models
  • Inferencing Methods
    • classify_objects()
      • Fixes RuntimeError when a partial input feature is selected during extent setting
  • Model Management
    • train_model()
      • Fixes ZeroDevisionError if batch size is larger than the number of chips in the data
      • Fixes intermittend job crashes when run on ArcGIS Enterprise on Linux

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.