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=1398
{
"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": "441159"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5249998.7178116,
1443376.34594844
],
[
-5166665.34562408,
1587713.98054329
],
[
-4999998.60124902,
1587713.98054329
],
[
-4916665.22906149,
1443376.34594844
],
[
-4999998.60124902,
1299038.7113536
],
[
-5166665.34562408,
1299038.7113536
],
[
-5249998.7178116,
1443376.34594844
]
]
]
],
"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": "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": "442054"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1249996.8528103,
5773505.38379377
],
[
-1166663.48062277,
5917843.01838861
],
[
-999996.736247716,
5917843.01838861
],
[
-916663.364060189,
5773505.38379377
],
[
-999996.736247716,
5629167.74919893
],
[
-1166663.48062277,
5629167.74919893
],
[
-1249996.8528103,
5773505.38379377
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442771"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
6206518.2875783
],
[
2083338.03469079,
6350855.92217315
],
[
2250004.77906584,
6350855.92217315
],
[
2333338.15125337,
6206518.2875783
],
[
2250004.77906584,
6062180.65298346
],
[
2083338.03469079,
6062180.65298346
],
[
2000004.66250326,
6206518.2875783
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442772"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
6495193.55676799
],
[
2083338.03469079,
6639531.19136284
],
[
2250004.77906584,
6639531.19136284
],
[
2333338.15125337,
6495193.55676799
],
[
2250004.77906584,
6350855.92217315
],
[
2083338.03469079,
6350855.92217315
],
[
2000004.66250326,
6495193.55676799
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442880"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
5917843.01838861
],
[
2583338.26781595,
6062180.65298346
],
[
2750005.01219101,
6062180.65298346
],
[
2833338.38437853,
5917843.01838861
],
[
2750005.01219101,
5773505.38379377
],
[
2583338.26781595,
5773505.38379377
],
[
2500004.89562843,
5917843.01838861
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442935"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
6062180.65298346
],
[
2833338.38437853,
6206518.2875783
],
[
3000005.12875359,
6206518.2875783
],
[
3083338.50094112,
6062180.65298346
],
[
3000005.12875359,
5917843.01838861
],
[
2833338.38437853,
5917843.01838861
],
[
2750005.01219101,
6062180.65298346
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442990"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
5917843.01838861
],
[
3083338.50094112,
6062180.65298346
],
[
3250005.24531617,
6062180.65298346
],
[
3333338.6175037,
5917843.01838861
],
[
3250005.24531617,
5773505.38379377
],
[
3083338.50094112,
5773505.38379377
],
[
3000005.12875359,
5917843.01838861
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443212"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4000005.59500391,
6495193.55676799
],
[
4083338.96719144,
6639531.19136284
],
[
4250005.7115665,
6639531.19136284
],
[
4333339.08375402,
6495193.55676799
],
[
4250005.7115665,
6350855.92217315
],
[
4083338.96719144,
6350855.92217315
],
[
4000005.59500391,
6495193.55676799
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}