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/?taxon=8839128
{
"features": [
{
"properties": {
"pk": "441601"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
2020726.88432782
],
[
-3166664.41312342,
2165064.51892266
],
[
-2999997.66874837,
2165064.51892266
],
[
-2916664.29656084,
2020726.88432782
],
[
-2999997.66874837,
1876389.24973297
],
[
-3166664.41312342,
1876389.24973297
],
[
-3249997.78531095,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441713"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
2598077.4227072
],
[
-2666664.17999826,
2742415.05730204
],
[
-2499997.43562321,
2742415.05730204
],
[
-2416664.06343568,
2598077.4227072
],
[
-2499997.43562321,
2453739.78811235
],
[
-2666664.17999826,
2453739.78811235
],
[
-2749997.55218579,
2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441825"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
3175427.96108657
],
[
-2166663.9468731,
3319765.59568142
],
[
-1999997.20249804,
3319765.59568142
],
[
-1916663.83031052,
3175427.96108657
],
[
-1999997.20249804,
3031090.32649173
],
[
-2166663.9468731,
3031090.32649173
],
[
-2249997.31906062,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442039"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1249996.8528103,
1443376.34594844
],
[
-1166663.48062277,
1587713.98054329
],
[
-999996.736247716,
1587713.98054329
],
[
-916663.364060189,
1443376.34594844
],
[
-999996.736247716,
1299038.7113536
],
[
-1166663.48062277,
1299038.7113536
],
[
-1249996.8528103,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442095"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-999996.736247716,
1587713.98054329
],
[
-916663.364060189,
1732051.61513813
],
[
-749996.619685135,
1732051.61513813
],
[
-666663.247497608,
1587713.98054329
],
[
-749996.619685135,
1443376.34594844
],
[
-916663.364060189,
1443376.34594844
],
[
-999996.736247716,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}