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

{
    "features": [
        {
            "properties": {
                "pk": "441224"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4999998.60124902,
                                4185791.40325048
                            ],
                            [
                                -4916665.22906149,
                                4330129.03784533
                            ],
                            [
                                -4749998.48468644,
                                4330129.03784533
                            ],
                            [
                                -4666665.11249891,
                                4185791.40325048
                            ],
                            [
                                -4749998.48468644,
                                4041453.76865564
                            ],
                            [
                                -4916665.22906149,
                                4041453.76865564
                            ],
                            [
                                -4999998.60124902,
                                4185791.40325048
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441607"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3249997.78531095,
                                3752778.49946595
                            ],
                            [
                                -3166664.41312342,
                                3897116.13406079
                            ],
                            [
                                -2999997.66874837,
                                3897116.13406079
                            ],
                            [
                                -2916664.29656084,
                                3752778.49946595
                            ],
                            [
                                -2999997.66874837,
                                3608440.86487111
                            ],
                            [
                                -3166664.41312342,
                                3608440.86487111
                            ],
                            [
                                -3249997.78531095,
                                3752778.49946595
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442039"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -1249996.8528103,
                                1443376.34594844
                            ],
                            [
                                -1166663.48062277,
                                1587713.98054329
                            ],
                            [
                                -999996.736247716,
                                1587713.98054329
                            ],
                            [
                                -916663.364060189,
                                1443376.34594844
                            ],
                            [
                                -999996.736247716,
                                1299038.7113536
                            ],
                            [
                                -1166663.48062277,
                                1299038.7113536
                            ],
                            [
                                -1249996.8528103,
                                1443376.34594844
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442146"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -749996.619685135,
                                577350.538379378
                            ],
                            [
                                -666663.247497608,
                                721688.172974221
                            ],
                            [
                                -499996.503122553,
                                721688.172974221
                            ],
                            [
                                -416663.130935026,
                                577350.538379378
                            ],
                            [
                                -499996.503122553,
                                433012.903784533
                            ],
                            [
                                -666663.247497608,
                                433012.903784533
                            ],
                            [
                                -749996.619685135,
                                577350.538379378
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443309"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4500005.82812908,
                                2742415.05730204
                            ],
                            [
                                4583339.2003166,
                                2886752.69189689
                            ],
                            [
                                4750005.94469166,
                                2886752.69189689
                            ],
                            [
                                4833339.31687919,
                                2742415.05730204
                            ],
                            [
                                4750005.94469166,
                                2598077.4227072
                            ],
                            [
                                4583339.2003166,
                                2598077.4227072
                            ],
                            [
                                4500005.82812908,
                                2742415.05730204
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}