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

{
    "features": [
        {
            "properties": {
                "pk": "441268"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4749998.48468644,
                                1154701.07675875
                            ],
                            [
                                -4666665.11249891,
                                1299038.7113536
                            ],
                            [
                                -4499998.36812386,
                                1299038.7113536
                            ],
                            [
                                -4416664.99593633,
                                1154701.07675875
                            ],
                            [
                                -4499998.36812386,
                                1010363.44216391
                            ],
                            [
                                -4666665.11249891,
                                1010363.44216391
                            ],
                            [
                                -4749998.48468644,
                                1154701.07675875
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441328"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4499998.36812386,
                                2453739.78811235
                            ],
                            [
                                -4416664.99593633,
                                2598077.4227072
                            ],
                            [
                                -4249998.25156128,
                                2598077.4227072
                            ],
                            [
                                -4166664.87937375,
                                2453739.78811235
                            ],
                            [
                                -4249998.25156128,
                                2309402.15351751
                            ],
                            [
                                -4416664.99593633,
                                2309402.15351751
                            ],
                            [
                                -4499998.36812386,
                                2453739.78811235
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442207"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -499996.503122553,
                                2165064.51892266
                            ],
                            [
                                -416663.130935026,
                                2309402.15351751
                            ],
                            [
                                -249996.386559972,
                                2309402.15351751
                            ],
                            [
                                -166663.014372444,
                                2165064.51892266
                            ],
                            [
                                -249996.386559972,
                                2020726.88432782
                            ],
                            [
                                -416663.130935026,
                                2020726.88432782
                            ],
                            [
                                -499996.503122553,
                                2165064.51892266
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442262"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                2309402.15351751
                            ],
                            [
                                -166663.014372444,
                                2453739.78811235
                            ],
                            [
                                3.73000261001289,
                                2453739.78811235
                            ],
                            [
                                83337.1021901372,
                                2309402.15351751
                            ],
                            [
                                3.73000261001289,
                                2165064.51892266
                            ],
                            [
                                -166663.014372444,
                                2165064.51892266
                            ],
                            [
                                -249996.386559972,
                                2309402.15351751
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443091"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3500005.36187875,
                                3319765.59568142
                            ],
                            [
                                3583338.73406628,
                                3464103.23027626
                            ],
                            [
                                3750005.47844133,
                                3464103.23027626
                            ],
                            [
                                3833338.85062886,
                                3319765.59568142
                            ],
                            [
                                3750005.47844133,
                                3175427.96108657
                            ],
                            [
                                3583338.73406628,
                                3175427.96108657
                            ],
                            [
                                3500005.36187875,
                                3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}