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=4416
{
"features": [
{
"properties": {
"pk": "441442"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
3608440.86487111
],
[
-3916664.76281117,
3752778.49946595
],
[
-3749998.01843611,
3752778.49946595
],
[
-3666664.64624859,
3608440.86487111
],
[
-3749998.01843611,
3464103.23027626
],
[
-3916664.76281117,
3464103.23027626
],
[
-3999998.13499869,
3608440.86487111
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442465"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-2598077.4227072
],
[
833337.451877881,
-2453739.78811235
],
[
1000004.19625294,
-2453739.78811235
],
[
1083337.56844046,
-2598077.4227072
],
[
1000004.19625294,
-2742415.05730204
],
[
833337.451877881,
-2742415.05730204
],
[
750004.079690354,
-2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}