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=9096
{
"features": [
{
"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": "442000"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1499996.96937288,
5917843.01838861
],
[
-1416663.59718535,
6062180.65298346
],
[
-1249996.8528103,
6062180.65298346
],
[
-1166663.48062277,
5917843.01838861
],
[
-1249996.8528103,
5773505.38379377
],
[
-1416663.59718535,
5773505.38379377
],
[
-1499996.96937288,
5917843.01838861
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442194"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-499996.503122553,
-1587713.98054329
],
[
-416663.130935026,
-1443376.34594844
],
[
-249996.386559972,
-1443376.34594844
],
[
-166663.014372444,
-1587713.98054329
],
[
-249996.386559972,
-1732051.61513813
],
[
-416663.130935026,
-1732051.61513813
],
[
-499996.503122553,
-1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442248"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-1732051.61513813
],
[
-166663.014372444,
-1587713.98054329
],
[
3.73000261001289,
-1587713.98054329
],
[
83337.1021901372,
-1732051.61513813
],
[
3.73000261001289,
-1876389.24973297
],
[
-166663.014372444,
-1876389.24973297
],
[
-249996.386559972,
-1732051.61513813
]
]
]
],
"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": "442632"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
-2165064.51892266
],
[
1583337.80156563,
-2020726.88432782
],
[
1750004.54594068,
-2020726.88432782
],
[
1833337.91812821,
-2165064.51892266
],
[
1750004.54594068,
-2309402.15351751
],
[
1583337.80156563,
-2309402.15351751
],
[
1500004.4293781,
-2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442686"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
-2309402.15351751
],
[
1833337.91812821,
-2165064.51892266
],
[
2000004.66250326,
-2165064.51892266
],
[
2083338.03469079,
-2309402.15351751
],
[
2000004.66250326,
-2453739.78811235
],
[
1833337.91812821,
-2453739.78811235
],
[
1750004.54594068,
-2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442799"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-1443376.34594844
],
[
2333338.15125337,
-1299038.7113536
],
[
2500004.89562843,
-1299038.7113536
],
[
2583338.26781595,
-1443376.34594844
],
[
2500004.89562843,
-1587713.98054329
],
[
2333338.15125337,
-1587713.98054329
],
[
2250004.77906584,
-1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442800"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-1154701.07675875
],
[
2333338.15125337,
-1010363.44216391
],
[
2500004.89562843,
-1010363.44216391
],
[
2583338.26781595,
-1154701.07675875
],
[
2500004.89562843,
-1299038.7113536
],
[
2333338.15125337,
-1299038.7113536
],
[
2250004.77906584,
-1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442848"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-3319765.59568142
],
[
2583338.26781595,
-3175427.96108657
],
[
2750005.01219101,
-3175427.96108657
],
[
2833338.38437853,
-3319765.59568142
],
[
2750005.01219101,
-3464103.23027626
],
[
2583338.26781595,
-3464103.23027626
],
[
2500004.89562843,
-3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442850"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-2742415.05730204
],
[
2583338.26781595,
-2598077.4227072
],
[
2750005.01219101,
-2598077.4227072
],
[
2833338.38437853,
-2742415.05730204
],
[
2750005.01219101,
-2886752.69189688
],
[
2583338.26781595,
-2886752.69189688
],
[
2500004.89562843,
-2742415.05730204
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442904"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-2886752.69189688
],
[
2833338.38437853,
-2742415.05730204
],
[
3000005.12875359,
-2742415.05730204
],
[
3083338.50094112,
-2886752.69189688
],
[
3000005.12875359,
-3031090.32649173
],
[
2833338.38437853,
-3031090.32649173
],
[
2750005.01219101,
-2886752.69189688
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}