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=3958
{
"features": [
{
"properties": {
"pk": "441640"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
-2742415.05730204
],
[
-2916664.29656084,
-2598077.4227072
],
[
-2749997.55218579,
-2598077.4227072
],
[
-2666664.17999826,
-2742415.05730204
],
[
-2749997.55218579,
-2886752.69189688
],
[
-2916664.29656084,
-2886752.69189688
],
[
-2999997.66874837,
-2742415.05730204
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441810"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
-1154701.07675875
],
[
-2166663.9468731,
-1010363.44216391
],
[
-1999997.20249804,
-1010363.44216391
],
[
-1916663.83031052,
-1154701.07675875
],
[
-1999997.20249804,
-1299038.7113536
],
[
-2166663.9468731,
-1299038.7113536
],
[
-2249997.31906062,
-1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441865"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1999997.20249804,
-1299038.7113536
],
[
-1916663.83031052,
-1154701.07675875
],
[
-1749997.08593546,
-1154701.07675875
],
[
-1666663.71374793,
-1299038.7113536
],
[
-1749997.08593546,
-1443376.34594844
],
[
-1916663.83031052,
-1443376.34594844
],
[
-1999997.20249804,
-1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441866"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1999997.20249804,
-1010363.44216391
],
[
-1916663.83031052,
-866025.807569065
],
[
-1749997.08593546,
-866025.807569065
],
[
-1666663.71374793,
-1010363.44216391
],
[
-1749997.08593546,
-1154701.07675875
],
[
-1916663.83031052,
-1154701.07675875
],
[
-1999997.20249804,
-1010363.44216391
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441919"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
-1443376.34594844
],
[
-1666663.71374793,
-1299038.7113536
],
[
-1499996.96937288,
-1299038.7113536
],
[
-1416663.59718535,
-1443376.34594844
],
[
-1499996.96937288,
-1587713.98054329
],
[
-1666663.71374793,
-1587713.98054329
],
[
-1749997.08593546,
-1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442245"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-2598077.4227072
],
[
-166663.014372444,
-2453739.78811235
],
[
3.73000261001289,
-2453739.78811235
],
[
83337.1021901372,
-2598077.4227072
],
[
3.73000261001289,
-2742415.05730204
],
[
-166663.014372444,
-2742415.05730204
],
[
-249996.386559972,
-2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442247"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-2020726.88432782
],
[
-166663.014372444,
-1876389.24973297
],
[
3.73000261001289,
-1876389.24973297
],
[
83337.1021901372,
-2020726.88432782
],
[
3.73000261001289,
-2165064.51892266
],
[
-166663.014372444,
-2165064.51892266
],
[
-249996.386559972,
-2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442348"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-4618804.30703502
],
[
333337.218752719,
-4474466.67244017
],
[
500003.963127773,
-4474466.67244017
],
[
583337.3353153,
-4618804.30703502
],
[
500003.963127773,
-4763141.94162986
],
[
333337.218752719,
-4763141.94162986
],
[
250003.846565192,
-4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442459"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-4330129.03784533
],
[
833337.451877881,
-4185791.40325048
],
[
1000004.19625294,
-4185791.40325048
],
[
1083337.56844046,
-4330129.03784533
],
[
1000004.19625294,
-4474466.67244017
],
[
833337.451877881,
-4474466.67244017
],
[
750004.079690354,
-4330129.03784533
]
]
]
],
"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": "442518"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
-3319765.59568142
],
[
1083337.56844046,
-3175427.96108657
],
[
1250004.31281552,
-3175427.96108657
],
[
1333337.68500304,
-3319765.59568142
],
[
1250004.31281552,
-3464103.23027626
],
[
1083337.56844046,
-3464103.23027626
],
[
1000004.19625294,
-3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442571"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-3752778.49946595
],
[
1333337.68500304,
-3608440.86487111
],
[
1500004.4293781,
-3608440.86487111
],
[
1583337.80156563,
-3752778.49946595
],
[
1500004.4293781,
-3897116.13406079
],
[
1333337.68500304,
-3897116.13406079
],
[
1250004.31281552,
-3752778.49946595
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442983"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
3897116.13406079
],
[
3083338.50094112,
4041453.76865564
],
[
3250005.24531617,
4041453.76865564
],
[
3333338.6175037,
3897116.13406079
],
[
3250005.24531617,
3752778.49946595
],
[
3083338.50094112,
3752778.49946595
],
[
3000005.12875359,
3897116.13406079
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}