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.
        IMap map = axMapControl1.ActiveView.FocusMap;
        IFeatureSelection fSelection = map.get_Layer(0) as IFeatureSelection;

        ISelectionSet selSet = fSelection.SelectionSet;


        ICursor cursor;
        selSet.Search(null, true, out cursor);

        IFeature feat = ((IFeatureCursor)cursor).NextFeature();

Now i want to create buffer to my cursor. How can i do it?

share|improve this question
1  
Please explain some more. What kind of buffer do you want –  Emi Jan 17 '13 at 7:32
    
    
duplicate of gis.stackexchange.com/q/48307/5850 ? seems the issue is resolved in that question.. –  vinayan Jan 17 '13 at 13:03

1 Answer 1

You can get your feat geometry and create buffer using Topological operator. These code can use for you.

double bufferDistance = 0.0; // Note: set buffer distance as you want. For eg:200 or 500

var featShape = feat.ShapeCopy as IGeometry;

var topologicalOperator = featShape as ITopologicalOperator;
var featureBuffer = topologicalOperator.Buffer(bufferDistance);
share|improve this answer

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.