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=5280102
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": "442405"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                500003.963127773,
                                -4185791.40325048
                            ],
                            [
                                583337.3353153,
                                -4041453.76865564
                            ],
                            [
                                750004.079690354,
                                -4041453.76865564
                            ],
                            [
                                833337.451877881,
                                -4185791.40325048
                            ],
                            [
                                750004.079690354,
                                -4330129.03784533
                            ],
                            [
                                583337.3353153,
                                -4330129.03784533
                            ],
                            [
                                500003.963127773,
                                -4185791.40325048
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442459"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                750004.079690354,
                                -4330129.03784533
                            ],
                            [
                                833337.451877881,
                                -4185791.40325048
                            ],
                            [
                                1000004.19625294,
                                -4185791.40325048
                            ],
                            [
                                1083337.56844046,
                                -4330129.03784533
                            ],
                            [
                                1000004.19625294,
                                -4474466.67244017
                            ],
                            [
                                833337.451877881,
                                -4474466.67244017
                            ],
                            [
                                750004.079690354,
                                -4330129.03784533
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442898"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                -4618804.30703502
                            ],
                            [
                                2833338.38437853,
                                -4474466.67244017
                            ],
                            [
                                3000005.12875359,
                                -4474466.67244017
                            ],
                            [
                                3083338.50094112,
                                -4618804.30703502
                            ],
                            [
                                3000005.12875359,
                                -4763141.94162986
                            ],
                            [
                                2833338.38437853,
                                -4763141.94162986
                            ],
                            [
                                2750005.01219101,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442954"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                3000005.12875359,
                                -4474466.67244017
                            ],
                            [
                                3083338.50094112,
                                -4330129.03784533
                            ],
                            [
                                3250005.24531617,
                                -4330129.03784533
                            ],
                            [
                                3333338.6175037,
                                -4474466.67244017
                            ],
                            [
                                3250005.24531617,
                                -4618804.30703502
                            ],
                            [
                                3083338.50094112,
                                -4618804.30703502
                            ],
                            [
                                3000005.12875359,
                                -4474466.67244017
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "443062"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                3500005.36187875,
                                -5051817.21081955
                            ],
                            [
                                3583338.73406628,
                                -4907479.5762247
                            ],
                            [
                                3750005.47844133,
                                -4907479.5762247
                            ],
                            [
                                3833338.85062886,
                                -5051817.21081955
                            ],
                            [
                                3750005.47844133,
                                -5196154.84541439
                            ],
                            [
                                3583338.73406628,
                                -5196154.84541439
                            ],
                            [
                                3500005.36187875,
                                -5051817.21081955
                            ]
                        ]
                    ]
                ]
            }
        }
    ]
}