Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is it possible to change the symbol for a single feature in ArcObjects? If so how?

I know it's possible to setup the map symbology for different field values of a feature class, but I'd like to achieve this without changing any of the underlying field data if possible.

P.S. I'm using C# and ArcGIS 10.0

share|improve this question
1  
Can you elaborate on the reasons for wanting to do this, and whether you are going to use it in ArcMap, ArcEngine, or on ArcGIS Server? Does it need to be done through ArcObjects and not the layer's symbology tab or alternatively can't you just create a selection layer consisting of the one feature? Does the symbology need to show up in the map's table of contents and legend? –  blah238 Oct 12 '11 at 21:44
    
Doing it in ArcObjects; it's a stand-alone C# app. I'd rather not do it in the symbology tab because that would mean changing a property (I think), and I want to avoid that if possible. I'm not familiar with the selection layer approach. No need to show up in TOC or legend. –  Keith G Oct 13 '11 at 2:02
    
In ArcMap you would select a feature, right-click its layer in the TOC and go to Selection-Create layer from selected features. This would create a new layer with just the selected feature(s). You could get the same effect with a layer with a definition query. I am not sure how this would work in ArcEngine as I don't use it. But I think the layers approach is probably simplest. –  blah238 Oct 13 '11 at 2:32

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.