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=3202662
{
"features": [
{
"properties": {
"pk": "441813"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
-288675.269189688
],
[
-2166663.9468731,
-144337.634594844
],
[
-1999997.20249804,
-144337.634594844
],
[
-1916663.83031052,
-288675.269189688
],
[
-1999997.20249804,
-433012.903784532
],
[
-2166663.9468731,
-433012.903784532
],
[
-2249997.31906062,
-288675.269189688
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441920"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
-1154701.07675875
],
[
-1666663.71374793,
-1010363.44216391
],
[
-1499996.96937288,
-1010363.44216391
],
[
-1416663.59718535,
-1154701.07675875
],
[
-1499996.96937288,
-1299038.7113536
],
[
-1666663.71374793,
-1299038.7113536
],
[
-1749997.08593546,
-1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442360"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-1154701.07675875
],
[
333337.218752719,
-1010363.44216391
],
[
500003.963127773,
-1010363.44216391
],
[
583337.3353153,
-1154701.07675875
],
[
500003.963127773,
-1299038.7113536
],
[
333337.218752719,
-1299038.7113536
],
[
250003.846565192,
-1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}