0

I have a polygon layer with one rectangle. I have created a second polygon layer from a buffer on the rectangle. Therefore 2 differently sized rectangles that are identical in proportions but the smaller one exists completely inside the larger one.

I have lines that cross both rectangles, like Lat Long graticles.

I'd like to get rid of the portions of the lines that are inside the smaller rectangle and the portions of the lines that are outside the larger rectangle leaving just ticks that are the length of the gap between the two rectangle layers.

I don't care if it takes a number of steps, I'd just like to get it done.

I've thought of something that might be the direction of a solution but I'm not sure how to proceed with it. Convert both polygons to lines. Cut the "lat long" lines at the intersections with these "lines from rectangles", then delete the inner and outer leaving just the segments between the two rectangles.

ahmadhanb
  • 40,826
  • 5
  • 51
  • 105
jrickards
  • 87
  • 1
  • 7

3 Answers3

1

You can circumvent the outer polygon completely.

Use a combination of:

  1. The clip geoprocessing tool
  2. The extend line tool
  3. The difference geoprocessing tool

Clip your graticule lines with the rectangle you want, then use the extend lines tool on the resulting clipped lines by the distance you want at each ends. Then pass the layers through the difference tool.

Gabriel
  • 3,136
  • 13
  • 33
1

There is a QAD plugin which has tools like Trim, Extend, and others, similar to what you can find in ArcMap editing tools. If you have experience with AutoCAD software, this plugin is quite similar.

enter image description here

ahmadhanb
  • 40,826
  • 5
  • 51
  • 105
0

This seems to be able to do what I'm looking for: Splitting a Polyline at Intersections (Splitting a Polyline at intersections)

jrickards
  • 87
  • 1
  • 7