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=9657453
{
"features": [
{
"properties": {
"pk": "441975"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1499996.96937288,
-1299038.7113536
],
[
-1416663.59718535,
-1154701.07675875
],
[
-1249996.8528103,
-1154701.07675875
],
[
-1166663.48062277,
-1299038.7113536
],
[
-1249996.8528103,
-1443376.34594844
],
[
-1416663.59718535,
-1443376.34594844
],
[
-1499996.96937288,
-1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442135"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-749996.619685135,
-2598077.4227072
],
[
-666663.247497608,
-2453739.78811235
],
[
-499996.503122553,
-2453739.78811235
],
[
-416663.130935026,
-2598077.4227072
],
[
-499996.503122553,
-2742415.05730204
],
[
-666663.247497608,
-2742415.05730204
],
[
-749996.619685135,
-2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}