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=2263
{
"features": [
{
"properties": {
"pk": "441378"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4249998.25156128,
1154701.07675875
],
[
-4166664.87937375,
1299038.7113536
],
[
-3999998.13499869,
1299038.7113536
],
[
-3916664.76281117,
1154701.07675875
],
[
-3999998.13499869,
1010363.44216391
],
[
-4166664.87937375,
1010363.44216391
],
[
-4249998.25156128,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441489"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
1443376.34594844
],
[
-3666664.64624859,
1587713.98054329
],
[
-3499997.90187353,
1587713.98054329
],
[
-3416664.529686,
1443376.34594844
],
[
-3499997.90187353,
1299038.7113536
],
[
-3666664.64624859,
1299038.7113536
],
[
-3749998.01843611,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442343"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-6062180.65298346
],
[
333337.218752719,
-5917843.01838861
],
[
500003.963127773,
-5917843.01838861
],
[
583337.3353153,
-6062180.65298346
],
[
500003.963127773,
-6206518.2875783
],
[
333337.218752719,
-6206518.2875783
],
[
250003.846565192,
-6062180.65298346
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442398"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-6206518.2875783
],
[
583337.3353153,
-6062180.65298346
],
[
750004.079690354,
-6062180.65298346
],
[
833337.451877881,
-6206518.2875783
],
[
750004.079690354,
-6350855.92217315
],
[
583337.3353153,
-6350855.92217315
],
[
500003.963127773,
-6206518.2875783
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443060"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
-5629167.74919892
],
[
3583338.73406628,
-5484830.11460408
],
[
3750005.47844133,
-5484830.11460408
],
[
3833338.85062886,
-5629167.74919892
],
[
3750005.47844133,
-5773505.38379377
],
[
3583338.73406628,
-5773505.38379377
],
[
3500005.36187875,
-5629167.74919892
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443392"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
5000006.06125424,
-5051817.21081955
],
[
5083339.43344177,
-4907479.5762247
],
[
5250006.17781682,
-4907479.5762247
],
[
5333339.55000435,
-5051817.21081955
],
[
5250006.17781682,
-5196154.84541439
],
[
5083339.43344177,
-5196154.84541439
],
[
5000006.06125424,
-5051817.21081955
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443664"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
6250006.64406715,
-5773505.38379377
],
[
6333340.01625468,
-5629167.74919892
],
[
6500006.76062973,
-5629167.74919892
],
[
6583340.13281726,
-5773505.38379377
],
[
6500006.76062973,
-5917843.01838861
],
[
6333340.01625468,
-5917843.01838861
],
[
6250006.64406715,
-5773505.38379377
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}