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.

I have a point & polygon shapefile. Point file has a field namely, Type: atm,hospital,school etc... Polygon file has a field Zone: Zn1, Zn2, Zn3. There will be two combo boxes which will populate this two fields respectively

What i like to do is.......If i select school & Zn2 in the comboboxes and click the "Show" button...... only schools which fall under the Zn2 polygon should be displayed. W.r.t arcobjects, i m just a beginner. Trying this for the past two days. Can anyone help me regarding this ? Thanks in advance...

(ArcGIS Version 9.3 )

share|improve this question

1 Answer 1

Your onSelection combo box event needs to fire off this property:

IFeatureLayerDefinition.DefinitionExpression Property

to only show those features within the layer.

Here is a code snippet you can reference:

http://edndoc.esri.com/arcobjects/8.3/componenthelp/esricore/IFeatureLayerDefinition_Example.htm

share|improve this answer
    
Thanks a lot. I'll try that and reply ASAP..... –  Saravana Ganesh Apr 25 '13 at 14:04
    
It works only for the features within a same shapefile. What i like to do is........... Select "Point features which has certain id" from "polygon features which has certain id". –  Saravana Ganesh Apr 26 '13 at 6:59

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.