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=1489
{
"features": [
{
"properties": {
"pk": "441273"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4749998.48468644,
2598077.4227072
],
[
-4666665.11249891,
2742415.05730204
],
[
-4499998.36812386,
2742415.05730204
],
[
-4416664.99593633,
2598077.4227072
],
[
-4499998.36812386,
2453739.78811235
],
[
-4666665.11249891,
2453739.78811235
],
[
-4749998.48468644,
2598077.4227072
]
]
]
],
"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": "442297"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-3608440.86487111
],
[
83337.1021901372,
-3464103.23027626
],
[
250003.846565192,
-3464103.23027626
],
[
333337.218752719,
-3608440.86487111
],
[
250003.846565192,
-3752778.49946595
],
[
83337.1021901372,
-3752778.49946595
],
[
3.73000261001289,
-3608440.86487111
]
]
]
],
"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": "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": "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": "442754"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
1299038.7113536
],
[
2083338.03469079,
1443376.34594844
],
[
2250004.77906584,
1443376.34594844
],
[
2333338.15125337,
1299038.7113536
],
[
2250004.77906584,
1154701.07675875
],
[
2083338.03469079,
1154701.07675875
],
[
2000004.66250326,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442806"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
577350.538379378
],
[
2333338.15125337,
721688.172974221
],
[
2500004.89562843,
721688.172974221
],
[
2583338.26781595,
577350.538379378
],
[
2500004.89562843,
433012.903784533
],
[
2333338.15125337,
433012.903784533
],
[
2250004.77906584,
577350.538379378
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442807"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
866025.807569066
],
[
2333338.15125337,
1010363.44216391
],
[
2500004.89562843,
1010363.44216391
],
[
2583338.26781595,
866025.807569066
],
[
2500004.89562843,
721688.172974221
],
[
2333338.15125337,
721688.172974221
],
[
2250004.77906584,
866025.807569066
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442808"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
1154701.07675875
],
[
2333338.15125337,
1299038.7113536
],
[
2500004.89562843,
1299038.7113536
],
[
2583338.26781595,
1154701.07675875
],
[
2500004.89562843,
1010363.44216391
],
[
2333338.15125337,
1010363.44216391
],
[
2250004.77906584,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442809"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
1443376.34594844
],
[
2333338.15125337,
1587713.98054329
],
[
2500004.89562843,
1587713.98054329
],
[
2583338.26781595,
1443376.34594844
],
[
2500004.89562843,
1299038.7113536
],
[
2333338.15125337,
1299038.7113536
],
[
2250004.77906584,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442860"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
144337.634594845
],
[
2583338.26781595,
288675.269189689
],
[
2750005.01219101,
288675.269189689
],
[
2833338.38437853,
144337.634594845
],
[
2750005.01219101,
0.0
],
[
2583338.26781595,
0.0
],
[
2500004.89562843,
144337.634594845
]
]
]
],
"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"
}
},
{
"properties": {
"pk": "442862"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
721688.172974221
],
[
2583338.26781595,
866025.807569066
],
[
2750005.01219101,
866025.807569066
],
[
2833338.38437853,
721688.172974221
],
[
2750005.01219101,
577350.538379378
],
[
2583338.26781595,
577350.538379378
],
[
2500004.89562843,
721688.172974221
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442863"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
1010363.44216391
],
[
2583338.26781595,
1154701.07675875
],
[
2750005.01219101,
1154701.07675875
],
[
2833338.38437853,
1010363.44216391
],
[
2750005.01219101,
866025.807569066
],
[
2583338.26781595,
866025.807569066
],
[
2500004.89562843,
1010363.44216391
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442919"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
1443376.34594844
],
[
2833338.38437853,
1587713.98054329
],
[
3000005.12875359,
1587713.98054329
],
[
3083338.50094112,
1443376.34594844
],
[
3000005.12875359,
1299038.7113536
],
[
2833338.38437853,
1299038.7113536
],
[
2750005.01219101,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442920"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
1732051.61513813
],
[
2833338.38437853,
1876389.24973297
],
[
3000005.12875359,
1876389.24973297
],
[
3083338.50094112,
1732051.61513813
],
[
3000005.12875359,
1587713.98054329
],
[
2833338.38437853,
1587713.98054329
],
[
2750005.01219101,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443024"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
0.0
],
[
3333338.6175037,
144337.634594845
],
[
3500005.36187875,
144337.634594845
],
[
3583338.73406628,
0.0
],
[
3500005.36187875,
-144337.634594844
],
[
3333338.6175037,
-144337.634594844
],
[
3250005.24531617,
0.0
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}