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=5818640
{
"features": [
{
"properties": {
"pk": "442950"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
-5629167.74919892
],
[
3083338.50094112,
-5484830.11460408
],
[
3250005.24531617,
-5484830.11460408
],
[
3333338.6175037,
-5629167.74919892
],
[
3250005.24531617,
-5773505.38379377
],
[
3083338.50094112,
-5773505.38379377
],
[
3000005.12875359,
-5629167.74919892
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442951"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
-5340492.48000924
],
[
3083338.50094112,
-5196154.84541439
],
[
3250005.24531617,
-5196154.84541439
],
[
3333338.6175037,
-5340492.48000924
],
[
3250005.24531617,
-5484830.11460408
],
[
3083338.50094112,
-5484830.11460408
],
[
3000005.12875359,
-5340492.48000924
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}