laptop and a wrench

Erro

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".

Última Publicação: December 18, 2015 ArcSDE/Enterprise Geodatabase
Número de ID do Erro NIM042999
EnviadoMarch 2, 2009
Última ModificaçãoApril 2, 2025
Aplica-se àArcSDE/Enterprise Geodatabase
Versão encontrada9.3
Sistema OperacionalRed Hat Enterprise Linux
Versão do Sistema Operacional4
StatusNon-Reproducible

Informações Adicionais

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

Solução Provisória

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.

Etapas para Reproduzir

ID do Erro: NIM042999

Software:

  • ArcSDE/Enterprise Geodatabase

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download