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=5818786
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": "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": "442927"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                3752778.49946595
                            ],
                            [
                                2833338.38437853,
                                3897116.13406079
                            ],
                            [
                                3000005.12875359,
                                3897116.13406079
                            ],
                            [
                                3083338.50094112,
                                3752778.49946595
                            ],
                            [
                                3000005.12875359,
                                3608440.86487111
                            ],
                            [
                                2833338.38437853,
                                3608440.86487111
                            ],
                            [
                                2750005.01219101,
                                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": "443193"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4000005.59500391,
                                1010363.44216391
                            ],
                            [
                                4083338.96719144,
                                1154701.07675875
                            ],
                            [
                                4250005.7115665,
                                1154701.07675875
                            ],
                            [
                                4333339.08375402,
                                1010363.44216391
                            ],
                            [
                                4250005.7115665,
                                866025.807569066
                            ],
                            [
                                4083338.96719144,
                                866025.807569066
                            ],
                            [
                                4000005.59500391,
                                1010363.44216391
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443195"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4000005.59500391,
                                1587713.98054329
                            ],
                            [
                                4083338.96719144,
                                1732051.61513813
                            ],
                            [
                                4250005.7115665,
                                1732051.61513813
                            ],
                            [
                                4333339.08375402,
                                1587713.98054329
                            ],
                            [
                                4250005.7115665,
                                1443376.34594844
                            ],
                            [
                                4083338.96719144,
                                1443376.34594844
                            ],
                            [
                                4000005.59500391,
                                1587713.98054329
                            ]
                        ]
                    ]
                ],
                "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"
}