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=2253966
{
"features": [
{
"properties": {
"pk": "441710"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
1732051.61513813
],
[
-2666664.17999826,
1876389.24973297
],
[
-2499997.43562321,
1876389.24973297
],
[
-2416664.06343568,
1732051.61513813
],
[
-2499997.43562321,
1587713.98054329
],
[
-2666664.17999826,
1587713.98054329
],
[
-2749997.55218579,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441767"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
2165064.51892266
],
[
-2416664.06343568,
2309402.15351751
],
[
-2249997.31906062,
2309402.15351751
],
[
-2166663.9468731,
2165064.51892266
],
[
-2249997.31906062,
2020726.88432782
],
[
-2416664.06343568,
2020726.88432782
],
[
-2499997.43562321,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442205"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-499996.503122553,
1587713.98054329
],
[
-416663.130935026,
1732051.61513813
],
[
-249996.386559972,
1732051.61513813
],
[
-166663.014372444,
1587713.98054329
],
[
-249996.386559972,
1443376.34594844
],
[
-416663.130935026,
1443376.34594844
],
[
-499996.503122553,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442261"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
2020726.88432782
],
[
-166663.014372444,
2165064.51892266
],
[
3.73000261001289,
2165064.51892266
],
[
83337.1021901372,
2020726.88432782
],
[
3.73000261001289,
1876389.24973297
],
[
-166663.014372444,
1876389.24973297
],
[
-249996.386559972,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442480"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
1732051.61513813
],
[
833337.451877881,
1876389.24973297
],
[
1000004.19625294,
1876389.24973297
],
[
1083337.56844046,
1732051.61513813
],
[
1000004.19625294,
1587713.98054329
],
[
833337.451877881,
1587713.98054329
],
[
750004.079690354,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}