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

{
    "features": [
        {
            "properties": {
                "pk": "440887"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -6499999.30062451,
                                2165064.51892266
                            ],
                            [
                                -6416665.92843698,
                                2309402.15351751
                            ],
                            [
                                -6249999.18406193,
                                2309402.15351751
                            ],
                            [
                                -6166665.8118744,
                                2165064.51892266
                            ],
                            [
                                -6249999.18406193,
                                2020726.88432782
                            ],
                            [
                                -6416665.92843698,
                                2020726.88432782
                            ],
                            [
                                -6499999.30062451,
                                2165064.51892266
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "440941"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -6249999.18406193,
                                2020726.88432782
                            ],
                            [
                                -6166665.8118744,
                                2165064.51892266
                            ],
                            [
                                -5999999.06749935,
                                2165064.51892266
                            ],
                            [
                                -5916665.69531182,
                                2020726.88432782
                            ],
                            [
                                -5999999.06749935,
                                1876389.24973297
                            ],
                            [
                                -6166665.8118744,
                                1876389.24973297
                            ],
                            [
                                -6249999.18406193,
                                2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "440996"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5999999.06749935,
                                1876389.24973297
                            ],
                            [
                                -5916665.69531182,
                                2020726.88432782
                            ],
                            [
                                -5749998.95093677,
                                2020726.88432782
                            ],
                            [
                                -5666665.57874924,
                                1876389.24973297
                            ],
                            [
                                -5749998.95093677,
                                1732051.61513813
                            ],
                            [
                                -5916665.69531182,
                                1732051.61513813
                            ],
                            [
                                -5999999.06749935,
                                1876389.24973297
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441051"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5749998.95093677,
                                2020726.88432782
                            ],
                            [
                                -5666665.57874924,
                                2165064.51892266
                            ],
                            [
                                -5499998.83437418,
                                2165064.51892266
                            ],
                            [
                                -5416665.46218666,
                                2020726.88432782
                            ],
                            [
                                -5499998.83437418,
                                1876389.24973297
                            ],
                            [
                                -5666665.57874924,
                                1876389.24973297
                            ],
                            [
                                -5749998.95093677,
                                2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441106"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5499998.83437418,
                                1876389.24973297
                            ],
                            [
                                -5416665.46218666,
                                2020726.88432782
                            ],
                            [
                                -5249998.7178116,
                                2020726.88432782
                            ],
                            [
                                -5166665.34562408,
                                1876389.24973297
                            ],
                            [
                                -5249998.7178116,
                                1732051.61513813
                            ],
                            [
                                -5416665.46218666,
                                1732051.61513813
                            ],
                            [
                                -5499998.83437418,
                                1876389.24973297
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441160"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5249998.7178116,
                                1732051.61513813
                            ],
                            [
                                -5166665.34562408,
                                1876389.24973297
                            ],
                            [
                                -4999998.60124902,
                                1876389.24973297
                            ],
                            [
                                -4916665.22906149,
                                1732051.61513813
                            ],
                            [
                                -4999998.60124902,
                                1587713.98054329
                            ],
                            [
                                -5166665.34562408,
                                1587713.98054329
                            ],
                            [
                                -5249998.7178116,
                                1732051.61513813
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}