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=2278928
{
"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"
}
},
{
"properties": {
"pk": "443063"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
-4763141.94162986
],
[
3583338.73406628,
-4618804.30703502
],
[
3750005.47844133,
-4618804.30703502
],
[
3833338.85062886,
-4763141.94162986
],
[
3750005.47844133,
-4907479.5762247
],
[
3583338.73406628,
-4907479.5762247
],
[
3500005.36187875,
-4763141.94162986
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}