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

{
    "features": [
        {
            "properties": {
                "pk": "441708"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2749997.55218579,
                                1154701.07675875
                            ],
                            [
                                -2666664.17999826,
                                1299038.7113536
                            ],
                            [
                                -2499997.43562321,
                                1299038.7113536
                            ],
                            [
                                -2416664.06343568,
                                1154701.07675875
                            ],
                            [
                                -2499997.43562321,
                                1010363.44216391
                            ],
                            [
                                -2666664.17999826,
                                1010363.44216391
                            ],
                            [
                                -2749997.55218579,
                                1154701.07675875
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441710"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2749997.55218579,
                                1732051.61513813
                            ],
                            [
                                -2666664.17999826,
                                1876389.24973297
                            ],
                            [
                                -2499997.43562321,
                                1876389.24973297
                            ],
                            [
                                -2416664.06343568,
                                1732051.61513813
                            ],
                            [
                                -2499997.43562321,
                                1587713.98054329
                            ],
                            [
                                -2666664.17999826,
                                1587713.98054329
                            ],
                            [
                                -2749997.55218579,
                                1732051.61513813
                            ]
                        ]
                    ]
                ],
                "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": "441817"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2249997.31906062,
                                866025.807569066
                            ],
                            [
                                -2166663.9468731,
                                1010363.44216391
                            ],
                            [
                                -1999997.20249804,
                                1010363.44216391
                            ],
                            [
                                -1916663.83031052,
                                866025.807569066
                            ],
                            [
                                -1999997.20249804,
                                721688.172974221
                            ],
                            [
                                -2166663.9468731,
                                721688.172974221
                            ],
                            [
                                -2249997.31906062,
                                866025.807569066
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441935"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -1749997.08593546,
                                3175427.96108657
                            ],
                            [
                                -1666663.71374793,
                                3319765.59568142
                            ],
                            [
                                -1499996.96937288,
                                3319765.59568142
                            ],
                            [
                                -1416663.59718535,
                                3175427.96108657
                            ],
                            [
                                -1499996.96937288,
                                3031090.32649173
                            ],
                            [
                                -1666663.71374793,
                                3031090.32649173
                            ],
                            [
                                -1749997.08593546,
                                3175427.96108657
                            ]
                        ]
                    ]
                ],
                "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": "442358"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -1732051.61513813
                            ],
                            [
                                333337.218752719,
                                -1587713.98054329
                            ],
                            [
                                500003.963127773,
                                -1587713.98054329
                            ],
                            [
                                583337.3353153,
                                -1732051.61513813
                            ],
                            [
                                500003.963127773,
                                -1876389.24973297
                            ],
                            [
                                333337.218752719,
                                -1876389.24973297
                            ],
                            [
                                250003.846565192,
                                -1732051.61513813
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442571"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                -3752778.49946595
                            ],
                            [
                                1333337.68500304,
                                -3608440.86487111
                            ],
                            [
                                1500004.4293781,
                                -3608440.86487111
                            ],
                            [
                                1583337.80156563,
                                -3752778.49946595
                            ],
                            [
                                1500004.4293781,
                                -3897116.13406079
                            ],
                            [
                                1333337.68500304,
                                -3897116.13406079
                            ],
                            [
                                1250004.31281552,
                                -3752778.49946595
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442983"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3000005.12875359,
                                3897116.13406079
                            ],
                            [
                                3083338.50094112,
                                4041453.76865564
                            ],
                            [
                                3250005.24531617,
                                4041453.76865564
                            ],
                            [
                                3333338.6175037,
                                3897116.13406079
                            ],
                            [
                                3250005.24531617,
                                3752778.49946595
                            ],
                            [
                                3083338.50094112,
                                3752778.49946595
                            ],
                            [
                                3000005.12875359,
                                3897116.13406079
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443138"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3750005.47844133,
                                1154701.07675875
                            ],
                            [
                                3833338.85062886,
                                1299038.7113536
                            ],
                            [
                                4000005.59500391,
                                1299038.7113536
                            ],
                            [
                                4083338.96719144,
                                1154701.07675875
                            ],
                            [
                                4000005.59500391,
                                1010363.44216391
                            ],
                            [
                                3833338.85062886,
                                1010363.44216391
                            ],
                            [
                                3750005.47844133,
                                1154701.07675875
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443250"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4250005.7115665,
                                1732051.61513813
                            ],
                            [
                                4333339.08375402,
                                1876389.24973297
                            ],
                            [
                                4500005.82812908,
                                1876389.24973297
                            ],
                            [
                                4583339.2003166,
                                1732051.61513813
                            ],
                            [
                                4500005.82812908,
                                1587713.98054329
                            ],
                            [
                                4333339.08375402,
                                1587713.98054329
                            ],
                            [
                                4250005.7115665,
                                1732051.61513813
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}