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=9197
{
"features": [
{
"properties": {
"pk": "440887"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-6499999.30062451,
2165064.51892266
],
[
-6416665.92843698,
2309402.15351751
],
[
-6249999.18406193,
2309402.15351751
],
[
-6166665.8118744,
2165064.51892266
],
[
-6249999.18406193,
2020726.88432782
],
[
-6416665.92843698,
2020726.88432782
],
[
-6499999.30062451,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "440940"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-6249999.18406193,
1732051.61513813
],
[
-6166665.8118744,
1876389.24973297
],
[
-5999999.06749935,
1876389.24973297
],
[
-5916665.69531182,
1732051.61513813
],
[
-5999999.06749935,
1587713.98054329
],
[
-6166665.8118744,
1587713.98054329
],
[
-6249999.18406193,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441488"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
1154701.07675875
],
[
-3666664.64624859,
1299038.7113536
],
[
-3499997.90187353,
1299038.7113536
],
[
-3416664.529686,
1154701.07675875
],
[
-3499997.90187353,
1010363.44216391
],
[
-3666664.64624859,
1010363.44216391
],
[
-3749998.01843611,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442397"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-6495193.55676799
],
[
583337.3353153,
-6350855.92217315
],
[
750004.079690354,
-6350855.92217315
],
[
833337.451877881,
-6495193.55676799
],
[
750004.079690354,
-6639531.19136284
],
[
583337.3353153,
-6639531.19136284
],
[
500003.963127773,
-6495193.55676799
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442452"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-6350855.92217315
],
[
833337.451877881,
-6206518.2875783
],
[
1000004.19625294,
-6206518.2875783
],
[
1083337.56844046,
-6350855.92217315
],
[
1000004.19625294,
-6495193.55676799
],
[
833337.451877881,
-6495193.55676799
],
[
750004.079690354,
-6350855.92217315
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}