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

{
    "features": [
        {
            "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": "441765"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2499997.43562321,
                                1587713.98054329
                            ],
                            [
                                -2416664.06343568,
                                1732051.61513813
                            ],
                            [
                                -2249997.31906062,
                                1732051.61513813
                            ],
                            [
                                -2166663.9468731,
                                1587713.98054329
                            ],
                            [
                                -2249997.31906062,
                                1443376.34594844
                            ],
                            [
                                -2416664.06343568,
                                1443376.34594844
                            ],
                            [
                                -2499997.43562321,
                                1587713.98054329
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441771"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2499997.43562321,
                                3319765.59568142
                            ],
                            [
                                -2416664.06343568,
                                3464103.23027626
                            ],
                            [
                                -2249997.31906062,
                                3464103.23027626
                            ],
                            [
                                -2166663.9468731,
                                3319765.59568142
                            ],
                            [
                                -2249997.31906062,
                                3175427.96108657
                            ],
                            [
                                -2416664.06343568,
                                3175427.96108657
                            ],
                            [
                                -2499997.43562321,
                                3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442037"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -1249996.8528103,
                                866025.807569066
                            ],
                            [
                                -1166663.48062277,
                                1010363.44216391
                            ],
                            [
                                -999996.736247716,
                                1010363.44216391
                            ],
                            [
                                -916663.364060189,
                                866025.807569066
                            ],
                            [
                                -999996.736247716,
                                721688.172974221
                            ],
                            [
                                -1166663.48062277,
                                721688.172974221
                            ],
                            [
                                -1249996.8528103,
                                866025.807569066
                            ]
                        ]
                    ]
                ],
                "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": "442093"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -999996.736247716,
                                1010363.44216391
                            ],
                            [
                                -916663.364060189,
                                1154701.07675875
                            ],
                            [
                                -749996.619685135,
                                1154701.07675875
                            ],
                            [
                                -666663.247497608,
                                1010363.44216391
                            ],
                            [
                                -749996.619685135,
                                866025.807569066
                            ],
                            [
                                -916663.364060189,
                                866025.807569066
                            ],
                            [
                                -999996.736247716,
                                1010363.44216391
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442305"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                -1299038.7113536
                            ],
                            [
                                83337.1021901372,
                                -1154701.07675875
                            ],
                            [
                                250003.846565192,
                                -1154701.07675875
                            ],
                            [
                                333337.218752719,
                                -1299038.7113536
                            ],
                            [
                                250003.846565192,
                                -1443376.34594844
                            ],
                            [
                                83337.1021901372,
                                -1443376.34594844
                            ],
                            [
                                3.73000261001289,
                                -1299038.7113536
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442359"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -1443376.34594844
                            ],
                            [
                                333337.218752719,
                                -1299038.7113536
                            ],
                            [
                                500003.963127773,
                                -1299038.7113536
                            ],
                            [
                                583337.3353153,
                                -1443376.34594844
                            ],
                            [
                                500003.963127773,
                                -1587713.98054329
                            ],
                            [
                                333337.218752719,
                                -1587713.98054329
                            ],
                            [
                                250003.846565192,
                                -1443376.34594844
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443249"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4250005.7115665,
                                1443376.34594844
                            ],
                            [
                                4333339.08375402,
                                1587713.98054329
                            ],
                            [
                                4500005.82812908,
                                1587713.98054329
                            ],
                            [
                                4583339.2003166,
                                1443376.34594844
                            ],
                            [
                                4500005.82812908,
                                1299038.7113536
                            ],
                            [
                                4333339.08375402,
                                1299038.7113536
                            ],
                            [
                                4250005.7115665,
                                1443376.34594844
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}