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=2607577
{
"features": [
{
"properties": {
"pk": "441489"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
1443376.34594844
],
[
-3666664.64624859,
1587713.98054329
],
[
-3499997.90187353,
1587713.98054329
],
[
-3416664.529686,
1443376.34594844
],
[
-3499997.90187353,
1299038.7113536
],
[
-3666664.64624859,
1299038.7113536
],
[
-3749998.01843611,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442459"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-4330129.03784533
],
[
833337.451877881,
-4185791.40325048
],
[
1000004.19625294,
-4185791.40325048
],
[
1083337.56844046,
-4330129.03784533
],
[
1000004.19625294,
-4474466.67244017
],
[
833337.451877881,
-4474466.67244017
],
[
750004.079690354,
-4330129.03784533
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}