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/?taxon=1208
{
"features": [
{
"properties": {
"pk": "441709"
},
"type": "Feature",
"geometry": {
"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": "MultiPolygon"
}
},
{
"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": "441921"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
-866025.807569065
],
[
-1666663.71374793,
-721688.17297422
],
[
-1499996.96937288,
-721688.17297422
],
[
-1416663.59718535,
-866025.807569065
],
[
-1499996.96937288,
-1010363.44216391
],
[
-1666663.71374793,
-1010363.44216391
],
[
-1749997.08593546,
-866025.807569065
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441995"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1499996.96937288,
4474466.67244017
],
[
-1416663.59718535,
4618804.30703502
],
[
-1249996.8528103,
4618804.30703502
],
[
-1166663.48062277,
4474466.67244017
],
[
-1249996.8528103,
4330129.03784533
],
[
-1416663.59718535,
4330129.03784533
],
[
-1499996.96937288,
4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442528"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
-433012.903784532
],
[
1083337.56844046,
-288675.269189688
],
[
1250004.31281552,
-288675.269189688
],
[
1333337.68500304,
-433012.903784532
],
[
1250004.31281552,
-577350.538379377
],
[
1083337.56844046,
-577350.538379377
],
[
1000004.19625294,
-433012.903784532
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}