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=8202
{
"features": [
{
"properties": {
"pk": "441105"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5499998.83437418,
1587713.98054329
],
[
-5416665.46218666,
1732051.61513813
],
[
-5249998.7178116,
1732051.61513813
],
[
-5166665.34562408,
1587713.98054329
],
[
-5249998.7178116,
1443376.34594844
],
[
-5416665.46218666,
1443376.34594844
],
[
-5499998.83437418,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441378"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4249998.25156128,
1154701.07675875
],
[
-4166664.87937375,
1299038.7113536
],
[
-3999998.13499869,
1299038.7113536
],
[
-3916664.76281117,
1154701.07675875
],
[
-3999998.13499869,
1010363.44216391
],
[
-4166664.87937375,
1010363.44216391
],
[
-4249998.25156128,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441823"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
2598077.4227072
],
[
-2166663.9468731,
2742415.05730204
],
[
-1999997.20249804,
2742415.05730204
],
[
-1916663.83031052,
2598077.4227072
],
[
-1999997.20249804,
2453739.78811235
],
[
-2166663.9468731,
2453739.78811235
],
[
-2249997.31906062,
2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441927"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
866025.807569066
],
[
-1666663.71374793,
1010363.44216391
],
[
-1499996.96937288,
1010363.44216391
],
[
-1416663.59718535,
866025.807569066
],
[
-1499996.96937288,
721688.172974221
],
[
-1666663.71374793,
721688.172974221
],
[
-1749997.08593546,
866025.807569066
]
]
]
],
"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": "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": "442294"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-4474466.67244017
],
[
83337.1021901372,
-4330129.03784533
],
[
250003.846565192,
-4330129.03784533
],
[
333337.218752719,
-4474466.67244017
],
[
250003.846565192,
-4618804.30703502
],
[
83337.1021901372,
-4618804.30703502
],
[
3.73000261001289,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}