laptop and a wrench

Erro

The Spatial Join tool returns different results if it is used in ModelBuilder or via a Python script.

Última Publicação: April 11, 2022 ArcGIS Pro
Número de ID do Erro BUG-000147813
EnviadoMarch 22, 2022
Última ModificaçãoFebruary 11, 2025
Aplica-se àArcGIS Pro
Versão encontrada2.9.2
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusWill Not Be Addressed

Informações Adicionais

The difference in behavior happens due to projection on the fly when the spatial join target and join features are in different coordinate systems or datums. When the tool is run with the data added to the map in ArcGIS Pro (either in the geoprocessing tool user interface (UI) or in ModelBuilder), it uses the Datum Transformations from the map which were automatically selected when adding the layers to the map. When running the tool from a standalone Python, or if the transformation is cleared from the map, or if a new map is created, do not add layers, and run the tool, the same projection on the fly does not occur, and the results may be different. Use the Project tool to project both datasets into a common spatial reference and the result of Spatial Join and other spatial operations are always consistent. Learn more about how coordinate systems affect geoprocessing results at the following link: https://pro.arcgis.com/en/pro-app/latest/tool-reference/appendices/spatial-reference-and-geoprocessing.htm#ESRI_SECTION1_47C963B12E2B4D32AE65BBB9D6D747D7.

Etapas para Reproduzir

ID do Erro: BUG-000147813

Software:

  • ArcGIS Pro

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