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

{
    "features": [
        {
            "properties": {
                "pk": "440705"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -7249999.65031226,
                                -2598077.4227072
                            ],
                            [
                                -7166666.27812473,
                                -2453739.78811235
                            ],
                            [
                                -6999999.53374967,
                                -2453739.78811235
                            ],
                            [
                                -6916666.16156215,
                                -2598077.4227072
                            ],
                            [
                                -6999999.53374967,
                                -2742415.05730204
                            ],
                            [
                                -7166666.27812473,
                                -2742415.05730204
                            ],
                            [
                                -7249999.65031226,
                                -2598077.4227072
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442859"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                -144337.634594844
                            ],
                            [
                                2583338.26781595,
                                0.0
                            ],
                            [
                                2750005.01219101,
                                0.0
                            ],
                            [
                                2833338.38437853,
                                -144337.634594844
                            ],
                            [
                                2750005.01219101,
                                -288675.269189688
                            ],
                            [
                                2583338.26781595,
                                -288675.269189688
                            ],
                            [
                                2500004.89562843,
                                -144337.634594844
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}