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=3925
{
"features": [
{
"properties": {
"pk": "441106"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5499998.83437418,
1876389.24973297
],
[
-5416665.46218666,
2020726.88432782
],
[
-5249998.7178116,
2020726.88432782
],
[
-5166665.34562408,
1876389.24973297
],
[
-5249998.7178116,
1732051.61513813
],
[
-5416665.46218666,
1732051.61513813
],
[
-5499998.83437418,
1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441324"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
1299038.7113536
],
[
-4416664.99593633,
1443376.34594844
],
[
-4249998.25156128,
1443376.34594844
],
[
-4166664.87937375,
1299038.7113536
],
[
-4249998.25156128,
1154701.07675875
],
[
-4416664.99593633,
1154701.07675875
],
[
-4499998.36812386,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441710"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
1732051.61513813
],
[
-2666664.17999826,
1876389.24973297
],
[
-2499997.43562321,
1876389.24973297
],
[
-2416664.06343568,
1732051.61513813
],
[
-2499997.43562321,
1587713.98054329
],
[
-2666664.17999826,
1587713.98054329
],
[
-2749997.55218579,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442739"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
-3031090.32649173
],
[
2083338.03469079,
-2886752.69189688
],
[
2250004.77906584,
-2886752.69189688
],
[
2333338.15125337,
-3031090.32649173
],
[
2250004.77906584,
-3175427.96108657
],
[
2083338.03469079,
-3175427.96108657
],
[
2000004.66250326,
-3031090.32649173
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442962"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
-2165064.51892266
],
[
3083338.50094112,
-2020726.88432782
],
[
3250005.24531617,
-2020726.88432782
],
[
3333338.6175037,
-2165064.51892266
],
[
3250005.24531617,
-2309402.15351751
],
[
3083338.50094112,
-2309402.15351751
],
[
3000005.12875359,
-2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443016"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
-2309402.15351751
],
[
3333338.6175037,
-2165064.51892266
],
[
3500005.36187875,
-2165064.51892266
],
[
3583338.73406628,
-2309402.15351751
],
[
3500005.36187875,
-2453739.78811235
],
[
3333338.6175037,
-2453739.78811235
],
[
3250005.24531617,
-2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}