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=2440470
{
"features": [
{
"properties": {
"pk": "443485"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
5250006.17781682,
6062180.65298346
],
[
5333339.55000435,
6206518.2875783
],
[
5500006.2943794,
6206518.2875783
],
[
5583339.66656693,
6062180.65298346
],
[
5500006.2943794,
5917843.01838861
],
[
5333339.55000435,
5917843.01838861
],
[
5250006.17781682,
6062180.65298346
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443487"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
5250006.17781682,
6639531.19136284
],
[
5333339.55000435,
6783868.82595768
],
[
5500006.2943794,
6783868.82595768
],
[
5583339.66656693,
6639531.19136284
],
[
5500006.2943794,
6495193.55676799
],
[
5333339.55000435,
6495193.55676799
],
[
5250006.17781682,
6639531.19136284
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443653"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
6000006.52750457,
6783868.82595768
],
[
6083339.89969209,
6928206.46055252
],
[
6250006.64406715,
6928206.46055252
],
[
6333340.01625468,
6783868.82595768
],
[
6250006.64406715,
6639531.19136284
],
[
6083339.89969209,
6639531.19136284
],
[
6000006.52750457,
6783868.82595768
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443811"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
6750006.87719231,
4907479.57622471
],
[
6833340.24937984,
5051817.21081955
],
[
7000006.99375489,
5051817.21081955
],
[
7083340.36594242,
4907479.57622471
],
[
7000006.99375489,
4763141.94162986
],
[
6833340.24937984,
4763141.94162986
],
[
6750006.87719231,
4907479.57622471
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443818"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
6750006.87719231,
6928206.46055252
],
[
6833340.24937984,
7072544.09514737
],
[
7000006.99375489,
7072544.09514737
],
[
7083340.36594242,
6928206.46055252
],
[
7000006.99375489,
6783868.82595768
],
[
6833340.24937984,
6783868.82595768
],
[
6750006.87719231,
6928206.46055252
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443866"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
7000006.99375489,
4763141.94162986
],
[
7083340.36594242,
4907479.57622471
],
[
7250007.11031748,
4907479.57622471
],
[
7333340.482505,
4763141.94162986
],
[
7250007.11031748,
4618804.30703502
],
[
7083340.36594242,
4618804.30703502
],
[
7000006.99375489,
4763141.94162986
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443873"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
7000006.99375489,
6783868.82595768
],
[
7083340.36594242,
6928206.46055252
],
[
7250007.11031748,
6928206.46055252
],
[
7333340.482505,
6783868.82595768
],
[
7250007.11031748,
6639531.19136284
],
[
7083340.36594242,
6639531.19136284
],
[
7000006.99375489,
6783868.82595768
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}