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=5183893
{
"features": [
{
"properties": {
"pk": "441378"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4249998.25156128,
1154701.07675875
],
[
-4166664.87937375,
1299038.7113536
],
[
-3999998.13499869,
1299038.7113536
],
[
-3916664.76281117,
1154701.07675875
],
[
-3999998.13499869,
1010363.44216391
],
[
-4166664.87937375,
1010363.44216391
],
[
-4249998.25156128,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442321"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
3319765.59568142
],
[
83337.1021901372,
3464103.23027626
],
[
250003.846565192,
3464103.23027626
],
[
333337.218752719,
3319765.59568142
],
[
250003.846565192,
3175427.96108657
],
[
83337.1021901372,
3175427.96108657
],
[
3.73000261001289,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}