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

{
    "features": [
        {
            "properties": {
                "pk": "441236"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4999998.60124902,
                                7649894.63352675
                            ],
                            [
                                -4916665.22906149,
                                7794232.26812159
                            ],
                            [
                                -4749998.48468644,
                                7794232.26812159
                            ],
                            [
                                -4666665.11249891,
                                7649894.63352675
                            ],
                            [
                                -4749998.48468644,
                                7505556.9989319
                            ],
                            [
                                -4916665.22906149,
                                7505556.9989319
                            ],
                            [
                                -4999998.60124902,
                                7649894.63352675
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441386"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4249998.25156128,
                                3464103.23027626
                            ],
                            [
                                -4166664.87937375,
                                3608440.86487111
                            ],
                            [
                                -3999998.13499869,
                                3608440.86487111
                            ],
                            [
                                -3916664.76281117,
                                3464103.23027626
                            ],
                            [
                                -3999998.13499869,
                                3319765.59568142
                            ],
                            [
                                -4166664.87937375,
                                3319765.59568142
                            ],
                            [
                                -4249998.25156128,
                                3464103.23027626
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441553"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3499997.90187353,
                                3897116.13406079
                            ],
                            [
                                -3416664.529686,
                                4041453.76865564
                            ],
                            [
                                -3249997.78531095,
                                4041453.76865564
                            ],
                            [
                                -3166664.41312342,
                                3897116.13406079
                            ],
                            [
                                -3249997.78531095,
                                3752778.49946595
                            ],
                            [
                                -3416664.529686,
                                3752778.49946595
                            ],
                            [
                                -3499997.90187353,
                                3897116.13406079
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441701"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2749997.55218579,
                                -866025.807569065
                            ],
                            [
                                -2666664.17999826,
                                -721688.17297422
                            ],
                            [
                                -2499997.43562321,
                                -721688.17297422
                            ],
                            [
                                -2416664.06343568,
                                -866025.807569065
                            ],
                            [
                                -2499997.43562321,
                                -1010363.44216391
                            ],
                            [
                                -2666664.17999826,
                                -1010363.44216391
                            ],
                            [
                                -2749997.55218579,
                                -866025.807569065
                            ]
                        ]
                    ]
                ],
                "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": "442255"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                288675.269189689
                            ],
                            [
                                -166663.014372444,
                                433012.903784533
                            ],
                            [
                                3.73000261001289,
                                433012.903784533
                            ],
                            [
                                83337.1021901372,
                                288675.269189689
                            ],
                            [
                                3.73000261001289,
                                144337.634594845
                            ],
                            [
                                -166663.014372444,
                                144337.634594845
                            ],
                            [
                                -249996.386559972,
                                288675.269189689
                            ]
                        ]
                    ]
                ],
                "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"
            }
        },
        {
            "properties": {
                "pk": "443414"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5000006.06125424,
                                1299038.7113536
                            ],
                            [
                                5083339.43344177,
                                1443376.34594844
                            ],
                            [
                                5250006.17781682,
                                1443376.34594844
                            ],
                            [
                                5333339.55000435,
                                1299038.7113536
                            ],
                            [
                                5250006.17781682,
                                1154701.07675875
                            ],
                            [
                                5083339.43344177,
                                1154701.07675875
                            ],
                            [
                                5000006.06125424,
                                1299038.7113536
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}