laptop and a wrench

Bogue

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

Dernière publication: November 27, 2020 ArcGIS Pro SDK for .NET
Numéro d’ID de bogue BUG-000135314
EnvoiNovember 10, 2020
Dernière modificationJuly 11, 2025
S’applique àArcGIS Pro SDK for .NET
Version trouvée2.6.3
Système d’exploitationWindows OS
Version du système d’exploitation10.0
Version de correction2.7
StatutFixed

Solution de contournement

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.

Étapes pour reproduire

ID de bogue: BUG-000135314

Logiciel:

  • ArcGIS Pro SDK for .NET

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement