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=3932
{
"features": [
{
"properties": {
"pk": "442371"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
2020726.88432782
],
[
333337.218752719,
2165064.51892266
],
[
500003.963127773,
2165064.51892266
],
[
583337.3353153,
2020726.88432782
],
[
500003.963127773,
1876389.24973297
],
[
333337.218752719,
1876389.24973297
],
[
250003.846565192,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442596"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
3464103.23027626
],
[
1333337.68500304,
3608440.86487111
],
[
1500004.4293781,
3608440.86487111
],
[
1583337.80156563,
3464103.23027626
],
[
1500004.4293781,
3319765.59568142
],
[
1333337.68500304,
3319765.59568142
],
[
1250004.31281552,
3464103.23027626
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}