laptop and a wrench

Error

The 'arcgis.features.analysis.join_features' script in the ArcGIS API for Python fails to overwrite an existing feature when {"overwrite": True}).

ArcGIS API for Python
Número de ID del error BUG-000161437
EnviadoSeptember 14, 2023
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for Python
Versión encontrada2.1.0
Sistema operativoN/A
Versión de sistema operativoN/A
EstadoAs Designed

Información adicional

The sample provided code is incorrect. When overwriting a feature layer, the input for the 'output_name' needs to be a FeatureLayer object. Sample pseudocode: overwrite_item = gis.content.get("some item id") results = arcgis.features.analysis.join_features( target_layer=FeatureLayer( "https://myurl.com/0" ), join_layer=fl, spatial_relationship='intersects', output_name=overwrite_item.layers[ 0 ], # needs to be feature layer object. context={"overwrite": True}, )

Pasos para reproducir

ID del error: BUG-000161437

Software:

  • ArcGIS API for Python

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga