Skip to content
Prev 5075 / 29559 Next

Intersect & Plot a Polygon and wkbLineString

Sorry, we seem to have misunderstood each other.  Basically I have a 
county-wide set of roads called "major roads".  Then originally I had an 
identically sized county-wide set of polygons of which I select (via R) 
a smaller than county-wide subset of adjacent polygons and plot that 
subset.

The "add = TRUE" in plot operations suggestion sounds interesting. 

Your last paragraph is indeed all I am trying to achieve.  I need a GIS 
program to do this? I thought that R might be able to clip the major 
roads file (via an intersect) to conform to the polygon shapes.

I don't know, maybe I am approaching this the wrong way (i.e. trying to 
find the SQL style intersection of these two blobs). Perhaps another 
approach may be better. I think I will do the following.

1. Plot the major roads and try to get the street names on them. No 
polygon here.

2. Overlay what's going to be the large major roads over the smaller 
polygon set. The "add = TRUE" suggestion. Thanks.

3. Figure out how to trim that major roads set.

I have your book "Applied Spatial Data Analysis with R (Use R)" on order 
and it should arrive later today. Then also I am looking forward to a 
good read of "Lattice Multivariate Visualization".

Thanks,
Jim Burke
Roger Bivand wrote: