laptop and a wrench

Bug

RasterManager.add() fails to add image services.

Zuletzt veröffentlicht: June 12, 2019 ArcGIS API for Python
Bug-ID-Nummer BUG-000122655
EingereichtMay 28, 2019
Zuletzt geändertJune 28, 2025
Gilt fürArcGIS API for Python
Gefunden in Version1.6.1
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
Behoben in Version1.9.0
StatusFixed

Workaround

It is possible to resolve this issue by manually changing the source code, however only follow this instruction if it's required.

  1. Make a backup of the _layer.py file referenced in the runtime error (e.g. /opt/anaconda3/envs/gdal/lib/python3.6/site-packages/arcgis/raster/_layer.py).
  2. Open the original _layer.py file to perform edits.
  3. Locate the _add_rasters function.
  4. Modify the line that reads "service_url = [service_url]" to "service_url = service_url"
  5. Save changes (if using a Jupyter Notebook also restart the kernel).

 

After making the above changes the function works as expected with a service URL.

 

Schritte zur Reproduzierung

Bug-ID: BUG-000122655

Software:

  • ArcGIS API for Python

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln