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=4307808
{
"features": [
{
"properties": {
"pk": "442095"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-999996.736247716,
1587713.98054329
],
[
-916663.364060189,
1732051.61513813
],
[
-749996.619685135,
1732051.61513813
],
[
-666663.247497608,
1587713.98054329
],
[
-749996.619685135,
1443376.34594844
],
[
-916663.364060189,
1443376.34594844
],
[
-999996.736247716,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442479"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
1443376.34594844
],
[
833337.451877881,
1587713.98054329
],
[
1000004.19625294,
1587713.98054329
],
[
1083337.56844046,
1443376.34594844
],
[
1000004.19625294,
1299038.7113536
],
[
833337.451877881,
1299038.7113536
],
[
750004.079690354,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}