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=7359
{
"features": [
{
"properties": {
"pk": "441214"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4999998.60124902,
1299038.7113536
],
[
-4916665.22906149,
1443376.34594844
],
[
-4749998.48468644,
1443376.34594844
],
[
-4666665.11249891,
1299038.7113536
],
[
-4749998.48468644,
1154701.07675875
],
[
-4916665.22906149,
1154701.07675875
],
[
-4999998.60124902,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441324"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
1299038.7113536
],
[
-4416664.99593633,
1443376.34594844
],
[
-4249998.25156128,
1443376.34594844
],
[
-4166664.87937375,
1299038.7113536
],
[
-4249998.25156128,
1154701.07675875
],
[
-4416664.99593633,
1154701.07675875
],
[
-4499998.36812386,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}