laptop and a wrench

Error

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

Última publicación: November 27, 2020 ArcGIS Pro SDK for .NET
Número de ID del error BUG-000135314
EnviadoNovember 10, 2020
Última modificaciónJuly 11, 2025
Relacionado conArcGIS Pro SDK for .NET
Versión encontrada2.6.3
Sistema operativoWindows OS
Versión de sistema operativo10.0
Versión corregida2.7
EstadoFixed

Solución alternativa

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.

Pasos para reproducir

ID del error: BUG-000135314

Software:

  • ArcGIS Pro SDK for .NET

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga