Process queries for HexGrid objects.
:param request: HTTP GET request
:return: JSON format of HexGrid (only pk and count) or GeoJSON of the geom of HexGrid.

GET /api/occurrence/grid/?type=occurrence&taxon=2278957
HTTP 200 OK
Allow: OPTIONS, GET
Content-Type: application/json
Vary: Accept

{
    "features": [
        {
            "properties": {
                "pk": "441328"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4499998.36812386,
                                2453739.78811235
                            ],
                            [
                                -4416664.99593633,
                                2598077.4227072
                            ],
                            [
                                -4249998.25156128,
                                2598077.4227072
                            ],
                            [
                                -4166664.87937375,
                                2453739.78811235
                            ],
                            [
                                -4249998.25156128,
                                2309402.15351751
                            ],
                            [
                                -4416664.99593633,
                                2309402.15351751
                            ],
                            [
                                -4499998.36812386,
                                2453739.78811235
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441546"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3499997.90187353,
                                1876389.24973297
                            ],
                            [
                                -3416664.529686,
                                2020726.88432782
                            ],
                            [
                                -3249997.78531095,
                                2020726.88432782
                            ],
                            [
                                -3166664.41312342,
                                1876389.24973297
                            ],
                            [
                                -3249997.78531095,
                                1732051.61513813
                            ],
                            [
                                -3416664.529686,
                                1732051.61513813
                            ],
                            [
                                -3499997.90187353,
                                1876389.24973297
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441547"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3499997.90187353,
                                2165064.51892266
                            ],
                            [
                                -3416664.529686,
                                2309402.15351751
                            ],
                            [
                                -3249997.78531095,
                                2309402.15351751
                            ],
                            [
                                -3166664.41312342,
                                2165064.51892266
                            ],
                            [
                                -3249997.78531095,
                                2020726.88432782
                            ],
                            [
                                -3416664.529686,
                                2020726.88432782
                            ],
                            [
                                -3499997.90187353,
                                2165064.51892266
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441548"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3499997.90187353,
                                2453739.78811235
                            ],
                            [
                                -3416664.529686,
                                2598077.4227072
                            ],
                            [
                                -3249997.78531095,
                                2598077.4227072
                            ],
                            [
                                -3166664.41312342,
                                2453739.78811235
                            ],
                            [
                                -3249997.78531095,
                                2309402.15351751
                            ],
                            [
                                -3416664.529686,
                                2309402.15351751
                            ],
                            [
                                -3499997.90187353,
                                2453739.78811235
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441710"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2749997.55218579,
                                1732051.61513813
                            ],
                            [
                                -2666664.17999826,
                                1876389.24973297
                            ],
                            [
                                -2499997.43562321,
                                1876389.24973297
                            ],
                            [
                                -2416664.06343568,
                                1732051.61513813
                            ],
                            [
                                -2499997.43562321,
                                1587713.98054329
                            ],
                            [
                                -2666664.17999826,
                                1587713.98054329
                            ],
                            [
                                -2749997.55218579,
                                1732051.61513813
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441712"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2749997.55218579,
                                2309402.15351751
                            ],
                            [
                                -2666664.17999826,
                                2453739.78811235
                            ],
                            [
                                -2499997.43562321,
                                2453739.78811235
                            ],
                            [
                                -2416664.06343568,
                                2309402.15351751
                            ],
                            [
                                -2499997.43562321,
                                2165064.51892266
                            ],
                            [
                                -2666664.17999826,
                                2165064.51892266
                            ],
                            [
                                -2749997.55218579,
                                2309402.15351751
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441768"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2499997.43562321,
                                2453739.78811235
                            ],
                            [
                                -2416664.06343568,
                                2598077.4227072
                            ],
                            [
                                -2249997.31906062,
                                2598077.4227072
                            ],
                            [
                                -2166663.9468731,
                                2453739.78811235
                            ],
                            [
                                -2249997.31906062,
                                2309402.15351751
                            ],
                            [
                                -2416664.06343568,
                                2309402.15351751
                            ],
                            [
                                -2499997.43562321,
                                2453739.78811235
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442151"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -749996.619685135,
                                2020726.88432782
                            ],
                            [
                                -666663.247497608,
                                2165064.51892266
                            ],
                            [
                                -499996.503122553,
                                2165064.51892266
                            ],
                            [
                                -416663.130935026,
                                2020726.88432782
                            ],
                            [
                                -499996.503122553,
                                1876389.24973297
                            ],
                            [
                                -666663.247497608,
                                1876389.24973297
                            ],
                            [
                                -749996.619685135,
                                2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442347"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -4907479.5762247
                            ],
                            [
                                333337.218752719,
                                -4763141.94162986
                            ],
                            [
                                500003.963127773,
                                -4763141.94162986
                            ],
                            [
                                583337.3353153,
                                -4907479.5762247
                            ],
                            [
                                500003.963127773,
                                -5051817.21081955
                            ],
                            [
                                333337.218752719,
                                -5051817.21081955
                            ],
                            [
                                250003.846565192,
                                -4907479.5762247
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442402"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                500003.963127773,
                                -5051817.21081955
                            ],
                            [
                                583337.3353153,
                                -4907479.5762247
                            ],
                            [
                                750004.079690354,
                                -4907479.5762247
                            ],
                            [
                                833337.451877881,
                                -5051817.21081955
                            ],
                            [
                                750004.079690354,
                                -5196154.84541439
                            ],
                            [
                                583337.3353153,
                                -5196154.84541439
                            ],
                            [
                                500003.963127773,
                                -5051817.21081955
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442860"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                144337.634594845
                            ],
                            [
                                2583338.26781595,
                                288675.269189689
                            ],
                            [
                                2750005.01219101,
                                288675.269189689
                            ],
                            [
                                2833338.38437853,
                                144337.634594845
                            ],
                            [
                                2750005.01219101,
                                0.0
                            ],
                            [
                                2583338.26781595,
                                0.0
                            ],
                            [
                                2500004.89562843,
                                144337.634594845
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443036"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3250005.24531617,
                                3464103.23027626
                            ],
                            [
                                3333338.6175037,
                                3608440.86487111
                            ],
                            [
                                3500005.36187875,
                                3608440.86487111
                            ],
                            [
                                3583338.73406628,
                                3464103.23027626
                            ],
                            [
                                3500005.36187875,
                                3319765.59568142
                            ],
                            [
                                3333338.6175037,
                                3319765.59568142
                            ],
                            [
                                3250005.24531617,
                                3464103.23027626
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443071"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3500005.36187875,
                                -2453739.78811235
                            ],
                            [
                                3583338.73406628,
                                -2309402.15351751
                            ],
                            [
                                3750005.47844133,
                                -2309402.15351751
                            ],
                            [
                                3833338.85062886,
                                -2453739.78811235
                            ],
                            [
                                3750005.47844133,
                                -2598077.4227072
                            ],
                            [
                                3583338.73406628,
                                -2598077.4227072
                            ],
                            [
                                3500005.36187875,
                                -2453739.78811235
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443091"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3500005.36187875,
                                3319765.59568142
                            ],
                            [
                                3583338.73406628,
                                3464103.23027626
                            ],
                            [
                                3750005.47844133,
                                3464103.23027626
                            ],
                            [
                                3833338.85062886,
                                3319765.59568142
                            ],
                            [
                                3750005.47844133,
                                3175427.96108657
                            ],
                            [
                                3583338.73406628,
                                3175427.96108657
                            ],
                            [
                                3500005.36187875,
                                3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}