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/?type=occurrence&taxon=1374
{
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"features": [
{
"type": "Feature",
"properties": {
"pk": "442138"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-749996.619685135,
-1732051.61513813
],
[
-666663.247497608,
-1587713.98054329
],
[
-499996.503122553,
-1587713.98054329
],
[
-416663.130935026,
-1732051.61513813
],
[
-499996.503122553,
-1876389.24973297
],
[
-666663.247497608,
-1876389.24973297
],
[
-749996.619685135,
-1732051.61513813
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "442576"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
1250004.31281552,
-2309402.15351751
],
[
1333337.68500304,
-2165064.51892266
],
[
1500004.4293781,
-2165064.51892266
],
[
1583337.80156563,
-2309402.15351751
],
[
1500004.4293781,
-2453739.78811235
],
[
1333337.68500304,
-2453739.78811235
],
[
1250004.31281552,
-2309402.15351751
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "442806"
},
"geometry": {
"type": "MultiPolygon",
"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
]
]
]
]
}
}
]
}