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=8165
{
"features": [
{
"properties": {
"pk": "441822"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
2309402.15351751
],
[
-2166663.9468731,
2453739.78811235
],
[
-1999997.20249804,
2453739.78811235
],
[
-1916663.83031052,
2309402.15351751
],
[
-1999997.20249804,
2165064.51892266
],
[
-2166663.9468731,
2165064.51892266
],
[
-2249997.31906062,
2309402.15351751
]
]
]
],
"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": "442465"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-2598077.4227072
],
[
833337.451877881,
-2453739.78811235
],
[
1000004.19625294,
-2453739.78811235
],
[
1083337.56844046,
-2598077.4227072
],
[
1000004.19625294,
-2742415.05730204
],
[
833337.451877881,
-2742415.05730204
],
[
750004.079690354,
-2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442466"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-2309402.15351751
],
[
833337.451877881,
-2165064.51892266
],
[
1000004.19625294,
-2165064.51892266
],
[
1083337.56844046,
-2309402.15351751
],
[
1000004.19625294,
-2453739.78811235
],
[
833337.451877881,
-2453739.78811235
],
[
750004.079690354,
-2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442800"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-1154701.07675875
],
[
2333338.15125337,
-1010363.44216391
],
[
2500004.89562843,
-1010363.44216391
],
[
2583338.26781595,
-1154701.07675875
],
[
2500004.89562843,
-1299038.7113536
],
[
2333338.15125337,
-1299038.7113536
],
[
2250004.77906584,
-1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}