laptop and a wrench

漏洞

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

上次发布: November 27, 2020 ArcGIS Pro SDK for .NET
漏洞 ID 编号 BUG-000135314
已提交November 10, 2020
上次修改时间July 11, 2025
适用范围ArcGIS Pro SDK for .NET
找到的版本2.6.3
操作系统Windows OS
操作系统版本10.0
修正版本2.7
状态Fixed

解决办法

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.

重现步骤

漏洞 ID: BUG-000135314

软件:

  • ArcGIS Pro SDK for .NET

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项