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=6316978
{
"features": [
{
"properties": {
"pk": "442917"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
866025.807569066
],
[
2833338.38437853,
1010363.44216391
],
[
3000005.12875359,
1010363.44216391
],
[
3083338.50094112,
866025.807569066
],
[
3000005.12875359,
721688.172974221
],
[
2833338.38437853,
721688.172974221
],
[
2750005.01219101,
866025.807569066
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443138"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3750005.47844133,
1154701.07675875
],
[
3833338.85062886,
1299038.7113536
],
[
4000005.59500391,
1299038.7113536
],
[
4083338.96719144,
1154701.07675875
],
[
4000005.59500391,
1010363.44216391
],
[
3833338.85062886,
1010363.44216391
],
[
3750005.47844133,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}