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=8159
HTTP 200 OK
Allow: OPTIONS, GET
Content-Type: application/json
Vary: Accept

{
    "features": [
        {
            "properties": {
                "pk": "441156"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5249998.7178116,
                                577350.538379378
                            ],
                            [
                                -5166665.34562408,
                                721688.172974221
                            ],
                            [
                                -4999998.60124902,
                                721688.172974221
                            ],
                            [
                                -4916665.22906149,
                                577350.538379378
                            ],
                            [
                                -4999998.60124902,
                                433012.903784533
                            ],
                            [
                                -5166665.34562408,
                                433012.903784533
                            ],
                            [
                                -5249998.7178116,
                                577350.538379378
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441585"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3249997.78531095,
                                -2598077.4227072
                            ],
                            [
                                -3166664.41312342,
                                -2453739.78811235
                            ],
                            [
                                -2999997.66874837,
                                -2453739.78811235
                            ],
                            [
                                -2916664.29656084,
                                -2598077.4227072
                            ],
                            [
                                -2999997.66874837,
                                -2742415.05730204
                            ],
                            [
                                -3166664.41312342,
                                -2742415.05730204
                            ],
                            [
                                -3249997.78531095,
                                -2598077.4227072
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441660"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2999997.66874837,
                                3031090.32649173
                            ],
                            [
                                -2916664.29656084,
                                3175427.96108657
                            ],
                            [
                                -2749997.55218579,
                                3175427.96108657
                            ],
                            [
                                -2666664.17999826,
                                3031090.32649173
                            ],
                            [
                                -2749997.55218579,
                                2886752.69189689
                            ],
                            [
                                -2916664.29656084,
                                2886752.69189689
                            ],
                            [
                                -2999997.66874837,
                                3031090.32649173
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441715"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2749997.55218579,
                                3175427.96108657
                            ],
                            [
                                -2666664.17999826,
                                3319765.59568142
                            ],
                            [
                                -2499997.43562321,
                                3319765.59568142
                            ],
                            [
                                -2416664.06343568,
                                3175427.96108657
                            ],
                            [
                                -2499997.43562321,
                                3031090.32649173
                            ],
                            [
                                -2666664.17999826,
                                3031090.32649173
                            ],
                            [
                                -2749997.55218579,
                                3175427.96108657
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441770"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2499997.43562321,
                                3031090.32649173
                            ],
                            [
                                -2416664.06343568,
                                3175427.96108657
                            ],
                            [
                                -2249997.31906062,
                                3175427.96108657
                            ],
                            [
                                -2166663.9468731,
                                3031090.32649173
                            ],
                            [
                                -2249997.31906062,
                                2886752.69189689
                            ],
                            [
                                -2416664.06343568,
                                2886752.69189689
                            ],
                            [
                                -2499997.43562321,
                                3031090.32649173
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442304"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                -1587713.98054329
                            ],
                            [
                                83337.1021901372,
                                -1443376.34594844
                            ],
                            [
                                250003.846565192,
                                -1443376.34594844
                            ],
                            [
                                333337.218752719,
                                -1587713.98054329
                            ],
                            [
                                250003.846565192,
                                -1732051.61513813
                            ],
                            [
                                83337.1021901372,
                                -1732051.61513813
                            ],
                            [
                                3.73000261001289,
                                -1587713.98054329
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442348"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -4618804.30703502
                            ],
                            [
                                333337.218752719,
                                -4474466.67244017
                            ],
                            [
                                500003.963127773,
                                -4474466.67244017
                            ],
                            [
                                583337.3353153,
                                -4618804.30703502
                            ],
                            [
                                500003.963127773,
                                -4763141.94162986
                            ],
                            [
                                333337.218752719,
                                -4763141.94162986
                            ],
                            [
                                250003.846565192,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442518"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                -3319765.59568142
                            ],
                            [
                                1083337.56844046,
                                -3175427.96108657
                            ],
                            [
                                1250004.31281552,
                                -3175427.96108657
                            ],
                            [
                                1333337.68500304,
                                -3319765.59568142
                            ],
                            [
                                1250004.31281552,
                                -3464103.23027626
                            ],
                            [
                                1083337.56844046,
                                -3464103.23027626
                            ],
                            [
                                1000004.19625294,
                                -3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442570"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                -4041453.76865564
                            ],
                            [
                                1333337.68500304,
                                -3897116.13406079
                            ],
                            [
                                1500004.4293781,
                                -3897116.13406079
                            ],
                            [
                                1583337.80156563,
                                -4041453.76865564
                            ],
                            [
                                1500004.4293781,
                                -4185791.40325048
                            ],
                            [
                                1333337.68500304,
                                -4185791.40325048
                            ],
                            [
                                1250004.31281552,
                                -4041453.76865564
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442571"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                -3752778.49946595
                            ],
                            [
                                1333337.68500304,
                                -3608440.86487111
                            ],
                            [
                                1500004.4293781,
                                -3608440.86487111
                            ],
                            [
                                1583337.80156563,
                                -3752778.49946595
                            ],
                            [
                                1500004.4293781,
                                -3897116.13406079
                            ],
                            [
                                1333337.68500304,
                                -3897116.13406079
                            ],
                            [
                                1250004.31281552,
                                -3752778.49946595
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}