Occurrence Grid
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=7469057
{
"features": [
{
"properties": {
"pk": "442862"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
721688.172974221
],
[
2583338.26781595,
866025.807569066
],
[
2750005.01219101,
866025.807569066
],
[
2833338.38437853,
721688.172974221
],
[
2750005.01219101,
577350.538379378
],
[
2583338.26781595,
577350.538379378
],
[
2500004.89562843,
721688.172974221
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}