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

{
    "features": [
        {
            "properties": {
                "pk": "441378"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4249998.25156128,
                                1154701.07675875
                            ],
                            [
                                -4166664.87937375,
                                1299038.7113536
                            ],
                            [
                                -3999998.13499869,
                                1299038.7113536
                            ],
                            [
                                -3916664.76281117,
                                1154701.07675875
                            ],
                            [
                                -3999998.13499869,
                                1010363.44216391
                            ],
                            [
                                -4166664.87937375,
                                1010363.44216391
                            ],
                            [
                                -4249998.25156128,
                                1154701.07675875
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441536"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3499997.90187353,
                                -1010363.44216391
                            ],
                            [
                                -3416664.529686,
                                -866025.807569065
                            ],
                            [
                                -3249997.78531095,
                                -866025.807569065
                            ],
                            [
                                -3166664.41312342,
                                -1010363.44216391
                            ],
                            [
                                -3249997.78531095,
                                -1154701.07675875
                            ],
                            [
                                -3416664.529686,
                                -1154701.07675875
                            ],
                            [
                                -3499997.90187353,
                                -1010363.44216391
                            ]
                        ]
                    ]
                ],
                "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": "442303"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                -1876389.24973297
                            ],
                            [
                                83337.1021901372,
                                -1732051.61513813
                            ],
                            [
                                250003.846565192,
                                -1732051.61513813
                            ],
                            [
                                333337.218752719,
                                -1876389.24973297
                            ],
                            [
                                250003.846565192,
                                -2020726.88432782
                            ],
                            [
                                83337.1021901372,
                                -2020726.88432782
                            ],
                            [
                                3.73000261001289,
                                -1876389.24973297
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442321"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                3319765.59568142
                            ],
                            [
                                83337.1021901372,
                                3464103.23027626
                            ],
                            [
                                250003.846565192,
                                3464103.23027626
                            ],
                            [
                                333337.218752719,
                                3319765.59568142
                            ],
                            [
                                250003.846565192,
                                3175427.96108657
                            ],
                            [
                                83337.1021901372,
                                3175427.96108657
                            ],
                            [
                                3.73000261001289,
                                3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442451"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                750004.079690354,
                                -6639531.19136284
                            ],
                            [
                                833337.451877881,
                                -6495193.55676799
                            ],
                            [
                                1000004.19625294,
                                -6495193.55676799
                            ],
                            [
                                1083337.56844046,
                                -6639531.19136284
                            ],
                            [
                                1000004.19625294,
                                -6783868.82595768
                            ],
                            [
                                833337.451877881,
                                -6783868.82595768
                            ],
                            [
                                750004.079690354,
                                -6639531.19136284
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442452"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                750004.079690354,
                                -6350855.92217315
                            ],
                            [
                                833337.451877881,
                                -6206518.2875783
                            ],
                            [
                                1000004.19625294,
                                -6206518.2875783
                            ],
                            [
                                1083337.56844046,
                                -6350855.92217315
                            ],
                            [
                                1000004.19625294,
                                -6495193.55676799
                            ],
                            [
                                833337.451877881,
                                -6495193.55676799
                            ],
                            [
                                750004.079690354,
                                -6350855.92217315
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}