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=3366
{
"features": [
{
"properties": {
"pk": "441987"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1499996.96937288,
2165064.51892266
],
[
-1416663.59718535,
2309402.15351751
],
[
-1249996.8528103,
2309402.15351751
],
[
-1166663.48062277,
2165064.51892266
],
[
-1249996.8528103,
2020726.88432782
],
[
-1416663.59718535,
2020726.88432782
],
[
-1499996.96937288,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442151"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-749996.619685135,
2020726.88432782
],
[
-666663.247497608,
2165064.51892266
],
[
-499996.503122553,
2165064.51892266
],
[
-416663.130935026,
2020726.88432782
],
[
-499996.503122553,
1876389.24973297
],
[
-666663.247497608,
1876389.24973297
],
[
-749996.619685135,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442152"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-749996.619685135,
2309402.15351751
],
[
-666663.247497608,
2453739.78811235
],
[
-499996.503122553,
2453739.78811235
],
[
-416663.130935026,
2309402.15351751
],
[
-499996.503122553,
2165064.51892266
],
[
-666663.247497608,
2165064.51892266
],
[
-749996.619685135,
2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442207"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-499996.503122553,
2165064.51892266
],
[
-416663.130935026,
2309402.15351751
],
[
-249996.386559972,
2309402.15351751
],
[
-166663.014372444,
2165064.51892266
],
[
-249996.386559972,
2020726.88432782
],
[
-416663.130935026,
2020726.88432782
],
[
-499996.503122553,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442208"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-499996.503122553,
2453739.78811235
],
[
-416663.130935026,
2598077.4227072
],
[
-249996.386559972,
2598077.4227072
],
[
-166663.014372444,
2453739.78811235
],
[
-249996.386559972,
2309402.15351751
],
[
-416663.130935026,
2309402.15351751
],
[
-499996.503122553,
2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}