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=1033
{
"features": [
{
"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": "442085"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-999996.736247716,
-1299038.7113536
],
[
-916663.364060189,
-1154701.07675875
],
[
-749996.619685135,
-1154701.07675875
],
[
-666663.247497608,
-1299038.7113536
],
[
-749996.619685135,
-1443376.34594844
],
[
-916663.364060189,
-1443376.34594844
],
[
-999996.736247716,
-1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442305"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-1299038.7113536
],
[
83337.1021901372,
-1154701.07675875
],
[
250003.846565192,
-1154701.07675875
],
[
333337.218752719,
-1299038.7113536
],
[
250003.846565192,
-1443376.34594844
],
[
83337.1021901372,
-1443376.34594844
],
[
3.73000261001289,
-1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442367"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
866025.807569066
],
[
333337.218752719,
1010363.44216391
],
[
500003.963127773,
1010363.44216391
],
[
583337.3353153,
866025.807569066
],
[
500003.963127773,
721688.172974221
],
[
333337.218752719,
721688.172974221
],
[
250003.846565192,
866025.807569066
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442487"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
3752778.49946595
],
[
833337.451877881,
3897116.13406079
],
[
1000004.19625294,
3897116.13406079
],
[
1083337.56844046,
3752778.49946595
],
[
1000004.19625294,
3608440.86487111
],
[
833337.451877881,
3608440.86487111
],
[
750004.079690354,
3752778.49946595
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}