Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to retrieve the layer ID of every layer returned by the IQueryFunctionality.Identify function (I am using ADF with .NET)

Identify function spits out a DataTable array for layers which have answered to the query. Since there's no way to know what layers have not answered, you need to check the TableName (which is the layer name) for every DataTable in the array.

But what if you have two layers with the same name? You can't know what layer answered and what layer didn't

The closest answer I could find on the internet is a link at esri forums but the topic got disbanded before reaching a solution (which may not exist perhaps).

This sounds like a problem to me, can someone please help me?

share|improve this question

migrated from Aug 30 '11 at 13:15

This question came from our site for professional and enthusiast programmers.

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.