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=2289444
{
"features": [
{
"properties": {
"pk": "441656"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
1876389.24973297
],
[
-2916664.29656084,
2020726.88432782
],
[
-2749997.55218579,
2020726.88432782
],
[
-2666664.17999826,
1876389.24973297
],
[
-2749997.55218579,
1732051.61513813
],
[
-2916664.29656084,
1732051.61513813
],
[
-2999997.66874837,
1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441710"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
1732051.61513813
],
[
-2666664.17999826,
1876389.24973297
],
[
-2499997.43562321,
1876389.24973297
],
[
-2416664.06343568,
1732051.61513813
],
[
-2499997.43562321,
1587713.98054329
],
[
-2666664.17999826,
1587713.98054329
],
[
-2749997.55218579,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441711"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
2020726.88432782
],
[
-2666664.17999826,
2165064.51892266
],
[
-2499997.43562321,
2165064.51892266
],
[
-2416664.06343568,
2020726.88432782
],
[
-2499997.43562321,
1876389.24973297
],
[
-2666664.17999826,
1876389.24973297
],
[
-2749997.55218579,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443130"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3750005.47844133,
-1154701.07675875
],
[
3833338.85062886,
-1010363.44216391
],
[
4000005.59500391,
-1010363.44216391
],
[
4083338.96719144,
-1154701.07675875
],
[
4000005.59500391,
-1299038.7113536
],
[
3833338.85062886,
-1299038.7113536
],
[
3750005.47844133,
-1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}