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=2114831
{
"features": [
{
"properties": {
"pk": "441278"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4749998.48468644,
4041453.76865564
],
[
-4666665.11249891,
4185791.40325048
],
[
-4499998.36812386,
4185791.40325048
],
[
-4416664.99593633,
4041453.76865564
],
[
-4499998.36812386,
3897116.13406079
],
[
-4666665.11249891,
3897116.13406079
],
[
-4749998.48468644,
4041453.76865564
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441331"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
3319765.59568142
],
[
-4416664.99593633,
3464103.23027626
],
[
-4249998.25156128,
3464103.23027626
],
[
-4166664.87937375,
3319765.59568142
],
[
-4249998.25156128,
3175427.96108657
],
[
-4416664.99593633,
3175427.96108657
],
[
-4499998.36812386,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}