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

{
    "features": [
        {
            "properties": {
                "pk": "441105"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5499998.83437418,
                                1587713.98054329
                            ],
                            [
                                -5416665.46218666,
                                1732051.61513813
                            ],
                            [
                                -5249998.7178116,
                                1732051.61513813
                            ],
                            [
                                -5166665.34562408,
                                1587713.98054329
                            ],
                            [
                                -5249998.7178116,
                                1443376.34594844
                            ],
                            [
                                -5416665.46218666,
                                1443376.34594844
                            ],
                            [
                                -5499998.83437418,
                                1587713.98054329
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441488"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3749998.01843611,
                                1154701.07675875
                            ],
                            [
                                -3666664.64624859,
                                1299038.7113536
                            ],
                            [
                                -3499997.90187353,
                                1299038.7113536
                            ],
                            [
                                -3416664.529686,
                                1154701.07675875
                            ],
                            [
                                -3499997.90187353,
                                1010363.44216391
                            ],
                            [
                                -3666664.64624859,
                                1010363.44216391
                            ],
                            [
                                -3749998.01843611,
                                1154701.07675875
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441489"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3749998.01843611,
                                1443376.34594844
                            ],
                            [
                                -3666664.64624859,
                                1587713.98054329
                            ],
                            [
                                -3499997.90187353,
                                1587713.98054329
                            ],
                            [
                                -3416664.529686,
                                1443376.34594844
                            ],
                            [
                                -3499997.90187353,
                                1299038.7113536
                            ],
                            [
                                -3666664.64624859,
                                1299038.7113536
                            ],
                            [
                                -3749998.01843611,
                                1443376.34594844
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441492"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3749998.01843611,
                                2309402.15351751
                            ],
                            [
                                -3666664.64624859,
                                2453739.78811235
                            ],
                            [
                                -3499997.90187353,
                                2453739.78811235
                            ],
                            [
                                -3416664.529686,
                                2309402.15351751
                            ],
                            [
                                -3499997.90187353,
                                2165064.51892266
                            ],
                            [
                                -3666664.64624859,
                                2165064.51892266
                            ],
                            [
                                -3749998.01843611,
                                2309402.15351751
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441654"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2999997.66874837,
                                1299038.7113536
                            ],
                            [
                                -2916664.29656084,
                                1443376.34594844
                            ],
                            [
                                -2749997.55218579,
                                1443376.34594844
                            ],
                            [
                                -2666664.17999826,
                                1299038.7113536
                            ],
                            [
                                -2749997.55218579,
                                1154701.07675875
                            ],
                            [
                                -2916664.29656084,
                                1154701.07675875
                            ],
                            [
                                -2999997.66874837,
                                1299038.7113536
                            ]
                        ]
                    ]
                ],
                "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": "442151"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -749996.619685135,
                                2020726.88432782
                            ],
                            [
                                -666663.247497608,
                                2165064.51892266
                            ],
                            [
                                -499996.503122553,
                                2165064.51892266
                            ],
                            [
                                -416663.130935026,
                                2020726.88432782
                            ],
                            [
                                -499996.503122553,
                                1876389.24973297
                            ],
                            [
                                -666663.247497608,
                                1876389.24973297
                            ],
                            [
                                -749996.619685135,
                                2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443249"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4250005.7115665,
                                1443376.34594844
                            ],
                            [
                                4333339.08375402,
                                1587713.98054329
                            ],
                            [
                                4500005.82812908,
                                1587713.98054329
                            ],
                            [
                                4583339.2003166,
                                1443376.34594844
                            ],
                            [
                                4500005.82812908,
                                1299038.7113536
                            ],
                            [
                                4333339.08375402,
                                1299038.7113536
                            ],
                            [
                                4250005.7115665,
                                1443376.34594844
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}