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=2885
{
"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": "441763"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
1010363.44216391
],
[
-2416664.06343568,
1154701.07675875
],
[
-2249997.31906062,
1154701.07675875
],
[
-2166663.9468731,
1010363.44216391
],
[
-2249997.31906062,
866025.807569066
],
[
-2416664.06343568,
866025.807569066
],
[
-2499997.43562321,
1010363.44216391
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442035"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1249996.8528103,
288675.269189689
],
[
-1166663.48062277,
433012.903784533
],
[
-999996.736247716,
433012.903784533
],
[
-916663.364060189,
288675.269189689
],
[
-999996.736247716,
144337.634594845
],
[
-1166663.48062277,
144337.634594845
],
[
-1249996.8528103,
288675.269189689
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442054"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1249996.8528103,
5773505.38379377
],
[
-1166663.48062277,
5917843.01838861
],
[
-999996.736247716,
5917843.01838861
],
[
-916663.364060189,
5773505.38379377
],
[
-999996.736247716,
5629167.74919893
],
[
-1166663.48062277,
5629167.74919893
],
[
-1249996.8528103,
5773505.38379377
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442426"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
1876389.24973297
],
[
583337.3353153,
2020726.88432782
],
[
750004.079690354,
2020726.88432782
],
[
833337.451877881,
1876389.24973297
],
[
750004.079690354,
1732051.61513813
],
[
583337.3353153,
1732051.61513813
],
[
500003.963127773,
1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442751"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
433012.903784533
],
[
2083338.03469079,
577350.538379378
],
[
2250004.77906584,
577350.538379378
],
[
2333338.15125337,
433012.903784533
],
[
2250004.77906584,
288675.269189689
],
[
2083338.03469079,
288675.269189689
],
[
2000004.66250326,
433012.903784533
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442773"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
6783868.82595768
],
[
2083338.03469079,
6928206.46055252
],
[
2250004.77906584,
6928206.46055252
],
[
2333338.15125337,
6783868.82595768
],
[
2250004.77906584,
6639531.19136284
],
[
2083338.03469079,
6639531.19136284
],
[
2000004.66250326,
6783868.82595768
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442801"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-866025.807569065
],
[
2333338.15125337,
-721688.17297422
],
[
2500004.89562843,
-721688.17297422
],
[
2583338.26781595,
-866025.807569065
],
[
2500004.89562843,
-1010363.44216391
],
[
2333338.15125337,
-1010363.44216391
],
[
2250004.77906584,
-866025.807569065
]
]
]
],
"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"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}