0

I'm trying to make a hex grid net with the shape of polygon. Unfortunately, the grid net is in the rectangle shape (see the screenshot).

Any advice how to do it?

enter image description here

  • This might point you in the right direction gis.stackexchange.com/questions/265010/… I've seen hexagonal grids come up a few times on GIS.SE, a quick search should give you some ideas. – Michael Stimson Mar 19 at 5:23
  • Did you mean that you try to create a grid inside the green polygon but it came as a rectangle surrounding the polygon ? could you edit your question to provide more info on how you create the grid ? – J.R Mar 19 at 16:41
  • J.R Exactly, that was the problem... but when I used the "select by location" and then save selected as a new layer, then it worked and I got the grid with the same shape as "green" polygon. – Slunicko Mar 20 at 1:43
1

An alternative to @csk's answer is to use Vector > Research Tools > Select by Location to select the hexagons which intersect the desired polygon, and them save them to a new layer. This will mean that entire hexagons will be retained, even if they only partially intersect the source polygon.

  • Excellent alternate solution. FYI, Extract by location (found in the Processing Toolbox) will do the same thing in one step. – csk Mar 19 at 19:22
1

Find the Clip tool in the Vector menu > Geoprocessing Tools. Use it to clip the grid to the polygon.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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