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=4562996
{
"features": [
{
"properties": {
"pk": "442897"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-4907479.5762247
],
[
2833338.38437853,
-4763141.94162986
],
[
3000005.12875359,
-4763141.94162986
],
[
3083338.50094112,
-4907479.5762247
],
[
3000005.12875359,
-5051817.21081955
],
[
2833338.38437853,
-5051817.21081955
],
[
2750005.01219101,
-4907479.5762247
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442898"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-4618804.30703502
],
[
2833338.38437853,
-4474466.67244017
],
[
3000005.12875359,
-4474466.67244017
],
[
3083338.50094112,
-4618804.30703502
],
[
3000005.12875359,
-4763141.94162986
],
[
2833338.38437853,
-4763141.94162986
],
[
2750005.01219101,
-4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442953"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
-4763141.94162986
],
[
3083338.50094112,
-4618804.30703502
],
[
3250005.24531617,
-4618804.30703502
],
[
3333338.6175037,
-4763141.94162986
],
[
3250005.24531617,
-4907479.5762247
],
[
3083338.50094112,
-4907479.5762247
],
[
3000005.12875359,
-4763141.94162986
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}