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=7482882
{
"features": [
{
"properties": {
"pk": "441109"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5499998.83437418,
2742415.05730204
],
[
-5416665.46218666,
2886752.69189689
],
[
-5249998.7178116,
2886752.69189689
],
[
-5166665.34562408,
2742415.05730204
],
[
-5249998.7178116,
2598077.4227072
],
[
-5416665.46218666,
2598077.4227072
],
[
-5499998.83437418,
2742415.05730204
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441165"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5249998.7178116,
3175427.96108657
],
[
-5166665.34562408,
3319765.59568142
],
[
-4999998.60124902,
3319765.59568142
],
[
-4916665.22906149,
3175427.96108657
],
[
-4999998.60124902,
3031090.32649173
],
[
-5166665.34562408,
3031090.32649173
],
[
-5249998.7178116,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}