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=3228848
{
"features": [
{
"properties": {
"pk": "441995"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1499996.96937288,
4474466.67244017
],
[
-1416663.59718535,
4618804.30703502
],
[
-1249996.8528103,
4618804.30703502
],
[
-1166663.48062277,
4474466.67244017
],
[
-1249996.8528103,
4330129.03784533
],
[
-1416663.59718535,
4330129.03784533
],
[
-1499996.96937288,
4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441996"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1499996.96937288,
4763141.94162986
],
[
-1416663.59718535,
4907479.57622471
],
[
-1249996.8528103,
4907479.57622471
],
[
-1166663.48062277,
4763141.94162986
],
[
-1249996.8528103,
4618804.30703502
],
[
-1416663.59718535,
4618804.30703502
],
[
-1499996.96937288,
4763141.94162986
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}