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=4886006
{
"features": [
{
"properties": {
"pk": "441604"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
2886752.69189689
],
[
-3166664.41312342,
3031090.32649173
],
[
-2999997.66874837,
3031090.32649173
],
[
-2916664.29656084,
2886752.69189689
],
[
-2999997.66874837,
2742415.05730204
],
[
-3166664.41312342,
2742415.05730204
],
[
-3249997.78531095,
2886752.69189689
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441814"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
0.0
],
[
-2166663.9468731,
144337.634594845
],
[
-1999997.20249804,
144337.634594845
],
[
-1916663.83031052,
0.0
],
[
-1999997.20249804,
-144337.634594844
],
[
-2166663.9468731,
-144337.634594844
],
[
-2249997.31906062,
0.0
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}