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

{
    "features": [
        {
            "properties": {
                "pk": "441271"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4749998.48468644,
                                2020726.88432782
                            ],
                            [
                                -4666665.11249891,
                                2165064.51892266
                            ],
                            [
                                -4499998.36812386,
                                2165064.51892266
                            ],
                            [
                                -4416664.99593633,
                                2020726.88432782
                            ],
                            [
                                -4499998.36812386,
                                1876389.24973297
                            ],
                            [
                                -4666665.11249891,
                                1876389.24973297
                            ],
                            [
                                -4749998.48468644,
                                2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441326"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4499998.36812386,
                                1876389.24973297
                            ],
                            [
                                -4416664.99593633,
                                2020726.88432782
                            ],
                            [
                                -4249998.25156128,
                                2020726.88432782
                            ],
                            [
                                -4166664.87937375,
                                1876389.24973297
                            ],
                            [
                                -4249998.25156128,
                                1732051.61513813
                            ],
                            [
                                -4416664.99593633,
                                1732051.61513813
                            ],
                            [
                                -4499998.36812386,
                                1876389.24973297
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441379"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4249998.25156128,
                                1443376.34594844
                            ],
                            [
                                -4166664.87937375,
                                1587713.98054329
                            ],
                            [
                                -3999998.13499869,
                                1587713.98054329
                            ],
                            [
                                -3916664.76281117,
                                1443376.34594844
                            ],
                            [
                                -3999998.13499869,
                                1299038.7113536
                            ],
                            [
                                -4166664.87937375,
                                1299038.7113536
                            ],
                            [
                                -4249998.25156128,
                                1443376.34594844
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441380"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4249998.25156128,
                                1732051.61513813
                            ],
                            [
                                -4166664.87937375,
                                1876389.24973297
                            ],
                            [
                                -3999998.13499869,
                                1876389.24973297
                            ],
                            [
                                -3916664.76281117,
                                1732051.61513813
                            ],
                            [
                                -3999998.13499869,
                                1587713.98054329
                            ],
                            [
                                -4166664.87937375,
                                1587713.98054329
                            ],
                            [
                                -4249998.25156128,
                                1732051.61513813
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441381"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4249998.25156128,
                                2020726.88432782
                            ],
                            [
                                -4166664.87937375,
                                2165064.51892266
                            ],
                            [
                                -3999998.13499869,
                                2165064.51892266
                            ],
                            [
                                -3916664.76281117,
                                2020726.88432782
                            ],
                            [
                                -3999998.13499869,
                                1876389.24973297
                            ],
                            [
                                -4166664.87937375,
                                1876389.24973297
                            ],
                            [
                                -4249998.25156128,
                                2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441435"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3999998.13499869,
                                1587713.98054329
                            ],
                            [
                                -3916664.76281117,
                                1732051.61513813
                            ],
                            [
                                -3749998.01843611,
                                1732051.61513813
                            ],
                            [
                                -3666664.64624859,
                                1587713.98054329
                            ],
                            [
                                -3749998.01843611,
                                1443376.34594844
                            ],
                            [
                                -3916664.76281117,
                                1443376.34594844
                            ],
                            [
                                -3999998.13499869,
                                1587713.98054329
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441437"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3999998.13499869,
                                2165064.51892266
                            ],
                            [
                                -3916664.76281117,
                                2309402.15351751
                            ],
                            [
                                -3749998.01843611,
                                2309402.15351751
                            ],
                            [
                                -3666664.64624859,
                                2165064.51892266
                            ],
                            [
                                -3749998.01843611,
                                2020726.88432782
                            ],
                            [
                                -3916664.76281117,
                                2020726.88432782
                            ],
                            [
                                -3999998.13499869,
                                2165064.51892266
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441662"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2999997.66874837,
                                3608440.86487111
                            ],
                            [
                                -2916664.29656084,
                                3752778.49946595
                            ],
                            [
                                -2749997.55218579,
                                3752778.49946595
                            ],
                            [
                                -2666664.17999826,
                                3608440.86487111
                            ],
                            [
                                -2749997.55218579,
                                3464103.23027626
                            ],
                            [
                                -2916664.29656084,
                                3464103.23027626
                            ],
                            [
                                -2999997.66874837,
                                3608440.86487111
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442268"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                4041453.76865564
                            ],
                            [
                                -166663.014372444,
                                4185791.40325048
                            ],
                            [
                                3.73000261001289,
                                4185791.40325048
                            ],
                            [
                                83337.1021901372,
                                4041453.76865564
                            ],
                            [
                                3.73000261001289,
                                3897116.13406079
                            ],
                            [
                                -166663.014372444,
                                3897116.13406079
                            ],
                            [
                                -249996.386559972,
                                4041453.76865564
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}