Select to view content in your preferred language

How to report bugs in ArcGIS API for Python

105
1
Jump to solution
Sunday
miro_aus
Emerging Contributor

What is the best way to report bugs to help improve ArcGIS API for Python?

I am currently dealing with 2, using arcgis-api 2.4.1.1 ( conda 25.5.1, python 3.11.13, Windows 11)

Enabling optimised drawing times out with larger polygon layers

WARNING: Could not enable optimized drawing: Your request has timed out.

def set_optimized_drawing(published_item):
    try:
        logger.info("Enabling optimized drawing (multiScaleGeometry)")
        published_item.layers[0].manager.update_definition(
            {"multiScaleGeometryInfo": {"levels": []}}
        )
    except Exception as e:
        logger.warning(f"Could not enable optimized drawing: {e}")

 

Rasters of the size around 52MB end up in infinite upload loop (consistently, tested many times), looking at network monitor it does the upload, goes stall for seconds, and tries again, and again... Publishing raster datasets using from arcgis.raster.analytics import copy_raster. Interestingly it works completely fine with smaller or larger rasters including 3 MB or 3GB.

def upload_raster(gis, temp_path, item_title, item_properties, item_folder_name):
    agol_folder = set_agol_folder(gis, item_folder_name)

    try:
        kwargs = {
            "input_raster": str(temp_path),
            "output_name": item_title,
            "gis": gis,
            "tiles_only": True,
        }

        service_item = copy_raster(**kwargs)

        logger.info(
            "Raster uploaded, moving to designated folder and updating service properties..."
        )
        service_item.move(agol_folder)
        service_item.update(item_properties=item_properties)
        return service_item

    except Exception as e:
        logger.warning(f"Upload error: {e}")
        return None

 

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

Beyond raising a ticket the standard Tech Support route, you could raise an "Issue" at their github site

Esri/arcgis-python-api: Documentation and samples for ArcGIS API for Python


... sort of retired...

View solution in original post

1 Reply
DanPatterson
MVP Esteemed Contributor

Beyond raising a ticket the standard Tech Support route, you could raise an "Issue" at their github site

Esri/arcgis-python-api: Documentation and samples for ArcGIS API for Python


... sort of retired...