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=2331694
{
"features": [
{
"properties": {
"pk": "442744"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
-1587713.98054329
],
[
2083338.03469079,
-1443376.34594844
],
[
2250004.77906584,
-1443376.34594844
],
[
2333338.15125337,
-1587713.98054329
],
[
2250004.77906584,
-1732051.61513813
],
[
2083338.03469079,
-1732051.61513813
],
[
2000004.66250326,
-1587713.98054329
]
]
]
],
"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"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}