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=4339241
{
"features": [
{
"properties": {
"pk": "442245"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-2598077.4227072
],
[
-166663.014372444,
-2453739.78811235
],
[
3.73000261001289,
-2453739.78811235
],
[
83337.1021901372,
-2598077.4227072
],
[
3.73000261001289,
-2742415.05730204
],
[
-166663.014372444,
-2742415.05730204
],
[
-249996.386559972,
-2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442355"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-2598077.4227072
],
[
333337.218752719,
-2453739.78811235
],
[
500003.963127773,
-2453739.78811235
],
[
583337.3353153,
-2598077.4227072
],
[
500003.963127773,
-2742415.05730204
],
[
333337.218752719,
-2742415.05730204
],
[
250003.846565192,
-2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}