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=9302304
{
"features": [
{
"properties": {
"pk": "441437"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
2165064.51892266
],
[
-3916664.76281117,
2309402.15351751
],
[
-3749998.01843611,
2309402.15351751
],
[
-3666664.64624859,
2165064.51892266
],
[
-3749998.01843611,
2020726.88432782
],
[
-3916664.76281117,
2020726.88432782
],
[
-3999998.13499869,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441489"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
1443376.34594844
],
[
-3666664.64624859,
1587713.98054329
],
[
-3499997.90187353,
1587713.98054329
],
[
-3416664.529686,
1443376.34594844
],
[
-3499997.90187353,
1299038.7113536
],
[
-3666664.64624859,
1299038.7113536
],
[
-3749998.01843611,
1443376.34594844
]
]
]
],
"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"
}
},
{
"properties": {
"pk": "441868"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1999997.20249804,
-433012.903784532
],
[
-1916663.83031052,
-288675.269189688
],
[
-1749997.08593546,
-288675.269189688
],
[
-1666663.71374793,
-433012.903784532
],
[
-1749997.08593546,
-577350.538379377
],
[
-1916663.83031052,
-577350.538379377
],
[
-1999997.20249804,
-433012.903784532
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441920"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
-1154701.07675875
],
[
-1666663.71374793,
-1010363.44216391
],
[
-1499996.96937288,
-1010363.44216391
],
[
-1416663.59718535,
-1154701.07675875
],
[
-1499996.96937288,
-1299038.7113536
],
[
-1666663.71374793,
-1299038.7113536
],
[
-1749997.08593546,
-1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441975"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1499996.96937288,
-1299038.7113536
],
[
-1416663.59718535,
-1154701.07675875
],
[
-1249996.8528103,
-1154701.07675875
],
[
-1166663.48062277,
-1299038.7113536
],
[
-1249996.8528103,
-1443376.34594844
],
[
-1416663.59718535,
-1443376.34594844
],
[
-1499996.96937288,
-1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442358"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-1732051.61513813
],
[
333337.218752719,
-1587713.98054329
],
[
500003.963127773,
-1587713.98054329
],
[
583337.3353153,
-1732051.61513813
],
[
500003.963127773,
-1876389.24973297
],
[
333337.218752719,
-1876389.24973297
],
[
250003.846565192,
-1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}