Skip to main content

Hi !

Any idea how to create a 2D grid with hexagons instead of squares?

I would like to reproduce this tool : https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/generatetesellation.htm

I tried HexBinner transformer but it works with points. So when I try with a grid of points I created, there is some holes in my grid, as you can see...

image 

Thank you !

There is likely a way to do this natively in FME, but it will probably take a combination of transformers. When I have a task like this, I will usually lean toward creating a temporary GDB using TempPathNameCreator, run the ESRI tool via PythonCaller on the temp GDB, then read the data back in using a FeatureReader.


I just found out the HexagonSampler. I modify the user parameter value and bingo ! :)

https://hub.safe.com/publishers/larry/transformers/hexagonsampler

 


I just found out the HexagonSampler. I modify the user parameter value and bingo ! :)

https://hub.safe.com/publishers/larry/transformers/hexagonsampler

 

Nice tip for HexagonSampler.

This reminds me that hexagons are the bestagons 😁


Reply