在supermap-iobjectsdotnet-11.1.1中,执行下列代码报 必须为面对象的错误,
但是我在supermap-idesktopx-11.1.1里发现可以对2个线集合进行相交操作处理,
那如何编写代码实现该功能呢?
OverlayAnalystParameter overlayAnalystParamIntersect = new OverlayAnalystParameter();
overlayAnalystParamIntersect.Tolerance = 0.000000008;
overlayAnalystParamIntersect.OutputType = OverlayAnalystOutputType.Point;
overlayAnalystParamIntersect.SourceRetainedFields = new string[] { "LXBM", "LXMC" };
overlayAnalystParamIntersect.OperationRetainedFields = new string[] { "XM0101", "XM0102" };
OverlayAnalyst.Intersect(lxvDatasetVector2, lxlDatasetVector2, resultDatasetIntersect, overlayAnalystParamIntersect);