0

Is it possible to separate grid layout by setting distances between each polygon? I need certain distance gaps between each polygon. Attaching a screenshot of a gridenter image description here

5
  • Please, anyone???!
    – Martynas
    Commented Nov 8, 2022 at 15:02
  • 1
    There's scores of ways to accomplish this, the easiest being to build the feature class using an arcpy.da.InsertCursor, but it's conceivable to use CreateFishnet if you increase the density (five fifths in height to obtain 60% coverage) then identify the features at the top of the window for deletion, then dissolve the others. It's just math. Note that posting two closely related Questions in two hours is pushing the envelope on duplication, and your really ought to be using a Within for selection of the polygons.
    – Vince
    Commented Nov 8, 2022 at 15:33
  • Buffer the existing polygons with a negative value that is 1/2 the required gap between polygons. Use the resulting buffers and the erase tool to remove that buffer area from the existing polygons.
    – GBG
    Commented Nov 8, 2022 at 16:02
  • Do you need to keep your grid or is it ok to create a new one?
    – Bera
    Commented Nov 9, 2022 at 6:29
  • I can create a new one, no problems
    – Martynas
    Commented Nov 9, 2022 at 7:36

1 Answer 1

0

A simple "blunt" approach is to delete every other cell, this may be sufficient for your needs. You can take advantage of the row number and some clever use of maths to solve this.

Use the Fishnet tool to create your grid. Open the attribute table and select the first row, note its bottom left.

grid

With attribute table still open run the select by attribute tool and set the where clause to be:

MOD("OID",2) = 0

In my case the unique row ID is OID, you might have FID or ObjectID, use the appropriate one.

This will select up alternate rows, confirm you have many selected polygons then run the Delete Features tool which will delete only the selected and you end up with:

Result

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.