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=5189
{
"features": [
{
"properties": {
"pk": "441550"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
3031090.32649173
],
[
-3416664.529686,
3175427.96108657
],
[
-3249997.78531095,
3175427.96108657
],
[
-3166664.41312342,
3031090.32649173
],
[
-3249997.78531095,
2886752.69189689
],
[
-3416664.529686,
2886752.69189689
],
[
-3499997.90187353,
3031090.32649173
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441708"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
1154701.07675875
],
[
-2666664.17999826,
1299038.7113536
],
[
-2499997.43562321,
1299038.7113536
],
[
-2416664.06343568,
1154701.07675875
],
[
-2499997.43562321,
1010363.44216391
],
[
-2666664.17999826,
1010363.44216391
],
[
-2749997.55218579,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442150"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-749996.619685135,
1732051.61513813
],
[
-666663.247497608,
1876389.24973297
],
[
-499996.503122553,
1876389.24973297
],
[
-416663.130935026,
1732051.61513813
],
[
-499996.503122553,
1587713.98054329
],
[
-666663.247497608,
1587713.98054329
],
[
-749996.619685135,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442262"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
2309402.15351751
],
[
-166663.014372444,
2453739.78811235
],
[
3.73000261001289,
2453739.78811235
],
[
83337.1021901372,
2309402.15351751
],
[
3.73000261001289,
2165064.51892266
],
[
-166663.014372444,
2165064.51892266
],
[
-249996.386559972,
2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442319"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
2742415.05730204
],
[
83337.1021901372,
2886752.69189689
],
[
250003.846565192,
2886752.69189689
],
[
333337.218752719,
2742415.05730204
],
[
250003.846565192,
2598077.4227072
],
[
83337.1021901372,
2598077.4227072
],
[
3.73000261001289,
2742415.05730204
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442359"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-1443376.34594844
],
[
333337.218752719,
-1299038.7113536
],
[
500003.963127773,
-1299038.7113536
],
[
583337.3353153,
-1443376.34594844
],
[
500003.963127773,
-1587713.98054329
],
[
333337.218752719,
-1587713.98054329
],
[
250003.846565192,
-1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}