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=2254426
{
"features": [
{
"properties": {
"pk": "441536"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
-1010363.44216391
],
[
-3416664.529686,
-866025.807569065
],
[
-3249997.78531095,
-866025.807569065
],
[
-3166664.41312342,
-1010363.44216391
],
[
-3249997.78531095,
-1154701.07675875
],
[
-3416664.529686,
-1154701.07675875
],
[
-3499997.90187353,
-1010363.44216391
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441585"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
-2598077.4227072
],
[
-3166664.41312342,
-2453739.78811235
],
[
-2999997.66874837,
-2453739.78811235
],
[
-2916664.29656084,
-2598077.4227072
],
[
-2999997.66874837,
-2742415.05730204
],
[
-3166664.41312342,
-2742415.05730204
],
[
-3249997.78531095,
-2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442303"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-1876389.24973297
],
[
83337.1021901372,
-1732051.61513813
],
[
250003.846565192,
-1732051.61513813
],
[
333337.218752719,
-1876389.24973297
],
[
250003.846565192,
-2020726.88432782
],
[
83337.1021901372,
-2020726.88432782
],
[
3.73000261001289,
-1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}