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=5721200
{
"features": [
{
"properties": {
"pk": "441545"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
1587713.98054329
],
[
-3416664.529686,
1732051.61513813
],
[
-3249997.78531095,
1732051.61513813
],
[
-3166664.41312342,
1587713.98054329
],
[
-3249997.78531095,
1443376.34594844
],
[
-3416664.529686,
1443376.34594844
],
[
-3499997.90187353,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441546"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
1876389.24973297
],
[
-3416664.529686,
2020726.88432782
],
[
-3249997.78531095,
2020726.88432782
],
[
-3166664.41312342,
1876389.24973297
],
[
-3249997.78531095,
1732051.61513813
],
[
-3416664.529686,
1732051.61513813
],
[
-3499997.90187353,
1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441766"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
1876389.24973297
],
[
-2416664.06343568,
2020726.88432782
],
[
-2249997.31906062,
2020726.88432782
],
[
-2166663.9468731,
1876389.24973297
],
[
-2249997.31906062,
1732051.61513813
],
[
-2416664.06343568,
1732051.61513813
],
[
-2499997.43562321,
1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}