Process queries for HexGrid objects. Will be deprecated in future version :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=5331235
HTTP 200 OK
Allow: GET, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "type": "FeatureCollection",
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "features": [
        {
            "type": "Feature",
            "properties": {
                "pk": "441106"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -5499998.83437418,
                                1876389.24973297
                            ],
                            [
                                -5416665.46218666,
                                2020726.88432782
                            ],
                            [
                                -5249998.7178116,
                                2020726.88432782
                            ],
                            [
                                -5166665.34562408,
                                1876389.24973297
                            ],
                            [
                                -5249998.7178116,
                                1732051.61513813
                            ],
                            [
                                -5416665.46218666,
                                1732051.61513813
                            ],
                            [
                                -5499998.83437418,
                                1876389.24973297
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "441437"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -3999998.13499869,
                                2165064.51892266
                            ],
                            [
                                -3916664.76281117,
                                2309402.15351751
                            ],
                            [
                                -3749998.01843611,
                                2309402.15351751
                            ],
                            [
                                -3666664.64624859,
                                2165064.51892266
                            ],
                            [
                                -3749998.01843611,
                                2020726.88432782
                            ],
                            [
                                -3916664.76281117,
                                2020726.88432782
                            ],
                            [
                                -3999998.13499869,
                                2165064.51892266
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "443145"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                3750005.47844133,
                                3175427.96108657
                            ],
                            [
                                3833338.85062886,
                                3319765.59568142
                            ],
                            [
                                4000005.59500391,
                                3319765.59568142
                            ],
                            [
                                4083338.96719144,
                                3175427.96108657
                            ],
                            [
                                4000005.59500391,
                                3031090.32649173
                            ],
                            [
                                3833338.85062886,
                                3031090.32649173
                            ],
                            [
                                3750005.47844133,
                                3175427.96108657
                            ]
                        ]
                    ]
                ]
            }
        }
    ]
}