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=8157265
{
"features": [
{
"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": "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": "442194"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-499996.503122553,
-1587713.98054329
],
[
-416663.130935026,
-1443376.34594844
],
[
-249996.386559972,
-1443376.34594844
],
[
-166663.014372444,
-1587713.98054329
],
[
-249996.386559972,
-1732051.61513813
],
[
-416663.130935026,
-1732051.61513813
],
[
-499996.503122553,
-1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442297"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-3608440.86487111
],
[
83337.1021901372,
-3464103.23027626
],
[
250003.846565192,
-3464103.23027626
],
[
333337.218752719,
-3608440.86487111
],
[
250003.846565192,
-3752778.49946595
],
[
83337.1021901372,
-3752778.49946595
],
[
3.73000261001289,
-3608440.86487111
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442303"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-1876389.24973297
],
[
83337.1021901372,
-1732051.61513813
],
[
250003.846565192,
-1732051.61513813
],
[
333337.218752719,
-1876389.24973297
],
[
250003.846565192,
-2020726.88432782
],
[
83337.1021901372,
-2020726.88432782
],
[
3.73000261001289,
-1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442304"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-1587713.98054329
],
[
83337.1021901372,
-1443376.34594844
],
[
250003.846565192,
-1443376.34594844
],
[
333337.218752719,
-1587713.98054329
],
[
250003.846565192,
-1732051.61513813
],
[
83337.1021901372,
-1732051.61513813
],
[
3.73000261001289,
-1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442426"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
1876389.24973297
],
[
583337.3353153,
2020726.88432782
],
[
750004.079690354,
2020726.88432782
],
[
833337.451877881,
1876389.24973297
],
[
750004.079690354,
1732051.61513813
],
[
583337.3353153,
1732051.61513813
],
[
500003.963127773,
1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}