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=911
{
"features": [
{
"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"
}
},
{
"properties": {
"pk": "443392"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
5000006.06125424,
-5051817.21081955
],
[
5083339.43344177,
-4907479.5762247
],
[
5250006.17781682,
-4907479.5762247
],
[
5333339.55000435,
-5051817.21081955
],
[
5250006.17781682,
-5196154.84541439
],
[
5083339.43344177,
-5196154.84541439
],
[
5000006.06125424,
-5051817.21081955
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}