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=2217685
{
"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": "441258"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4749998.48468644,
-1732051.61513813
],
[
-4666665.11249891,
-1587713.98054329
],
[
-4499998.36812386,
-1587713.98054329
],
[
-4416664.99593633,
-1732051.61513813
],
[
-4499998.36812386,
-1876389.24973297
],
[
-4666665.11249891,
-1876389.24973297
],
[
-4749998.48468644,
-1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441369"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4249998.25156128,
-1443376.34594844
],
[
-4166664.87937375,
-1299038.7113536
],
[
-3999998.13499869,
-1299038.7113536
],
[
-3916664.76281117,
-1443376.34594844
],
[
-3999998.13499869,
-1587713.98054329
],
[
-4166664.87937375,
-1587713.98054329
],
[
-4249998.25156128,
-1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441709"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
1443376.34594844
],
[
-2666664.17999826,
1587713.98054329
],
[
-2499997.43562321,
1587713.98054329
],
[
-2416664.06343568,
1443376.34594844
],
[
-2499997.43562321,
1299038.7113536
],
[
-2666664.17999826,
1299038.7113536
],
[
-2749997.55218579,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441765"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
1587713.98054329
],
[
-2416664.06343568,
1732051.61513813
],
[
-2249997.31906062,
1732051.61513813
],
[
-2166663.9468731,
1587713.98054329
],
[
-2249997.31906062,
1443376.34594844
],
[
-2416664.06343568,
1443376.34594844
],
[
-2499997.43562321,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441824"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
2886752.69189689
],
[
-2166663.9468731,
3031090.32649173
],
[
-1999997.20249804,
3031090.32649173
],
[
-1916663.83031052,
2886752.69189689
],
[
-1999997.20249804,
2742415.05730204
],
[
-2166663.9468731,
2742415.05730204
],
[
-2249997.31906062,
2886752.69189689
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441877"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1999997.20249804,
2165064.51892266
],
[
-1916663.83031052,
2309402.15351751
],
[
-1749997.08593546,
2309402.15351751
],
[
-1666663.71374793,
2165064.51892266
],
[
-1749997.08593546,
2020726.88432782
],
[
-1916663.83031052,
2020726.88432782
],
[
-1999997.20249804,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442095"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-999996.736247716,
1587713.98054329
],
[
-916663.364060189,
1732051.61513813
],
[
-749996.619685135,
1732051.61513813
],
[
-666663.247497608,
1587713.98054329
],
[
-749996.619685135,
1443376.34594844
],
[
-916663.364060189,
1443376.34594844
],
[
-999996.736247716,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442591"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
2020726.88432782
],
[
1333337.68500304,
2165064.51892266
],
[
1500004.4293781,
2165064.51892266
],
[
1583337.80156563,
2020726.88432782
],
[
1500004.4293781,
1876389.24973297
],
[
1333337.68500304,
1876389.24973297
],
[
1250004.31281552,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442601"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
4907479.57622471
],
[
1333337.68500304,
5051817.21081955
],
[
1500004.4293781,
5051817.21081955
],
[
1583337.80156563,
4907479.57622471
],
[
1500004.4293781,
4763141.94162986
],
[
1333337.68500304,
4763141.94162986
],
[
1250004.31281552,
4907479.57622471
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442916"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
577350.538379378
],
[
2833338.38437853,
721688.172974221
],
[
3000005.12875359,
721688.172974221
],
[
3083338.50094112,
577350.538379378
],
[
3000005.12875359,
433012.903784533
],
[
2833338.38437853,
433012.903784533
],
[
2750005.01219101,
577350.538379378
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443075"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
-1299038.7113536
],
[
3583338.73406628,
-1154701.07675875
],
[
3750005.47844133,
-1154701.07675875
],
[
3833338.85062886,
-1299038.7113536
],
[
3750005.47844133,
-1443376.34594844
],
[
3583338.73406628,
-1443376.34594844
],
[
3500005.36187875,
-1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}