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=3955
{
"features": [
{
"properties": {
"pk": "441709"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
1443376.34594844
],
[
-2666664.17999826,
1587713.98054329
],
[
-2499997.43562321,
1587713.98054329
],
[
-2416664.06343568,
1443376.34594844
],
[
-2499997.43562321,
1299038.7113536
],
[
-2666664.17999826,
1299038.7113536
],
[
-2749997.55218579,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441767"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
2165064.51892266
],
[
-2416664.06343568,
2309402.15351751
],
[
-2249997.31906062,
2309402.15351751
],
[
-2166663.9468731,
2165064.51892266
],
[
-2249997.31906062,
2020726.88432782
],
[
-2416664.06343568,
2020726.88432782
],
[
-2499997.43562321,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}