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

{
    "features": [
        {
            "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": "442357"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -2020726.88432782
                            ],
                            [
                                333337.218752719,
                                -1876389.24973297
                            ],
                            [
                                500003.963127773,
                                -1876389.24973297
                            ],
                            [
                                583337.3353153,
                                -2020726.88432782
                            ],
                            [
                                500003.963127773,
                                -2165064.51892266
                            ],
                            [
                                333337.218752719,
                                -2165064.51892266
                            ],
                            [
                                250003.846565192,
                                -2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442806"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2250004.77906584,
                                577350.538379378
                            ],
                            [
                                2333338.15125337,
                                721688.172974221
                            ],
                            [
                                2500004.89562843,
                                721688.172974221
                            ],
                            [
                                2583338.26781595,
                                577350.538379378
                            ],
                            [
                                2500004.89562843,
                                433012.903784533
                            ],
                            [
                                2333338.15125337,
                                433012.903784533
                            ],
                            [
                                2250004.77906584,
                                577350.538379378
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442862"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                721688.172974221
                            ],
                            [
                                2583338.26781595,
                                866025.807569066
                            ],
                            [
                                2750005.01219101,
                                866025.807569066
                            ],
                            [
                                2833338.38437853,
                                721688.172974221
                            ],
                            [
                                2750005.01219101,
                                577350.538379378
                            ],
                            [
                                2583338.26781595,
                                577350.538379378
                            ],
                            [
                                2500004.89562843,
                                721688.172974221
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}