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=9028
{
"features": [
{
"properties": {
"pk": "441437"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
2165064.51892266
],
[
-3916664.76281117,
2309402.15351751
],
[
-3749998.01843611,
2309402.15351751
],
[
-3666664.64624859,
2165064.51892266
],
[
-3749998.01843611,
2020726.88432782
],
[
-3916664.76281117,
2020726.88432782
],
[
-3999998.13499869,
2165064.51892266
]
]
]
],
"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": "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": "442411"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-2453739.78811235
],
[
583337.3353153,
-2309402.15351751
],
[
750004.079690354,
-2309402.15351751
],
[
833337.451877881,
-2453739.78811235
],
[
750004.079690354,
-2598077.4227072
],
[
583337.3353153,
-2598077.4227072
],
[
500003.963127773,
-2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442457"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-4907479.5762247
],
[
833337.451877881,
-4763141.94162986
],
[
1000004.19625294,
-4763141.94162986
],
[
1083337.56844046,
-4907479.5762247
],
[
1000004.19625294,
-5051817.21081955
],
[
833337.451877881,
-5051817.21081955
],
[
750004.079690354,
-4907479.5762247
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442571"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-3752778.49946595
],
[
1333337.68500304,
-3608440.86487111
],
[
1500004.4293781,
-3608440.86487111
],
[
1583337.80156563,
-3752778.49946595
],
[
1500004.4293781,
-3897116.13406079
],
[
1333337.68500304,
-3897116.13406079
],
[
1250004.31281552,
-3752778.49946595
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442771"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
6206518.2875783
],
[
2083338.03469079,
6350855.92217315
],
[
2250004.77906584,
6350855.92217315
],
[
2333338.15125337,
6206518.2875783
],
[
2250004.77906584,
6062180.65298346
],
[
2083338.03469079,
6062180.65298346
],
[
2000004.66250326,
6206518.2875783
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442772"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
6495193.55676799
],
[
2083338.03469079,
6639531.19136284
],
[
2250004.77906584,
6639531.19136284
],
[
2333338.15125337,
6495193.55676799
],
[
2250004.77906584,
6350855.92217315
],
[
2083338.03469079,
6350855.92217315
],
[
2000004.66250326,
6495193.55676799
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442880"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
5917843.01838861
],
[
2583338.26781595,
6062180.65298346
],
[
2750005.01219101,
6062180.65298346
],
[
2833338.38437853,
5917843.01838861
],
[
2750005.01219101,
5773505.38379377
],
[
2583338.26781595,
5773505.38379377
],
[
2500004.89562843,
5917843.01838861
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442935"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
6062180.65298346
],
[
2833338.38437853,
6206518.2875783
],
[
3000005.12875359,
6206518.2875783
],
[
3083338.50094112,
6062180.65298346
],
[
3000005.12875359,
5917843.01838861
],
[
2833338.38437853,
5917843.01838861
],
[
2750005.01219101,
6062180.65298346
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442990"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
5917843.01838861
],
[
3083338.50094112,
6062180.65298346
],
[
3250005.24531617,
6062180.65298346
],
[
3333338.6175037,
5917843.01838861
],
[
3250005.24531617,
5773505.38379377
],
[
3083338.50094112,
5773505.38379377
],
[
3000005.12875359,
5917843.01838861
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}