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=1303
{
"features": [
{
"properties": {
"pk": "441269"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4749998.48468644,
1443376.34594844
],
[
-4666665.11249891,
1587713.98054329
],
[
-4499998.36812386,
1587713.98054329
],
[
-4416664.99593633,
1443376.34594844
],
[
-4499998.36812386,
1299038.7113536
],
[
-4666665.11249891,
1299038.7113536
],
[
-4749998.48468644,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443180"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4000005.59500391,
-2742415.05730204
],
[
4083338.96719144,
-2598077.4227072
],
[
4250005.7115665,
-2598077.4227072
],
[
4333339.08375402,
-2742415.05730204
],
[
4250005.7115665,
-2886752.69189688
],
[
4083338.96719144,
-2886752.69189688
],
[
4000005.59500391,
-2742415.05730204
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}