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=145
{
"features": [
{
"properties": {
"pk": "442655"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
4474466.67244017
],
[
1583337.80156563,
4618804.30703502
],
[
1750004.54594068,
4618804.30703502
],
[
1833337.91812821,
4474466.67244017
],
[
1750004.54594068,
4330129.03784533
],
[
1583337.80156563,
4330129.03784533
],
[
1500004.4293781,
4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442801"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-866025.807569065
],
[
2333338.15125337,
-721688.17297422
],
[
2500004.89562843,
-721688.17297422
],
[
2583338.26781595,
-866025.807569065
],
[
2500004.89562843,
-1010363.44216391
],
[
2333338.15125337,
-1010363.44216391
],
[
2250004.77906584,
-866025.807569065
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}