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=8961
{
"features": [
{
"properties": {
"pk": "441215"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4999998.60124902,
1587713.98054329
],
[
-4916665.22906149,
1732051.61513813
],
[
-4749998.48468644,
1732051.61513813
],
[
-4666665.11249891,
1587713.98054329
],
[
-4749998.48468644,
1443376.34594844
],
[
-4916665.22906149,
1443376.34594844
],
[
-4999998.60124902,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441492"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
2309402.15351751
],
[
-3666664.64624859,
2453739.78811235
],
[
-3499997.90187353,
2453739.78811235
],
[
-3416664.529686,
2309402.15351751
],
[
-3499997.90187353,
2165064.51892266
],
[
-3666664.64624859,
2165064.51892266
],
[
-3749998.01843611,
2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441767"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
2165064.51892266
],
[
-2416664.06343568,
2309402.15351751
],
[
-2249997.31906062,
2309402.15351751
],
[
-2166663.9468731,
2165064.51892266
],
[
-2249997.31906062,
2020726.88432782
],
[
-2416664.06343568,
2020726.88432782
],
[
-2499997.43562321,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442305"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-1299038.7113536
],
[
83337.1021901372,
-1154701.07675875
],
[
250003.846565192,
-1154701.07675875
],
[
333337.218752719,
-1299038.7113536
],
[
250003.846565192,
-1443376.34594844
],
[
83337.1021901372,
-1443376.34594844
],
[
3.73000261001289,
-1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442647"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
2165064.51892266
],
[
1583337.80156563,
2309402.15351751
],
[
1750004.54594068,
2309402.15351751
],
[
1833337.91812821,
2165064.51892266
],
[
1750004.54594068,
2020726.88432782
],
[
1583337.80156563,
2020726.88432782
],
[
1500004.4293781,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442700"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
1732051.61513813
],
[
1833337.91812821,
1876389.24973297
],
[
2000004.66250326,
1876389.24973297
],
[
2083338.03469079,
1732051.61513813
],
[
2000004.66250326,
1587713.98054329
],
[
1833337.91812821,
1587713.98054329
],
[
1750004.54594068,
1732051.61513813
]
]
]
],
"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": "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": "442858"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-433012.903784532
],
[
2583338.26781595,
-288675.269189688
],
[
2750005.01219101,
-288675.269189688
],
[
2833338.38437853,
-433012.903784532
],
[
2750005.01219101,
-577350.538379377
],
[
2583338.26781595,
-577350.538379377
],
[
2500004.89562843,
-433012.903784532
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}