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=4876498
{
"features": [
{
"properties": {
"pk": "442182"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-499996.503122553,
-5051817.21081955
],
[
-416663.130935026,
-4907479.5762247
],
[
-249996.386559972,
-4907479.5762247
],
[
-166663.014372444,
-5051817.21081955
],
[
-249996.386559972,
-5196154.84541439
],
[
-416663.130935026,
-5196154.84541439
],
[
-499996.503122553,
-5051817.21081955
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442236"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-5196154.84541439
],
[
-166663.014372444,
-5051817.21081955
],
[
3.73000261001289,
-5051817.21081955
],
[
83337.1021901372,
-5196154.84541439
],
[
3.73000261001289,
-5340492.48000924
],
[
-166663.014372444,
-5340492.48000924
],
[
-249996.386559972,
-5196154.84541439
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}