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=8766317
{
"features": [
{
"properties": {
"pk": "441214"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4999998.60124902,
1299038.7113536
],
[
-4916665.22906149,
1443376.34594844
],
[
-4749998.48468644,
1443376.34594844
],
[
-4666665.11249891,
1299038.7113536
],
[
-4749998.48468644,
1154701.07675875
],
[
-4916665.22906149,
1154701.07675875
],
[
-4999998.60124902,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441534"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
-1587713.98054329
],
[
-3416664.529686,
-1443376.34594844
],
[
-3249997.78531095,
-1443376.34594844
],
[
-3166664.41312342,
-1587713.98054329
],
[
-3249997.78531095,
-1732051.61513813
],
[
-3416664.529686,
-1732051.61513813
],
[
-3499997.90187353,
-1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441536"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
-1010363.44216391
],
[
-3416664.529686,
-866025.807569065
],
[
-3249997.78531095,
-866025.807569065
],
[
-3166664.41312342,
-1010363.44216391
],
[
-3249997.78531095,
-1154701.07675875
],
[
-3416664.529686,
-1154701.07675875
],
[
-3499997.90187353,
-1010363.44216391
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441587"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
-2020726.88432782
],
[
-3166664.41312342,
-1876389.24973297
],
[
-2999997.66874837,
-1876389.24973297
],
[
-2916664.29656084,
-2020726.88432782
],
[
-2999997.66874837,
-2165064.51892266
],
[
-3166664.41312342,
-2165064.51892266
],
[
-3249997.78531095,
-2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441598"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
1154701.07675875
],
[
-3166664.41312342,
1299038.7113536
],
[
-2999997.66874837,
1299038.7113536
],
[
-2916664.29656084,
1154701.07675875
],
[
-2999997.66874837,
1010363.44216391
],
[
-3166664.41312342,
1010363.44216391
],
[
-3249997.78531095,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441641"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
-2453739.78811235
],
[
-2916664.29656084,
-2309402.15351751
],
[
-2749997.55218579,
-2309402.15351751
],
[
-2666664.17999826,
-2453739.78811235
],
[
-2749997.55218579,
-2598077.4227072
],
[
-2916664.29656084,
-2598077.4227072
],
[
-2999997.66874837,
-2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441646"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
-1010363.44216391
],
[
-2916664.29656084,
-866025.807569065
],
[
-2749997.55218579,
-866025.807569065
],
[
-2666664.17999826,
-1010363.44216391
],
[
-2749997.55218579,
-1154701.07675875
],
[
-2916664.29656084,
-1154701.07675875
],
[
-2999997.66874837,
-1010363.44216391
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441696"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
-2309402.15351751
],
[
-2666664.17999826,
-2165064.51892266
],
[
-2499997.43562321,
-2165064.51892266
],
[
-2416664.06343568,
-2309402.15351751
],
[
-2499997.43562321,
-2453739.78811235
],
[
-2666664.17999826,
-2453739.78811235
],
[
-2749997.55218579,
-2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441704"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
0.0
],
[
-2666664.17999826,
144337.634594845
],
[
-2499997.43562321,
144337.634594845
],
[
-2416664.06343568,
0.0
],
[
-2499997.43562321,
-144337.634594844
],
[
-2666664.17999826,
-144337.634594844
],
[
-2749997.55218579,
0.0
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441873"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1999997.20249804,
1010363.44216391
],
[
-1916663.83031052,
1154701.07675875
],
[
-1749997.08593546,
1154701.07675875
],
[
-1666663.71374793,
1010363.44216391
],
[
-1749997.08593546,
866025.807569066
],
[
-1916663.83031052,
866025.807569066
],
[
-1999997.20249804,
1010363.44216391
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441966"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1499996.96937288,
-3897116.13406079
],
[
-1416663.59718535,
-3752778.49946595
],
[
-1249996.8528103,
-3752778.49946595
],
[
-1166663.48062277,
-3897116.13406079
],
[
-1249996.8528103,
-4041453.76865564
],
[
-1416663.59718535,
-4041453.76865564
],
[
-1499996.96937288,
-3897116.13406079
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441983"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1499996.96937288,
1010363.44216391
],
[
-1416663.59718535,
1154701.07675875
],
[
-1249996.8528103,
1154701.07675875
],
[
-1166663.48062277,
1010363.44216391
],
[
-1249996.8528103,
866025.807569066
],
[
-1416663.59718535,
866025.807569066
],
[
-1499996.96937288,
1010363.44216391
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442036"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1249996.8528103,
577350.538379378
],
[
-1166663.48062277,
721688.172974221
],
[
-999996.736247716,
721688.172974221
],
[
-916663.364060189,
577350.538379378
],
[
-999996.736247716,
433012.903784533
],
[
-1166663.48062277,
433012.903784533
],
[
-1249996.8528103,
577350.538379378
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442037"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1249996.8528103,
866025.807569066
],
[
-1166663.48062277,
1010363.44216391
],
[
-999996.736247716,
1010363.44216391
],
[
-916663.364060189,
866025.807569066
],
[
-999996.736247716,
721688.172974221
],
[
-1166663.48062277,
721688.172974221
],
[
-1249996.8528103,
866025.807569066
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442038"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1249996.8528103,
1154701.07675875
],
[
-1166663.48062277,
1299038.7113536
],
[
-999996.736247716,
1299038.7113536
],
[
-916663.364060189,
1154701.07675875
],
[
-999996.736247716,
1010363.44216391
],
[
-1166663.48062277,
1010363.44216391
],
[
-1249996.8528103,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442792"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-3464103.23027626
],
[
2333338.15125337,
-3319765.59568142
],
[
2500004.89562843,
-3319765.59568142
],
[
2583338.26781595,
-3464103.23027626
],
[
2500004.89562843,
-3608440.86487111
],
[
2333338.15125337,
-3608440.86487111
],
[
2250004.77906584,
-3464103.23027626
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442796"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-2309402.15351751
],
[
2333338.15125337,
-2165064.51892266
],
[
2500004.89562843,
-2165064.51892266
],
[
2583338.26781595,
-2309402.15351751
],
[
2500004.89562843,
-2453739.78811235
],
[
2333338.15125337,
-2453739.78811235
],
[
2250004.77906584,
-2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}