Occurrence Grid
Process queries for HexGrid objects. Will be deprecated in future version :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=2331375
{
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"features": [
{
"type": "Feature",
"properties": {
"pk": "441495"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-3749998.01843611,
3175427.96108657
],
[
-3666664.64624859,
3319765.59568142
],
[
-3499997.90187353,
3319765.59568142
],
[
-3416664.529686,
3175427.96108657
],
[
-3499997.90187353,
3031090.32649173
],
[
-3666664.64624859,
3031090.32649173
],
[
-3749998.01843611,
3175427.96108657
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "441601"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-3249997.78531095,
2020726.88432782
],
[
-3166664.41312342,
2165064.51892266
],
[
-2999997.66874837,
2165064.51892266
],
[
-2916664.29656084,
2020726.88432782
],
[
-2999997.66874837,
1876389.24973297
],
[
-3166664.41312342,
1876389.24973297
],
[
-3249997.78531095,
2020726.88432782
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "441709"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-2749997.55218579,
1443376.34594844
],
[
-2666664.17999826,
1587713.98054329
],
[
-2499997.43562321,
1587713.98054329
],
[
-2416664.06343568,
1443376.34594844
],
[
-2499997.43562321,
1299038.7113536
],
[
-2666664.17999826,
1299038.7113536
],
[
-2749997.55218579,
1443376.34594844
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "441710"
},
"geometry": {
"type": "MultiPolygon",
"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": "Feature",
"properties": {
"pk": "441825"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-2249997.31906062,
3175427.96108657
],
[
-2166663.9468731,
3319765.59568142
],
[
-1999997.20249804,
3319765.59568142
],
[
-1916663.83031052,
3175427.96108657
],
[
-1999997.20249804,
3031090.32649173
],
[
-2166663.9468731,
3031090.32649173
],
[
-2249997.31906062,
3175427.96108657
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "442303"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
3.73000261001289,
-1876389.24973297
],
[
83337.1021901372,
-1732051.61513813
],
[
250003.846565192,
-1732051.61513813
],
[
333337.218752719,
-1876389.24973297
],
[
250003.846565192,
-2020726.88432782
],
[
83337.1021901372,
-2020726.88432782
],
[
3.73000261001289,
-1876389.24973297
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "442807"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
2250004.77906584,
866025.807569066
],
[
2333338.15125337,
1010363.44216391
],
[
2500004.89562843,
1010363.44216391
],
[
2583338.26781595,
866025.807569066
],
[
2500004.89562843,
721688.172974221
],
[
2333338.15125337,
721688.172974221
],
[
2250004.77906584,
866025.807569066
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "442858"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
2500004.89562843,
-433012.903784532
],
[
2583338.26781595,
-288675.269189688
],
[
2750005.01219101,
-288675.269189688
],
[
2833338.38437853,
-433012.903784532
],
[
2750005.01219101,
-577350.538379377
],
[
2583338.26781595,
-577350.538379377
],
[
2500004.89562843,
-433012.903784532
]
]
]
]
}
}
]
}