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=2602041
{
"features": [
{
"properties": {
"pk": "441159"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5249998.7178116,
1443376.34594844
],
[
-5166665.34562408,
1587713.98054329
],
[
-4999998.60124902,
1587713.98054329
],
[
-4916665.22906149,
1443376.34594844
],
[
-4999998.60124902,
1299038.7113536
],
[
-5166665.34562408,
1299038.7113536
],
[
-5249998.7178116,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441324"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
1299038.7113536
],
[
-4416664.99593633,
1443376.34594844
],
[
-4249998.25156128,
1443376.34594844
],
[
-4166664.87937375,
1299038.7113536
],
[
-4249998.25156128,
1154701.07675875
],
[
-4416664.99593633,
1154701.07675875
],
[
-4499998.36812386,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443062"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
-5051817.21081955
],
[
3583338.73406628,
-4907479.5762247
],
[
3750005.47844133,
-4907479.5762247
],
[
3833338.85062886,
-5051817.21081955
],
[
3750005.47844133,
-5196154.84541439
],
[
3583338.73406628,
-5196154.84541439
],
[
3500005.36187875,
-5051817.21081955
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}