Wednesday, 22 June 2016

qgis - MMQGIS - grid hexagons


What parameters should be set (x spacing, y spacing, units) to get a 1 ha hexagon? I work in EPSG 32634 projection. QGIS plugin MMQGIS.


enter image description here


Regards,


Onosz




Answer



I found out (see next image) that these are relations among different distances in a regular hexagon used for MMQGIS plugin; where formula to calculate area as function of L is: A = 2.60*L2. So, if area is 1 ha (10000 m2) then L = 62.04032 m.


enter image description here


By geometric considerations, sin 60º = (y/2)/L and:



y = 2*L.sin 60º = 2*62.04032*0.866025403784 = 107.456986358 m



As x and y are joined, you only need to put, at correspondent place in plugin, only calculated y value (x value is automatically calculated).


enter image description here


After click in OK, I got:



enter image description here


By using my plugin to calculate areas, I corroborated that it was ~10000 m2 for one particular feature; as expected.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...