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=8150338
{
"features": [
{
"properties": {
"pk": "441655"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
1587713.98054329
],
[
-2916664.29656084,
1732051.61513813
],
[
-2749997.55218579,
1732051.61513813
],
[
-2666664.17999826,
1587713.98054329
],
[
-2749997.55218579,
1443376.34594844
],
[
-2916664.29656084,
1443376.34594844
],
[
-2999997.66874837,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441825"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
3175427.96108657
],
[
-2166663.9468731,
3319765.59568142
],
[
-1999997.20249804,
3319765.59568142
],
[
-1916663.83031052,
3175427.96108657
],
[
-1999997.20249804,
3031090.32649173
],
[
-2166663.9468731,
3031090.32649173
],
[
-2249997.31906062,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442570"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-4041453.76865564
],
[
1333337.68500304,
-3897116.13406079
],
[
1500004.4293781,
-3897116.13406079
],
[
1583337.80156563,
-4041453.76865564
],
[
1500004.4293781,
-4185791.40325048
],
[
1333337.68500304,
-4185791.40325048
],
[
1250004.31281552,
-4041453.76865564
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}