You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cartodb-postgresql/doc/CDB_MakeHexagon.md

426 B

Return an Hexagon with given center and side (or maximal radius)

Using the function

Running the following SQL

SELECT CDB_MakeHexagon(ST_MakePoint(0,0),10000000)

Would give you back a single hexagon geometry,

hexagon

Arguments

CDB_MakeHexagon(center, radius)

  • center geometry
  • radius float. Radius of hexagon measured in same projection as center