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=2298041
{
"features": [
{
"properties": {
"pk": "440613"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-7749999.88343742,
2598077.4227072
],
[
-7666666.51124989,
2742415.05730204
],
[
-7499999.76687484,
2742415.05730204
],
[
-7416666.39468731,
2598077.4227072
],
[
-7499999.76687484,
2453739.78811235
],
[
-7666666.51124989,
2453739.78811235
],
[
-7749999.88343742,
2598077.4227072
]
]
]
],
"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": "441771"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
3319765.59568142
],
[
-2416664.06343568,
3464103.23027626
],
[
-2249997.31906062,
3464103.23027626
],
[
-2166663.9468731,
3319765.59568142
],
[
-2249997.31906062,
3175427.96108657
],
[
-2416664.06343568,
3175427.96108657
],
[
-2499997.43562321,
3319765.59568142
]
]
]
],
"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": "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": "443195"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4000005.59500391,
1587713.98054329
],
[
4083338.96719144,
1732051.61513813
],
[
4250005.7115665,
1732051.61513813
],
[
4333339.08375402,
1587713.98054329
],
[
4250005.7115665,
1443376.34594844
],
[
4083338.96719144,
1443376.34594844
],
[
4000005.59500391,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443305"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4500005.82812908,
1587713.98054329
],
[
4583339.2003166,
1732051.61513813
],
[
4750005.94469166,
1732051.61513813
],
[
4833339.31687919,
1587713.98054329
],
[
4750005.94469166,
1443376.34594844
],
[
4583339.2003166,
1443376.34594844
],
[
4500005.82812908,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443579"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
5750006.41094199,
1443376.34594844
],
[
5833339.78312951,
1587713.98054329
],
[
6000006.52750457,
1587713.98054329
],
[
6083339.89969209,
1443376.34594844
],
[
6000006.52750457,
1299038.7113536
],
[
5833339.78312951,
1299038.7113536
],
[
5750006.41094199,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}