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/?taxon=9241244
{
"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": "441214"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4999998.60124902,
1299038.7113536
],
[
-4916665.22906149,
1443376.34594844
],
[
-4749998.48468644,
1443376.34594844
],
[
-4666665.11249891,
1299038.7113536
],
[
-4749998.48468644,
1154701.07675875
],
[
-4916665.22906149,
1154701.07675875
],
[
-4999998.60124902,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441217"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4999998.60124902,
2165064.51892266
],
[
-4916665.22906149,
2309402.15351751
],
[
-4749998.48468644,
2309402.15351751
],
[
-4666665.11249891,
2165064.51892266
],
[
-4749998.48468644,
2020726.88432782
],
[
-4916665.22906149,
2020726.88432782
],
[
-4999998.60124902,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441272"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4749998.48468644,
2309402.15351751
],
[
-4666665.11249891,
2453739.78811235
],
[
-4499998.36812386,
2453739.78811235
],
[
-4416664.99593633,
2309402.15351751
],
[
-4499998.36812386,
2165064.51892266
],
[
-4666665.11249891,
2165064.51892266
],
[
-4749998.48468644,
2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441326"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
1876389.24973297
],
[
-4416664.99593633,
2020726.88432782
],
[
-4249998.25156128,
2020726.88432782
],
[
-4166664.87937375,
1876389.24973297
],
[
-4249998.25156128,
1732051.61513813
],
[
-4416664.99593633,
1732051.61513813
],
[
-4499998.36812386,
1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441328"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
2453739.78811235
],
[
-4416664.99593633,
2598077.4227072
],
[
-4249998.25156128,
2598077.4227072
],
[
-4166664.87937375,
2453739.78811235
],
[
-4249998.25156128,
2309402.15351751
],
[
-4416664.99593633,
2309402.15351751
],
[
-4499998.36812386,
2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441330"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
3031090.32649173
],
[
-4416664.99593633,
3175427.96108657
],
[
-4249998.25156128,
3175427.96108657
],
[
-4166664.87937375,
3031090.32649173
],
[
-4249998.25156128,
2886752.69189689
],
[
-4416664.99593633,
2886752.69189689
],
[
-4499998.36812386,
3031090.32649173
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441379"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4249998.25156128,
1443376.34594844
],
[
-4166664.87937375,
1587713.98054329
],
[
-3999998.13499869,
1587713.98054329
],
[
-3916664.76281117,
1443376.34594844
],
[
-3999998.13499869,
1299038.7113536
],
[
-4166664.87937375,
1299038.7113536
],
[
-4249998.25156128,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441434"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
1299038.7113536
],
[
-3916664.76281117,
1443376.34594844
],
[
-3749998.01843611,
1443376.34594844
],
[
-3666664.64624859,
1299038.7113536
],
[
-3749998.01843611,
1154701.07675875
],
[
-3916664.76281117,
1154701.07675875
],
[
-3999998.13499869,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441435"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
1587713.98054329
],
[
-3916664.76281117,
1732051.61513813
],
[
-3749998.01843611,
1732051.61513813
],
[
-3666664.64624859,
1587713.98054329
],
[
-3749998.01843611,
1443376.34594844
],
[
-3916664.76281117,
1443376.34594844
],
[
-3999998.13499869,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441489"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
1443376.34594844
],
[
-3666664.64624859,
1587713.98054329
],
[
-3499997.90187353,
1587713.98054329
],
[
-3416664.529686,
1443376.34594844
],
[
-3499997.90187353,
1299038.7113536
],
[
-3666664.64624859,
1299038.7113536
],
[
-3749998.01843611,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441490"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
1732051.61513813
],
[
-3666664.64624859,
1876389.24973297
],
[
-3499997.90187353,
1876389.24973297
],
[
-3416664.529686,
1732051.61513813
],
[
-3499997.90187353,
1587713.98054329
],
[
-3666664.64624859,
1587713.98054329
],
[
-3749998.01843611,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441492"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
2309402.15351751
],
[
-3666664.64624859,
2453739.78811235
],
[
-3499997.90187353,
2453739.78811235
],
[
-3416664.529686,
2309402.15351751
],
[
-3499997.90187353,
2165064.51892266
],
[
-3666664.64624859,
2165064.51892266
],
[
-3749998.01843611,
2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442457"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-4907479.5762247
],
[
833337.451877881,
-4763141.94162986
],
[
1000004.19625294,
-4763141.94162986
],
[
1083337.56844046,
-4907479.5762247
],
[
1000004.19625294,
-5051817.21081955
],
[
833337.451877881,
-5051817.21081955
],
[
750004.079690354,
-4907479.5762247
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443071"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
-2453739.78811235
],
[
3583338.73406628,
-2309402.15351751
],
[
3750005.47844133,
-2309402.15351751
],
[
3833338.85062886,
-2453739.78811235
],
[
3750005.47844133,
-2598077.4227072
],
[
3583338.73406628,
-2598077.4227072
],
[
3500005.36187875,
-2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}