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

{
    "features": [
        {
            "properties": {
                "pk": "441378"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4249998.25156128,
                                1154701.07675875
                            ],
                            [
                                -4166664.87937375,
                                1299038.7113536
                            ],
                            [
                                -3999998.13499869,
                                1299038.7113536
                            ],
                            [
                                -3916664.76281117,
                                1154701.07675875
                            ],
                            [
                                -3999998.13499869,
                                1010363.44216391
                            ],
                            [
                                -4166664.87937375,
                                1010363.44216391
                            ],
                            [
                                -4249998.25156128,
                                1154701.07675875
                            ]
                        ]
                    ]
                ],
                "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": "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": "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": "441770"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2499997.43562321,
                                3031090.32649173
                            ],
                            [
                                -2416664.06343568,
                                3175427.96108657
                            ],
                            [
                                -2249997.31906062,
                                3175427.96108657
                            ],
                            [
                                -2166663.9468731,
                                3031090.32649173
                            ],
                            [
                                -2249997.31906062,
                                2886752.69189689
                            ],
                            [
                                -2416664.06343568,
                                2886752.69189689
                            ],
                            [
                                -2499997.43562321,
                                3031090.32649173
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442543"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                3897116.13406079
                            ],
                            [
                                1083337.56844046,
                                4041453.76865564
                            ],
                            [
                                1250004.31281552,
                                4041453.76865564
                            ],
                            [
                                1333337.68500304,
                                3897116.13406079
                            ],
                            [
                                1250004.31281552,
                                3752778.49946595
                            ],
                            [
                                1083337.56844046,
                                3752778.49946595
                            ],
                            [
                                1000004.19625294,
                                3897116.13406079
                            ]
                        ]
                    ]
                ],
                "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": "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"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}