Select to view content in your preferred language

VBA- Arcobjects: how to write a code to intersect two layers and to make summery?

698
2
12-09-2010 09:31 AM
JamalNUMAN
Legendary Contributor
Hello,

I need to write a code (in VBA- Arcobjects) to intersect two layers (both are polygons) and then to make summery

Please, see the attached image that shows my question

??? The first layer represents the boundaries of the district
??? The second layer represents the hospital
??? First i need to intersect the two layers
??? Then, I need to count the number of hospitals in (inside) each governorate

Thank you

Kalid
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
2 Replies
Venkata_RaoTammineni
Regular Contributor
hi,

How do you intersect point and polygon...You are looking for Points within the polygon ?if that is true i have already given you the code that perfectly working...please check previous forms

Thanks
0 Kudos
JamalNUMAN
Legendary Contributor
Hello Venkat,

Thank you very much for the code.

It would be very much appreciated if you develop the code so that:

�?� First to intersect the layer of hospital with the layer of district (both are polygon)

�?� Then to have the frequency in the table of the intersected layer so that we know the number of hospitals in each district

In this case:
We don�??t need to start editing and to have the field �??name�?� in the district layer in order to get the result (as it�??s in the provided code)

Thank you

Regards

Kalid



hi,

How do you intersect point and polygon...You are looking for Points within the polygon ?if that is true i have already given you the code that perfectly working...please check previous forms

Thanks
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos