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

{
    "features": [
        {
            "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": "441720"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2749997.55218579,
                                4618804.30703502
                            ],
                            [
                                -2666664.17999826,
                                4763141.94162986
                            ],
                            [
                                -2499997.43562321,
                                4763141.94162986
                            ],
                            [
                                -2416664.06343568,
                                4618804.30703502
                            ],
                            [
                                -2499997.43562321,
                                4474466.67244017
                            ],
                            [
                                -2666664.17999826,
                                4474466.67244017
                            ],
                            [
                                -2749997.55218579,
                                4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441760"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2499997.43562321,
                                144337.634594845
                            ],
                            [
                                -2416664.06343568,
                                288675.269189689
                            ],
                            [
                                -2249997.31906062,
                                288675.269189689
                            ],
                            [
                                -2166663.9468731,
                                144337.634594845
                            ],
                            [
                                -2249997.31906062,
                                0.0
                            ],
                            [
                                -2416664.06343568,
                                0.0
                            ],
                            [
                                -2499997.43562321,
                                144337.634594845
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441773"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2499997.43562321,
                                3897116.13406079
                            ],
                            [
                                -2416664.06343568,
                                4041453.76865564
                            ],
                            [
                                -2249997.31906062,
                                4041453.76865564
                            ],
                            [
                                -2166663.9468731,
                                3897116.13406079
                            ],
                            [
                                -2249997.31906062,
                                3752778.49946595
                            ],
                            [
                                -2416664.06343568,
                                3752778.49946595
                            ],
                            [
                                -2499997.43562321,
                                3897116.13406079
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442350"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -4041453.76865564
                            ],
                            [
                                333337.218752719,
                                -3897116.13406079
                            ],
                            [
                                500003.963127773,
                                -3897116.13406079
                            ],
                            [
                                583337.3353153,
                                -4041453.76865564
                            ],
                            [
                                500003.963127773,
                                -4185791.40325048
                            ],
                            [
                                333337.218752719,
                                -4185791.40325048
                            ],
                            [
                                250003.846565192,
                                -4041453.76865564
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442577"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                -2020726.88432782
                            ],
                            [
                                1333337.68500304,
                                -1876389.24973297
                            ],
                            [
                                1500004.4293781,
                                -1876389.24973297
                            ],
                            [
                                1583337.80156563,
                                -2020726.88432782
                            ],
                            [
                                1500004.4293781,
                                -2165064.51892266
                            ],
                            [
                                1333337.68500304,
                                -2165064.51892266
                            ],
                            [
                                1250004.31281552,
                                -2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442632"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1500004.4293781,
                                -2165064.51892266
                            ],
                            [
                                1583337.80156563,
                                -2020726.88432782
                            ],
                            [
                                1750004.54594068,
                                -2020726.88432782
                            ],
                            [
                                1833337.91812821,
                                -2165064.51892266
                            ],
                            [
                                1750004.54594068,
                                -2309402.15351751
                            ],
                            [
                                1583337.80156563,
                                -2309402.15351751
                            ],
                            [
                                1500004.4293781,
                                -2165064.51892266
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442633"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1500004.4293781,
                                -1876389.24973297
                            ],
                            [
                                1583337.80156563,
                                -1732051.61513813
                            ],
                            [
                                1750004.54594068,
                                -1732051.61513813
                            ],
                            [
                                1833337.91812821,
                                -1876389.24973297
                            ],
                            [
                                1750004.54594068,
                                -2020726.88432782
                            ],
                            [
                                1583337.80156563,
                                -2020726.88432782
                            ],
                            [
                                1500004.4293781,
                                -1876389.24973297
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442848"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                -3319765.59568142
                            ],
                            [
                                2583338.26781595,
                                -3175427.96108657
                            ],
                            [
                                2750005.01219101,
                                -3175427.96108657
                            ],
                            [
                                2833338.38437853,
                                -3319765.59568142
                            ],
                            [
                                2750005.01219101,
                                -3464103.23027626
                            ],
                            [
                                2583338.26781595,
                                -3464103.23027626
                            ],
                            [
                                2500004.89562843,
                                -3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}