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=8034367
{
"features": [
{
"properties": {
"pk": "441545"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
1587713.98054329
],
[
-3416664.529686,
1732051.61513813
],
[
-3249997.78531095,
1732051.61513813
],
[
-3166664.41312342,
1587713.98054329
],
[
-3249997.78531095,
1443376.34594844
],
[
-3416664.529686,
1443376.34594844
],
[
-3499997.90187353,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441599"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
1443376.34594844
],
[
-3166664.41312342,
1587713.98054329
],
[
-2999997.66874837,
1587713.98054329
],
[
-2916664.29656084,
1443376.34594844
],
[
-2999997.66874837,
1299038.7113536
],
[
-3166664.41312342,
1299038.7113536
],
[
-3249997.78531095,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442404"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-4474466.67244017
],
[
583337.3353153,
-4330129.03784533
],
[
750004.079690354,
-4330129.03784533
],
[
833337.451877881,
-4474466.67244017
],
[
750004.079690354,
-4618804.30703502
],
[
583337.3353153,
-4618804.30703502
],
[
500003.963127773,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}