Select to view content in your preferred language

How clip feature by selection (similar to clip in editor tool) using Arcobjects .net

1980
2
07-16-2016 03:15 AM
chandra_sekhar_reddyguda
Emerging Contributor

I have a Building FeatureClass, where having different features like ground structure, super structure and  extensions.....,

now i want to

  • clip ground structure where super structure contains (means creating dunut) inside of ground structure
  • clip which ever polygon come inside of ground structure

Not excepting Batch Process.. i have to perform this manually by selecting each building

0 Kudos
2 Replies
by Anonymous User
Not applicable

The editor's clip tool uses either ITopologicalOperator Difference or Intersect to perform the clip, with a bunch of logic either side.

In your case the flow would be something like:

Assuming Super St is selected, use it to find the polygons underneath (Ground St) with a spatial search.

Use ITopologicalOperator.Difference to 'cut' Super St out of Ground St.

Use the output geometry from that method as the new shape for Ground St.

Delete Super St (if required)

chandra_sekhar_reddyguda
Emerging Contributor

Thanks Jones,

According to  your hint ,I used ITopological.Difference in order to get desired output. Finally data cleaned correctly without any further issues.

Regards,

Chandra Sekhar Guda

0 Kudos