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=2300487
{
"features": [
{
"properties": {
"pk": "441959"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1499996.96937288,
-5917843.01838861
],
[
-1416663.59718535,
-5773505.38379377
],
[
-1249996.8528103,
-5773505.38379377
],
[
-1166663.48062277,
-5917843.01838861
],
[
-1249996.8528103,
-6062180.65298346
],
[
-1416663.59718535,
-6062180.65298346
],
[
-1499996.96937288,
-5917843.01838861
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442451"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-6639531.19136284
],
[
833337.451877881,
-6495193.55676799
],
[
1000004.19625294,
-6495193.55676799
],
[
1083337.56844046,
-6639531.19136284
],
[
1000004.19625294,
-6783868.82595768
],
[
833337.451877881,
-6783868.82595768
],
[
750004.079690354,
-6639531.19136284
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}