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=2253546
{
"features": [
{
"properties": {
"pk": "442150"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-749996.619685135,
1732051.61513813
],
[
-666663.247497608,
1876389.24973297
],
[
-499996.503122553,
1876389.24973297
],
[
-416663.130935026,
1732051.61513813
],
[
-499996.503122553,
1587713.98054329
],
[
-666663.247497608,
1587713.98054329
],
[
-749996.619685135,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442206"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-499996.503122553,
1876389.24973297
],
[
-416663.130935026,
2020726.88432782
],
[
-249996.386559972,
2020726.88432782
],
[
-166663.014372444,
1876389.24973297
],
[
-249996.386559972,
1732051.61513813
],
[
-416663.130935026,
1732051.61513813
],
[
-499996.503122553,
1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}