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=2278929
{
"features": [
{
"properties": {
"pk": "441328"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
2453739.78811235
],
[
-4416664.99593633,
2598077.4227072
],
[
-4249998.25156128,
2598077.4227072
],
[
-4166664.87937375,
2453739.78811235
],
[
-4249998.25156128,
2309402.15351751
],
[
-4416664.99593633,
2309402.15351751
],
[
-4499998.36812386,
2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442674"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
-5773505.38379377
],
[
1833337.91812821,
-5629167.74919892
],
[
2000004.66250326,
-5629167.74919892
],
[
2083338.03469079,
-5773505.38379377
],
[
2000004.66250326,
-5917843.01838861
],
[
1833337.91812821,
-5917843.01838861
],
[
1750004.54594068,
-5773505.38379377
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442729"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
-5917843.01838861
],
[
2083338.03469079,
-5773505.38379377
],
[
2250004.77906584,
-5773505.38379377
],
[
2333338.15125337,
-5917843.01838861
],
[
2250004.77906584,
-6062180.65298346
],
[
2083338.03469079,
-6062180.65298346
],
[
2000004.66250326,
-5917843.01838861
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442784"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-5773505.38379377
],
[
2333338.15125337,
-5629167.74919892
],
[
2500004.89562843,
-5629167.74919892
],
[
2583338.26781595,
-5773505.38379377
],
[
2500004.89562843,
-5917843.01838861
],
[
2333338.15125337,
-5917843.01838861
],
[
2250004.77906584,
-5773505.38379377
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}