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&dataset=276
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": "442083"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -999996.736247716,
                                -1876389.24973297
                            ],
                            [
                                -916663.364060189,
                                -1732051.61513813
                            ],
                            [
                                -749996.619685135,
                                -1732051.61513813
                            ],
                            [
                                -666663.247497608,
                                -1876389.24973297
                            ],
                            [
                                -749996.619685135,
                                -2020726.88432782
                            ],
                            [
                                -916663.364060189,
                                -2020726.88432782
                            ],
                            [
                                -999996.736247716,
                                -1876389.24973297
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442135"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -749996.619685135,
                                -2598077.4227072
                            ],
                            [
                                -666663.247497608,
                                -2453739.78811235
                            ],
                            [
                                -499996.503122553,
                                -2453739.78811235
                            ],
                            [
                                -416663.130935026,
                                -2598077.4227072
                            ],
                            [
                                -499996.503122553,
                                -2742415.05730204
                            ],
                            [
                                -666663.247497608,
                                -2742415.05730204
                            ],
                            [
                                -749996.619685135,
                                -2598077.4227072
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442137"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -749996.619685135,
                                -2020726.88432782
                            ],
                            [
                                -666663.247497608,
                                -1876389.24973297
                            ],
                            [
                                -499996.503122553,
                                -1876389.24973297
                            ],
                            [
                                -416663.130935026,
                                -2020726.88432782
                            ],
                            [
                                -499996.503122553,
                                -2165064.51892266
                            ],
                            [
                                -666663.247497608,
                                -2165064.51892266
                            ],
                            [
                                -749996.619685135,
                                -2020726.88432782
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442138"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -749996.619685135,
                                -1732051.61513813
                            ],
                            [
                                -666663.247497608,
                                -1587713.98054329
                            ],
                            [
                                -499996.503122553,
                                -1587713.98054329
                            ],
                            [
                                -416663.130935026,
                                -1732051.61513813
                            ],
                            [
                                -499996.503122553,
                                -1876389.24973297
                            ],
                            [
                                -666663.247497608,
                                -1876389.24973297
                            ],
                            [
                                -749996.619685135,
                                -1732051.61513813
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442191"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -499996.503122553,
                                -2453739.78811235
                            ],
                            [
                                -416663.130935026,
                                -2309402.15351751
                            ],
                            [
                                -249996.386559972,
                                -2309402.15351751
                            ],
                            [
                                -166663.014372444,
                                -2453739.78811235
                            ],
                            [
                                -249996.386559972,
                                -2598077.4227072
                            ],
                            [
                                -416663.130935026,
                                -2598077.4227072
                            ],
                            [
                                -499996.503122553,
                                -2453739.78811235
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442192"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -499996.503122553,
                                -2165064.51892266
                            ],
                            [
                                -416663.130935026,
                                -2020726.88432782
                            ],
                            [
                                -249996.386559972,
                                -2020726.88432782
                            ],
                            [
                                -166663.014372444,
                                -2165064.51892266
                            ],
                            [
                                -249996.386559972,
                                -2309402.15351751
                            ],
                            [
                                -416663.130935026,
                                -2309402.15351751
                            ],
                            [
                                -499996.503122553,
                                -2165064.51892266
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442193"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -499996.503122553,
                                -1876389.24973297
                            ],
                            [
                                -416663.130935026,
                                -1732051.61513813
                            ],
                            [
                                -249996.386559972,
                                -1732051.61513813
                            ],
                            [
                                -166663.014372444,
                                -1876389.24973297
                            ],
                            [
                                -249996.386559972,
                                -2020726.88432782
                            ],
                            [
                                -416663.130935026,
                                -2020726.88432782
                            ],
                            [
                                -499996.503122553,
                                -1876389.24973297
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442194"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -499996.503122553,
                                -1587713.98054329
                            ],
                            [
                                -416663.130935026,
                                -1443376.34594844
                            ],
                            [
                                -249996.386559972,
                                -1443376.34594844
                            ],
                            [
                                -166663.014372444,
                                -1587713.98054329
                            ],
                            [
                                -249996.386559972,
                                -1732051.61513813
                            ],
                            [
                                -416663.130935026,
                                -1732051.61513813
                            ],
                            [
                                -499996.503122553,
                                -1587713.98054329
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442245"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                -2598077.4227072
                            ],
                            [
                                -166663.014372444,
                                -2453739.78811235
                            ],
                            [
                                3.73000261001289,
                                -2453739.78811235
                            ],
                            [
                                83337.1021901372,
                                -2598077.4227072
                            ],
                            [
                                3.73000261001289,
                                -2742415.05730204
                            ],
                            [
                                -166663.014372444,
                                -2742415.05730204
                            ],
                            [
                                -249996.386559972,
                                -2598077.4227072
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442246"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                -2309402.15351751
                            ],
                            [
                                -166663.014372444,
                                -2165064.51892266
                            ],
                            [
                                3.73000261001289,
                                -2165064.51892266
                            ],
                            [
                                83337.1021901372,
                                -2309402.15351751
                            ],
                            [
                                3.73000261001289,
                                -2453739.78811235
                            ],
                            [
                                -166663.014372444,
                                -2453739.78811235
                            ],
                            [
                                -249996.386559972,
                                -2309402.15351751
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442247"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                -2020726.88432782
                            ],
                            [
                                -166663.014372444,
                                -1876389.24973297
                            ],
                            [
                                3.73000261001289,
                                -1876389.24973297
                            ],
                            [
                                83337.1021901372,
                                -2020726.88432782
                            ],
                            [
                                3.73000261001289,
                                -2165064.51892266
                            ],
                            [
                                -166663.014372444,
                                -2165064.51892266
                            ],
                            [
                                -249996.386559972,
                                -2020726.88432782
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442248"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                -1732051.61513813
                            ],
                            [
                                -166663.014372444,
                                -1587713.98054329
                            ],
                            [
                                3.73000261001289,
                                -1587713.98054329
                            ],
                            [
                                83337.1021901372,
                                -1732051.61513813
                            ],
                            [
                                3.73000261001289,
                                -1876389.24973297
                            ],
                            [
                                -166663.014372444,
                                -1876389.24973297
                            ],
                            [
                                -249996.386559972,
                                -1732051.61513813
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442249"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                -1443376.34594844
                            ],
                            [
                                -166663.014372444,
                                -1299038.7113536
                            ],
                            [
                                3.73000261001289,
                                -1299038.7113536
                            ],
                            [
                                83337.1021901372,
                                -1443376.34594844
                            ],
                            [
                                3.73000261001289,
                                -1587713.98054329
                            ],
                            [
                                -166663.014372444,
                                -1587713.98054329
                            ],
                            [
                                -249996.386559972,
                                -1443376.34594844
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442301"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                -2453739.78811235
                            ],
                            [
                                83337.1021901372,
                                -2309402.15351751
                            ],
                            [
                                250003.846565192,
                                -2309402.15351751
                            ],
                            [
                                333337.218752719,
                                -2453739.78811235
                            ],
                            [
                                250003.846565192,
                                -2598077.4227072
                            ],
                            [
                                83337.1021901372,
                                -2598077.4227072
                            ],
                            [
                                3.73000261001289,
                                -2453739.78811235
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442304"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                -1587713.98054329
                            ],
                            [
                                83337.1021901372,
                                -1443376.34594844
                            ],
                            [
                                250003.846565192,
                                -1443376.34594844
                            ],
                            [
                                333337.218752719,
                                -1587713.98054329
                            ],
                            [
                                250003.846565192,
                                -1732051.61513813
                            ],
                            [
                                83337.1021901372,
                                -1732051.61513813
                            ],
                            [
                                3.73000261001289,
                                -1587713.98054329
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442355"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -2598077.4227072
                            ],
                            [
                                333337.218752719,
                                -2453739.78811235
                            ],
                            [
                                500003.963127773,
                                -2453739.78811235
                            ],
                            [
                                583337.3353153,
                                -2598077.4227072
                            ],
                            [
                                500003.963127773,
                                -2742415.05730204
                            ],
                            [
                                333337.218752719,
                                -2742415.05730204
                            ],
                            [
                                250003.846565192,
                                -2598077.4227072
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442358"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -1732051.61513813
                            ],
                            [
                                333337.218752719,
                                -1587713.98054329
                            ],
                            [
                                500003.963127773,
                                -1587713.98054329
                            ],
                            [
                                583337.3353153,
                                -1732051.61513813
                            ],
                            [
                                500003.963127773,
                                -1876389.24973297
                            ],
                            [
                                333337.218752719,
                                -1876389.24973297
                            ],
                            [
                                250003.846565192,
                                -1732051.61513813
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442408"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                500003.963127773,
                                -3319765.59568142
                            ],
                            [
                                583337.3353153,
                                -3175427.96108657
                            ],
                            [
                                750004.079690354,
                                -3175427.96108657
                            ],
                            [
                                833337.451877881,
                                -3319765.59568142
                            ],
                            [
                                750004.079690354,
                                -3464103.23027626
                            ],
                            [
                                583337.3353153,
                                -3464103.23027626
                            ],
                            [
                                500003.963127773,
                                -3319765.59568142
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442410"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                500003.963127773,
                                -2742415.05730204
                            ],
                            [
                                583337.3353153,
                                -2598077.4227072
                            ],
                            [
                                750004.079690354,
                                -2598077.4227072
                            ],
                            [
                                833337.451877881,
                                -2742415.05730204
                            ],
                            [
                                750004.079690354,
                                -2886752.69189688
                            ],
                            [
                                583337.3353153,
                                -2886752.69189688
                            ],
                            [
                                500003.963127773,
                                -2742415.05730204
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442411"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                500003.963127773,
                                -2453739.78811235
                            ],
                            [
                                583337.3353153,
                                -2309402.15351751
                            ],
                            [
                                750004.079690354,
                                -2309402.15351751
                            ],
                            [
                                833337.451877881,
                                -2453739.78811235
                            ],
                            [
                                750004.079690354,
                                -2598077.4227072
                            ],
                            [
                                583337.3353153,
                                -2598077.4227072
                            ],
                            [
                                500003.963127773,
                                -2453739.78811235
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442463"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                750004.079690354,
                                -3175427.96108657
                            ],
                            [
                                833337.451877881,
                                -3031090.32649173
                            ],
                            [
                                1000004.19625294,
                                -3031090.32649173
                            ],
                            [
                                1083337.56844046,
                                -3175427.96108657
                            ],
                            [
                                1000004.19625294,
                                -3319765.59568142
                            ],
                            [
                                833337.451877881,
                                -3319765.59568142
                            ],
                            [
                                750004.079690354,
                                -3175427.96108657
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442464"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                750004.079690354,
                                -2886752.69189688
                            ],
                            [
                                833337.451877881,
                                -2742415.05730204
                            ],
                            [
                                1000004.19625294,
                                -2742415.05730204
                            ],
                            [
                                1083337.56844046,
                                -2886752.69189688
                            ],
                            [
                                1000004.19625294,
                                -3031090.32649173
                            ],
                            [
                                833337.451877881,
                                -3031090.32649173
                            ],
                            [
                                750004.079690354,
                                -2886752.69189688
                            ]
                        ]
                    ]
                ]
            }
        },
        {
            "type": "Feature",
            "properties": {
                "pk": "442465"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                750004.079690354,
                                -2598077.4227072
                            ],
                            [
                                833337.451877881,
                                -2453739.78811235
                            ],
                            [
                                1000004.19625294,
                                -2453739.78811235
                            ],
                            [
                                1083337.56844046,
                                -2598077.4227072
                            ],
                            [
                                1000004.19625294,
                                -2742415.05730204
                            ],
                            [
                                833337.451877881,
                                -2742415.05730204
                            ],
                            [
                                750004.079690354,
                                -2598077.4227072
                            ]
                        ]
                    ]
                ]
            }
        }
    ]
}