尝试删除ArcGIS的Feature Service Python API 1.7中的功能时出现错误消息

问题描述 投票:1回答:1

我正在尝试使用FeatureLayer对象上的delete_features方法删除特征,并且不断出现以下错误:"This SqlTransaction has completed; it is no longer usable."

下面的代码。错误消息似乎填充在最后一行where =“ OBJECTID> = 0”,但是我不确定这是否是问题100。不幸的是,我不太擅长编程。

    gis = arcgis.GIS("http://gfcgis.maps.arcgis.com", "UserName", "Password") 
    feature_layer_item = gis.content.search(FeatureLayer, item_type = 'Feature Service')[0]
    flayers = feature_layer_item.layers
    flayer = flayers[0]
    flayer.delete_features(where="OBJECTID >= 0", rollback_on_failure=True)

任何帮助将不胜感激。

Michael

python api arcgis
1个回答
0
投票
这是已经完成的SQL事务。
© www.soinside.com 2019 - 2024. All rights reserved.