Layers reference from Geoprocessing

المشرف العام

Administrator
طاقم الإدارة
ArcGIS 10.1: I am using ArcObjects in .NET with some geoprocessing. It works great. There is an option to add the resulting feature class to the map. That works great too. However how do I get a reference to this layer to move it to a group layer?

Dim GP As GeoProcessor = New GeoProcessor GP.AddOutputsToMap = True 'True if we want to add outputs to map, False if we dont. Dim parameters As IVariantArray = New VarArray parameters.Add(inDatasets) parameters.Add(toPointFullName) parameters.Add("") Dim res As IGeoProcessorResult = GP.Execute("Merge_management", parameters, Nothing) 'todo: how do I get a reference to ILayer of the resulting layer added to map? Thanks ~AGP



أكثر...
 
أعلى