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/?taxon=4333681
{
"features": [
{
"properties": {
"pk": "442597"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
3752778.49946595
],
[
1333337.68500304,
3897116.13406079
],
[
1500004.4293781,
3897116.13406079
],
[
1583337.80156563,
3752778.49946595
],
[
1500004.4293781,
3608440.86487111
],
[
1333337.68500304,
3608440.86487111
],
[
1250004.31281552,
3752778.49946595
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442811"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
2020726.88432782
],
[
2333338.15125337,
2165064.51892266
],
[
2500004.89562843,
2165064.51892266
],
[
2583338.26781595,
2020726.88432782
],
[
2500004.89562843,
1876389.24973297
],
[
2333338.15125337,
1876389.24973297
],
[
2250004.77906584,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442847"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-3608440.86487111
],
[
2583338.26781595,
-3464103.23027626
],
[
2750005.01219101,
-3464103.23027626
],
[
2833338.38437853,
-3608440.86487111
],
[
2750005.01219101,
-3752778.49946595
],
[
2583338.26781595,
-3752778.49946595
],
[
2500004.89562843,
-3608440.86487111
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}