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=2481491
{
"features": [
{
"properties": {
"pk": "442789"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-4330129.03784533
],
[
2333338.15125337,
-4185791.40325048
],
[
2500004.89562843,
-4185791.40325048
],
[
2583338.26781595,
-4330129.03784533
],
[
2500004.89562843,
-4474466.67244017
],
[
2333338.15125337,
-4474466.67244017
],
[
2250004.77906584,
-4330129.03784533
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}