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=7852764
{
"features": [
{
"properties": {
"pk": "441261"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4749998.48468644,
-866025.807569065
],
[
-4666665.11249891,
-721688.17297422
],
[
-4499998.36812386,
-721688.17297422
],
[
-4416664.99593633,
-866025.807569065
],
[
-4499998.36812386,
-1010363.44216391
],
[
-4666665.11249891,
-1010363.44216391
],
[
-4749998.48468644,
-866025.807569065
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441757"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
-721688.17297422
],
[
-2416664.06343568,
-577350.538379377
],
[
-2249997.31906062,
-577350.538379377
],
[
-2166663.9468731,
-721688.17297422
],
[
-2249997.31906062,
-866025.807569065
],
[
-2416664.06343568,
-866025.807569065
],
[
-2499997.43562321,
-721688.17297422
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443013"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
-3175427.96108657
],
[
3333338.6175037,
-3031090.32649173
],
[
3500005.36187875,
-3031090.32649173
],
[
3583338.73406628,
-3175427.96108657
],
[
3500005.36187875,
-3319765.59568142
],
[
3333338.6175037,
-3319765.59568142
],
[
3250005.24531617,
-3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}