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=9235
{
"features": [
{
"properties": {
"pk": "441599"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
1443376.34594844
],
[
-3166664.41312342,
1587713.98054329
],
[
-2999997.66874837,
1587713.98054329
],
[
-2916664.29656084,
1443376.34594844
],
[
-2999997.66874837,
1299038.7113536
],
[
-3166664.41312342,
1299038.7113536
],
[
-3249997.78531095,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441654"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
1299038.7113536
],
[
-2916664.29656084,
1443376.34594844
],
[
-2749997.55218579,
1443376.34594844
],
[
-2666664.17999826,
1299038.7113536
],
[
-2749997.55218579,
1154701.07675875
],
[
-2916664.29656084,
1154701.07675875
],
[
-2999997.66874837,
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": "441767"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
2165064.51892266
],
[
-2416664.06343568,
2309402.15351751
],
[
-2249997.31906062,
2309402.15351751
],
[
-2166663.9468731,
2165064.51892266
],
[
-2249997.31906062,
2020726.88432782
],
[
-2416664.06343568,
2020726.88432782
],
[
-2499997.43562321,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441935"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
3175427.96108657
],
[
-1666663.71374793,
3319765.59568142
],
[
-1499996.96937288,
3319765.59568142
],
[
-1416663.59718535,
3175427.96108657
],
[
-1499996.96937288,
3031090.32649173
],
[
-1666663.71374793,
3031090.32649173
],
[
-1749997.08593546,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"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"
}
},
{
"properties": {
"pk": "442270"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
4618804.30703502
],
[
-166663.014372444,
4763141.94162986
],
[
3.73000261001289,
4763141.94162986
],
[
83337.1021901372,
4618804.30703502
],
[
3.73000261001289,
4474466.67244017
],
[
-166663.014372444,
4474466.67244017
],
[
-249996.386559972,
4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442438"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
5340492.48000924
],
[
583337.3353153,
5484830.11460408
],
[
750004.079690354,
5484830.11460408
],
[
833337.451877881,
5340492.48000924
],
[
750004.079690354,
5196154.84541439
],
[
583337.3353153,
5196154.84541439
],
[
500003.963127773,
5340492.48000924
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442483"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
2598077.4227072
],
[
833337.451877881,
2742415.05730204
],
[
1000004.19625294,
2742415.05730204
],
[
1083337.56844046,
2598077.4227072
],
[
1000004.19625294,
2453739.78811235
],
[
833337.451877881,
2453739.78811235
],
[
750004.079690354,
2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442538"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
2453739.78811235
],
[
1083337.56844046,
2598077.4227072
],
[
1250004.31281552,
2598077.4227072
],
[
1333337.68500304,
2453739.78811235
],
[
1250004.31281552,
2309402.15351751
],
[
1083337.56844046,
2309402.15351751
],
[
1000004.19625294,
2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442541"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
3319765.59568142
],
[
1083337.56844046,
3464103.23027626
],
[
1250004.31281552,
3464103.23027626
],
[
1333337.68500304,
3319765.59568142
],
[
1250004.31281552,
3175427.96108657
],
[
1083337.56844046,
3175427.96108657
],
[
1000004.19625294,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442595"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
3175427.96108657
],
[
1333337.68500304,
3319765.59568142
],
[
1500004.4293781,
3319765.59568142
],
[
1583337.80156563,
3175427.96108657
],
[
1500004.4293781,
3031090.32649173
],
[
1333337.68500304,
3031090.32649173
],
[
1250004.31281552,
3175427.96108657
]
]
]
],
"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": "442705"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
3175427.96108657
],
[
1833337.91812821,
3319765.59568142
],
[
2000004.66250326,
3319765.59568142
],
[
2083338.03469079,
3175427.96108657
],
[
2000004.66250326,
3031090.32649173
],
[
1833337.91812821,
3031090.32649173
],
[
1750004.54594068,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}