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=9193
{
"features": [
{
"properties": {
"pk": "441654"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
1299038.7113536
],
[
-2916664.29656084,
1443376.34594844
],
[
-2749997.55218579,
1443376.34594844
],
[
-2666664.17999826,
1299038.7113536
],
[
-2749997.55218579,
1154701.07675875
],
[
-2916664.29656084,
1154701.07675875
],
[
-2999997.66874837,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441655"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
1587713.98054329
],
[
-2916664.29656084,
1732051.61513813
],
[
-2749997.55218579,
1732051.61513813
],
[
-2666664.17999826,
1587713.98054329
],
[
-2749997.55218579,
1443376.34594844
],
[
-2916664.29656084,
1443376.34594844
],
[
-2999997.66874837,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441708"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
1154701.07675875
],
[
-2666664.17999826,
1299038.7113536
],
[
-2499997.43562321,
1299038.7113536
],
[
-2416664.06343568,
1154701.07675875
],
[
-2499997.43562321,
1010363.44216391
],
[
-2666664.17999826,
1010363.44216391
],
[
-2749997.55218579,
1154701.07675875
]
]
]
],
"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": "441912"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
-3464103.23027626
],
[
-1666663.71374793,
-3319765.59568142
],
[
-1499996.96937288,
-3319765.59568142
],
[
-1416663.59718535,
-3464103.23027626
],
[
-1499996.96937288,
-3608440.86487111
],
[
-1666663.71374793,
-3608440.86487111
],
[
-1749997.08593546,
-3464103.23027626
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442095"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-999996.736247716,
1587713.98054329
],
[
-916663.364060189,
1732051.61513813
],
[
-749996.619685135,
1732051.61513813
],
[
-666663.247497608,
1587713.98054329
],
[
-749996.619685135,
1443376.34594844
],
[
-916663.364060189,
1443376.34594844
],
[
-999996.736247716,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}