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=8159406
{
"features": [
{
"properties": {
"pk": "441436"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
1876389.24973297
],
[
-3916664.76281117,
2020726.88432782
],
[
-3749998.01843611,
2020726.88432782
],
[
-3666664.64624859,
1876389.24973297
],
[
-3749998.01843611,
1732051.61513813
],
[
-3916664.76281117,
1732051.61513813
],
[
-3999998.13499869,
1876389.24973297
]
]
]
],
"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": "441490"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
1732051.61513813
],
[
-3666664.64624859,
1876389.24973297
],
[
-3499997.90187353,
1876389.24973297
],
[
-3416664.529686,
1732051.61513813
],
[
-3499997.90187353,
1587713.98054329
],
[
-3666664.64624859,
1587713.98054329
],
[
-3749998.01843611,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441545"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
1587713.98054329
],
[
-3416664.529686,
1732051.61513813
],
[
-3249997.78531095,
1732051.61513813
],
[
-3166664.41312342,
1587713.98054329
],
[
-3249997.78531095,
1443376.34594844
],
[
-3416664.529686,
1443376.34594844
],
[
-3499997.90187353,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441599"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
1443376.34594844
],
[
-3166664.41312342,
1587713.98054329
],
[
-2999997.66874837,
1587713.98054329
],
[
-2916664.29656084,
1443376.34594844
],
[
-2999997.66874837,
1299038.7113536
],
[
-3166664.41312342,
1299038.7113536
],
[
-3249997.78531095,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442461"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-3752778.49946595
],
[
833337.451877881,
-3608440.86487111
],
[
1000004.19625294,
-3608440.86487111
],
[
1083337.56844046,
-3752778.49946595
],
[
1000004.19625294,
-3897116.13406079
],
[
833337.451877881,
-3897116.13406079
],
[
750004.079690354,
-3752778.49946595
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442983"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
3897116.13406079
],
[
3083338.50094112,
4041453.76865564
],
[
3250005.24531617,
4041453.76865564
],
[
3333338.6175037,
3897116.13406079
],
[
3250005.24531617,
3752778.49946595
],
[
3083338.50094112,
3752778.49946595
],
[
3000005.12875359,
3897116.13406079
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}