laptop and a wrench

漏洞

When running large spatial selections in ArcSDE geodatabases, the Select Layer By Location geoprocessing tool returns the following error message: "Error 000520: Unexpected Topo Engine error; Failed to execute: Select By Location".

上次发布: December 18, 2015 ArcSDE/Enterprise Geodatabase
漏洞 ID 编号 NIM042999
已提交March 2, 2009
上次修改时间April 2, 2025
适用范围ArcSDE/Enterprise Geodatabase
找到的版本9.3
操作系统Red Hat Enterprise Linux
操作系统版本4
状态Non-Reproducible

附加信息

Non-reproducible. If this is still being encountered in a current supported release, please contact Support Services.

解决办法

1. Export datasets to a File Geodatabase to create selections. 2. Select objects interactively. 3. Use the ArcObjects code below to complete the Select By Location operation: Public Sub SelectByLocation() On Error GoTo ErrorHandler Dim pFeatLayer As IFeatureLayer Dim pPYFeatLayer As IFeatureLayer Dim pMXDoc As IMxDocument Dim pMap As IMap Dim pSpatialFilter As ISpatialFilter Dim pFeatCursor As IFeatureCursor Dim pFeature As IFeature Dim pPYGeometry As IGeometry Dim pFeatSelection As IFeatureSelection Set pMXDoc = ThisDocument Set pMap = pMXDoc.FocusMap 'access the map layers Set pFeatLayer = pMap.Layer(0) Set pPYFeatLayer = pMap.Layer(1) 'get the py geometry Set pFeatCursor = pPYFeatLayer.Search(Nothing, False) Set pFeature = pFeatCursor.NextFeature() Set pPYGeometry = pFeature.ShapeCopy() Set pFeature = Nothing Set pFeatCursor = Nothing 'setup the spatial filter Set pSpatialFilter = New SpatialFilter Set pSpatialFilter.Geometry = pPYGeometry pSpatialFilter.GeometryField = pFeatLayer.FeatureClass.ShapeFieldName pSpatialFilter.SpatialRel = esriSpatialRelIntersects 'do the selection Set pFeatSelection = pFeatLayer pFeatSelection.SelectFeatures pSpatialFilter, esriSelectionResultNew, False pMXDoc.CurrentContentsView.Refresh 0 MsgBox "Done" Exit Sub ErrorHandler: MsgBox "Error: " & Err.Description End Sub --- The above code assumes the first map layer is the roads layer; the next is the poly layer.

重现步骤

漏洞 ID: NIM042999

软件:

  • ArcSDE/Enterprise Geodatabase

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项