// The parameters IdentifyParameters ip = new IdentifyParameters(); ObservableCollection<LayerDefinition> layerDefs = new ObservableCollection<LayerDefinition>(); layerDefs.Add(new LayerDefinition() { LayerID = 1, Definition = "NAME <> 'SomeValue1" }); layerDefs.Add(new LayerDefinition() { LayerID = 25, Definition = "ZONE_CLASS <> 'SomeValue2'" }); ip.Geometry = new MapPoint(7514349.00010499, 747972.249942258); ip.Height = 400; ip.Width = 400; ip.LayerDefinitions = layerDefs; ip.LayerOption = LayerOption.all; ip.MapExtent = new Envelope(7650000, 640000, 7660000, 670000); ip.Tolerance = 1; // The task IdentifyTask task = new IdentifyTask(Url_v10); task.ExecuteCompleted += (s, e) => { // results }; task.Failed += FailedHandler; task.ExecuteAsync(ip);
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.