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=5183892
{
"features": [
{
"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"
}
},
{
"properties": {
"pk": "442452"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-6350855.92217315
],
[
833337.451877881,
-6206518.2875783
],
[
1000004.19625294,
-6206518.2875783
],
[
1083337.56844046,
-6350855.92217315
],
[
1000004.19625294,
-6495193.55676799
],
[
833337.451877881,
-6495193.55676799
],
[
750004.079690354,
-6350855.92217315
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}