Occurrence Grid
Process queries for HexGrid objects. Will be deprecated in future version :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=2114712
{
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"features": [
{
"type": "Feature",
"properties": {
"pk": "441366"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-4249998.25156128,
-2309402.15351751
],
[
-4166664.87937375,
-2165064.51892266
],
[
-3999998.13499869,
-2165064.51892266
],
[
-3916664.76281117,
-2309402.15351751
],
[
-3999998.13499869,
-2453739.78811235
],
[
-4166664.87937375,
-2453739.78811235
],
[
-4249998.25156128,
-2309402.15351751
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "441695"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-2749997.55218579,
-2598077.4227072
],
[
-2666664.17999826,
-2453739.78811235
],
[
-2499997.43562321,
-2453739.78811235
],
[
-2416664.06343568,
-2598077.4227072
],
[
-2499997.43562321,
-2742415.05730204
],
[
-2666664.17999826,
-2742415.05730204
],
[
-2749997.55218579,
-2598077.4227072
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "443236"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
4250005.7115665,
-2309402.15351751
],
[
4333339.08375402,
-2165064.51892266
],
[
4500005.82812908,
-2165064.51892266
],
[
4583339.2003166,
-2309402.15351751
],
[
4500005.82812908,
-2453739.78811235
],
[
4333339.08375402,
-2453739.78811235
],
[
4250005.7115665,
-2309402.15351751
]
]
]
]
}
}
]
}