laptop and a wrench

Bug

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

Zuletzt veröffentlicht: November 27, 2020 ArcGIS Pro SDK for .NET
Bug-ID-Nummer BUG-000135314
EingereichtNovember 10, 2020
Zuletzt geändertJuly 11, 2025
Gilt fürArcGIS Pro SDK for .NET
Gefunden in Version2.6.3
BetriebssystemWindows OS
Betriebssystemversion10.0
Behoben in Version2.7
StatusFixed

Workaround

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000135314

Software:

  • ArcGIS Pro SDK for .NET

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln