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=2509223
{
"features": [
{
"properties": {
"pk": "441547"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
2165064.51892266
],
[
-3416664.529686,
2309402.15351751
],
[
-3249997.78531095,
2309402.15351751
],
[
-3166664.41312342,
2165064.51892266
],
[
-3249997.78531095,
2020726.88432782
],
[
-3416664.529686,
2020726.88432782
],
[
-3499997.90187353,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441822"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
2309402.15351751
],
[
-2166663.9468731,
2453739.78811235
],
[
-1999997.20249804,
2453739.78811235
],
[
-1916663.83031052,
2309402.15351751
],
[
-1999997.20249804,
2165064.51892266
],
[
-2166663.9468731,
2165064.51892266
],
[
-2249997.31906062,
2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441824"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
2886752.69189689
],
[
-2166663.9468731,
3031090.32649173
],
[
-1999997.20249804,
3031090.32649173
],
[
-1916663.83031052,
2886752.69189689
],
[
-1999997.20249804,
2742415.05730204
],
[
-2166663.9468731,
2742415.05730204
],
[
-2249997.31906062,
2886752.69189689
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}