laptop and a wrench

Erro

The spatial reference of a Geometry object coming from MultiPatchBuilderEx.ToGeometry() is null even if the MultiPatchBuilderEx does have a spatial reference.

Última Publicação: November 27, 2020 ArcGIS Pro SDK for .NET
Número de ID do Erro BUG-000135314
EnviadoNovember 10, 2020
Última ModificaçãoJuly 11, 2025
Aplica-se àArcGIS Pro SDK for .NET
Versão encontrada2.6.3
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0
Versão Fixa2.7
StatusFixed

Solução Provisória

Consider the following code:

        var multi = new MultipatchBuilder(mpb.ToGeometry() as Multipatch);

        multi.SpatialReference = gda94;

        mutltipatch = multi.ToGeometry();

where mpb is a MultipatchBuilderEx object and GDA94 is a spatial reference. By getting the geometry of the mpb and sending that as a parameter for the Multipatch Builder constructor, the user can set the spatial reference of the multipatch geometry to whatever the user wants and then use the ToGeometry() method to get a geometry object with a spatial reference.

Etapas para Reproduzir

ID do Erro: BUG-000135314

Software:

  • ArcGIS Pro SDK for .NET

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