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

{
    "features": [
        {
            "properties": {
                "pk": "441214"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4999998.60124902,
                                1299038.7113536
                            ],
                            [
                                -4916665.22906149,
                                1443376.34594844
                            ],
                            [
                                -4749998.48468644,
                                1443376.34594844
                            ],
                            [
                                -4666665.11249891,
                                1299038.7113536
                            ],
                            [
                                -4749998.48468644,
                                1154701.07675875
                            ],
                            [
                                -4916665.22906149,
                                1154701.07675875
                            ],
                            [
                                -4999998.60124902,
                                1299038.7113536
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441314"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4499998.36812386,
                                -1587713.98054329
                            ],
                            [
                                -4416664.99593633,
                                -1443376.34594844
                            ],
                            [
                                -4249998.25156128,
                                -1443376.34594844
                            ],
                            [
                                -4166664.87937375,
                                -1587713.98054329
                            ],
                            [
                                -4249998.25156128,
                                -1732051.61513813
                            ],
                            [
                                -4416664.99593633,
                                -1732051.61513813
                            ],
                            [
                                -4499998.36812386,
                                -1587713.98054329
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441427"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3999998.13499869,
                                -721688.17297422
                            ],
                            [
                                -3916664.76281117,
                                -577350.538379377
                            ],
                            [
                                -3749998.01843611,
                                -577350.538379377
                            ],
                            [
                                -3666664.64624859,
                                -721688.17297422
                            ],
                            [
                                -3749998.01843611,
                                -866025.807569065
                            ],
                            [
                                -3916664.76281117,
                                -866025.807569065
                            ],
                            [
                                -3999998.13499869,
                                -721688.17297422
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441534"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3499997.90187353,
                                -1587713.98054329
                            ],
                            [
                                -3416664.529686,
                                -1443376.34594844
                            ],
                            [
                                -3249997.78531095,
                                -1443376.34594844
                            ],
                            [
                                -3166664.41312342,
                                -1587713.98054329
                            ],
                            [
                                -3249997.78531095,
                                -1732051.61513813
                            ],
                            [
                                -3416664.529686,
                                -1732051.61513813
                            ],
                            [
                                -3499997.90187353,
                                -1587713.98054329
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441641"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2999997.66874837,
                                -2453739.78811235
                            ],
                            [
                                -2916664.29656084,
                                -2309402.15351751
                            ],
                            [
                                -2749997.55218579,
                                -2309402.15351751
                            ],
                            [
                                -2666664.17999826,
                                -2453739.78811235
                            ],
                            [
                                -2749997.55218579,
                                -2598077.4227072
                            ],
                            [
                                -2916664.29656084,
                                -2598077.4227072
                            ],
                            [
                                -2999997.66874837,
                                -2453739.78811235
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441695"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2749997.55218579,
                                -2598077.4227072
                            ],
                            [
                                -2666664.17999826,
                                -2453739.78811235
                            ],
                            [
                                -2499997.43562321,
                                -2453739.78811235
                            ],
                            [
                                -2416664.06343568,
                                -2598077.4227072
                            ],
                            [
                                -2499997.43562321,
                                -2742415.05730204
                            ],
                            [
                                -2666664.17999826,
                                -2742415.05730204
                            ],
                            [
                                -2749997.55218579,
                                -2598077.4227072
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441860"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -1999997.20249804,
                                -2742415.05730204
                            ],
                            [
                                -1916663.83031052,
                                -2598077.4227072
                            ],
                            [
                                -1749997.08593546,
                                -2598077.4227072
                            ],
                            [
                                -1666663.71374793,
                                -2742415.05730204
                            ],
                            [
                                -1749997.08593546,
                                -2886752.69189688
                            ],
                            [
                                -1916663.83031052,
                                -2886752.69189688
                            ],
                            [
                                -1999997.20249804,
                                -2742415.05730204
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442038"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -1249996.8528103,
                                1154701.07675875
                            ],
                            [
                                -1166663.48062277,
                                1299038.7113536
                            ],
                            [
                                -999996.736247716,
                                1299038.7113536
                            ],
                            [
                                -916663.364060189,
                                1154701.07675875
                            ],
                            [
                                -999996.736247716,
                                1010363.44216391
                            ],
                            [
                                -1166663.48062277,
                                1010363.44216391
                            ],
                            [
                                -1249996.8528103,
                                1154701.07675875
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442201"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -499996.503122553,
                                433012.903784533
                            ],
                            [
                                -416663.130935026,
                                577350.538379378
                            ],
                            [
                                -249996.386559972,
                                577350.538379378
                            ],
                            [
                                -166663.014372444,
                                433012.903784533
                            ],
                            [
                                -249996.386559972,
                                288675.269189689
                            ],
                            [
                                -416663.130935026,
                                288675.269189689
                            ],
                            [
                                -499996.503122553,
                                433012.903784533
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442254"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                0.0
                            ],
                            [
                                -166663.014372444,
                                144337.634594845
                            ],
                            [
                                3.73000261001289,
                                144337.634594845
                            ],
                            [
                                83337.1021901372,
                                0.0
                            ],
                            [
                                3.73000261001289,
                                -144337.634594844
                            ],
                            [
                                -166663.014372444,
                                -144337.634594844
                            ],
                            [
                                -249996.386559972,
                                0.0
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}