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=6008
{
"features": [
{
"properties": {
"pk": "441593"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
-288675.269189688
],
[
-3166664.41312342,
-144337.634594844
],
[
-2999997.66874837,
-144337.634594844
],
[
-2916664.29656084,
-288675.269189688
],
[
-2999997.66874837,
-433012.903784532
],
[
-3166664.41312342,
-433012.903784532
],
[
-3249997.78531095,
-288675.269189688
]
]
]
],
"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": "441655"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
1587713.98054329
],
[
-2916664.29656084,
1732051.61513813
],
[
-2749997.55218579,
1732051.61513813
],
[
-2666664.17999826,
1587713.98054329
],
[
-2749997.55218579,
1443376.34594844
],
[
-2916664.29656084,
1443376.34594844
],
[
-2999997.66874837,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441657"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
2165064.51892266
],
[
-2916664.29656084,
2309402.15351751
],
[
-2749997.55218579,
2309402.15351751
],
[
-2666664.17999826,
2165064.51892266
],
[
-2749997.55218579,
2020726.88432782
],
[
-2916664.29656084,
2020726.88432782
],
[
-2999997.66874837,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441764"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
1299038.7113536
],
[
-2416664.06343568,
1443376.34594844
],
[
-2249997.31906062,
1443376.34594844
],
[
-2166663.9468731,
1299038.7113536
],
[
-2249997.31906062,
1154701.07675875
],
[
-2416664.06343568,
1154701.07675875
],
[
-2499997.43562321,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441803"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
-3175427.96108657
],
[
-2166663.9468731,
-3031090.32649173
],
[
-1999997.20249804,
-3031090.32649173
],
[
-1916663.83031052,
-3175427.96108657
],
[
-1999997.20249804,
-3319765.59568142
],
[
-2166663.9468731,
-3319765.59568142
],
[
-2249997.31906062,
-3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441931"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
2020726.88432782
],
[
-1666663.71374793,
2165064.51892266
],
[
-1499996.96937288,
2165064.51892266
],
[
-1416663.59718535,
2020726.88432782
],
[
-1499996.96937288,
1876389.24973297
],
[
-1666663.71374793,
1876389.24973297
],
[
-1749997.08593546,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441932"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
2309402.15351751
],
[
-1666663.71374793,
2453739.78811235
],
[
-1499996.96937288,
2453739.78811235
],
[
-1416663.59718535,
2309402.15351751
],
[
-1499996.96937288,
2165064.51892266
],
[
-1666663.71374793,
2165064.51892266
],
[
-1749997.08593546,
2309402.15351751
]
]
]
],
"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": "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": "442263"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
2598077.4227072
],
[
-166663.014372444,
2742415.05730204
],
[
3.73000261001289,
2742415.05730204
],
[
83337.1021901372,
2598077.4227072
],
[
3.73000261001289,
2453739.78811235
],
[
-166663.014372444,
2453739.78811235
],
[
-249996.386559972,
2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442303"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-1876389.24973297
],
[
83337.1021901372,
-1732051.61513813
],
[
250003.846565192,
-1732051.61513813
],
[
333337.218752719,
-1876389.24973297
],
[
250003.846565192,
-2020726.88432782
],
[
83337.1021901372,
-2020726.88432782
],
[
3.73000261001289,
-1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442355"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-2598077.4227072
],
[
333337.218752719,
-2453739.78811235
],
[
500003.963127773,
-2453739.78811235
],
[
583337.3353153,
-2598077.4227072
],
[
500003.963127773,
-2742415.05730204
],
[
333337.218752719,
-2742415.05730204
],
[
250003.846565192,
-2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442458"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-4618804.30703502
],
[
833337.451877881,
-4474466.67244017
],
[
1000004.19625294,
-4474466.67244017
],
[
1083337.56844046,
-4618804.30703502
],
[
1000004.19625294,
-4763141.94162986
],
[
833337.451877881,
-4763141.94162986
],
[
750004.079690354,
-4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442514"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
-4474466.67244017
],
[
1083337.56844046,
-4330129.03784533
],
[
1250004.31281552,
-4330129.03784533
],
[
1333337.68500304,
-4474466.67244017
],
[
1250004.31281552,
-4618804.30703502
],
[
1083337.56844046,
-4618804.30703502
],
[
1000004.19625294,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442569"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-4330129.03784533
],
[
1333337.68500304,
-4185791.40325048
],
[
1500004.4293781,
-4185791.40325048
],
[
1583337.80156563,
-4330129.03784533
],
[
1500004.4293781,
-4474466.67244017
],
[
1333337.68500304,
-4474466.67244017
],
[
1250004.31281552,
-4330129.03784533
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442752"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
721688.172974221
],
[
2083338.03469079,
866025.807569066
],
[
2250004.77906584,
866025.807569066
],
[
2333338.15125337,
721688.172974221
],
[
2250004.77906584,
577350.538379378
],
[
2083338.03469079,
577350.538379378
],
[
2000004.66250326,
721688.172974221
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442861"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
433012.903784533
],
[
2583338.26781595,
577350.538379378
],
[
2750005.01219101,
577350.538379378
],
[
2833338.38437853,
433012.903784533
],
[
2750005.01219101,
288675.269189689
],
[
2583338.26781595,
288675.269189689
],
[
2500004.89562843,
433012.903784533
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}