<div dir="ltr">Thank's Mike <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 6, 2013 at 2:05 PM, Mike Toews <span dir="ltr"><<a href="mailto:mwtoews@gmail.com" target="_blank">mwtoews@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Oh bummer! I just re-read your hexagon requirement. I must have<br>
misread octa- somewhere. Hexa- is not possible with the buffer hack<br>
(since hexa- is not divisible by octa-). You will need to define a<br>
template hexagon, then use some affine transform parameters to<br>
translate/scale it to the correct place. This function sort-of does<br>
it:<br>
<br>
<a href="http://trac.osgeo.org/postgis/wiki/UsersWikiGenerateHexagonalGrid" target="_blank">http://trac.osgeo.org/postgis/wiki/UsersWikiGenerateHexagonalGrid</a><br>
<br>
although the base hexagon looks a bit odd...<br>
<div class="im HOEnZb"><br>
-Mike<br>
<br>
On 6 December 2013 19:04, anurag singh <<a href="mailto:anurag.gsdl@gmail.com">anurag.gsdl@gmail.com</a>> wrote:<br>
</div><div class="HOEnZb"><div class="h5">> Hi everyone!!!!!<br>
><br>
> This is my first question on this site. I am developing a small application<br>
> where there is a requirement for generating a buffer in form of regular<br>
> hexagon.<br>
> I have already created the circle using ST_Buffer(ST_MakePoint("x1"," y1"),<br>
> 1000, 4 )  but not getting that how i can create a regular hexagon. I am<br>
> stuck on this point<br>
> please help me .<br>
><br>
><br>
> --<br>
> Thank's & Regard's<br>
> Anurag Singh<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><font face="tahoma, sans-serif">Thank's & Regard's</font><div style="text-align:left"><font face="tahoma, sans-serif">Anurag Singh</font></div>
</div>