Re: How many polygons does a single polygon intersect with?
On 07/03/17 19:13, Vijay Ramesh via R-sig-Geo wrote:
> I currently possess a shapefile that consists of >5000 polygons. I would
> like to know, for each polygon, how many other polygons it intersects with
> and the names of each polygon it intersects with?
> My output should be something like this:
> [image: enter image description here] <https://i.stack.imgur.com/ELv3T.png>
> Based on Jeffrey Evans suggestion on using gIntersects, I have tried the
If you follow up on exchanges on stack overflow, please provide the link
to it here.
> following below. But, the process has been running continuously without
> stopping for the last 5 hours. Any suggestions?
> Here's the code I ran in R:
> Poly <- readOGR("C:\\Users\\rameshv\\Terrestrial_dissolved_multipart.shp")
> Poly_join <- gIntersects(Poly)