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=2405648
{
"features": [
{
"properties": {
"pk": "442146"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-749996.619685135,
577350.538379378
],
[
-666663.247497608,
721688.172974221
],
[
-499996.503122553,
721688.172974221
],
[
-416663.130935026,
577350.538379378
],
[
-499996.503122553,
433012.903784533
],
[
-666663.247497608,
433012.903784533
],
[
-749996.619685135,
577350.538379378
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442451"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-6639531.19136284
],
[
833337.451877881,
-6495193.55676799
],
[
1000004.19625294,
-6495193.55676799
],
[
1083337.56844046,
-6639531.19136284
],
[
1000004.19625294,
-6783868.82595768
],
[
833337.451877881,
-6783868.82595768
],
[
750004.079690354,
-6639531.19136284
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}