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=2306870
{
"features": [
{
"properties": {
"pk": "441547"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
2165064.51892266
],
[
-3416664.529686,
2309402.15351751
],
[
-3249997.78531095,
2309402.15351751
],
[
-3166664.41312342,
2165064.51892266
],
[
-3249997.78531095,
2020726.88432782
],
[
-3416664.529686,
2020726.88432782
],
[
-3499997.90187353,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441658"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
2453739.78811235
],
[
-2916664.29656084,
2598077.4227072
],
[
-2749997.55218579,
2598077.4227072
],
[
-2666664.17999826,
2453739.78811235
],
[
-2749997.55218579,
2309402.15351751
],
[
-2916664.29656084,
2309402.15351751
],
[
-2999997.66874837,
2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}