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=3201956
{
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"features": [
{
"type": "Feature",
"properties": {
"pk": "442846"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
2500004.89562843,
-3897116.13406079
],
[
2583338.26781595,
-3752778.49946595
],
[
2750005.01219101,
-3752778.49946595
],
[
2833338.38437853,
-3897116.13406079
],
[
2750005.01219101,
-4041453.76865564
],
[
2583338.26781595,
-4041453.76865564
],
[
2500004.89562843,
-3897116.13406079
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "442899"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
2750005.01219101,
-4330129.03784533
],
[
2833338.38437853,
-4185791.40325048
],
[
3000005.12875359,
-4185791.40325048
],
[
3083338.50094112,
-4330129.03784533
],
[
3000005.12875359,
-4474466.67244017
],
[
2833338.38437853,
-4474466.67244017
],
[
2750005.01219101,
-4330129.03784533
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "442900"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
2750005.01219101,
-4041453.76865564
],
[
2833338.38437853,
-3897116.13406079
],
[
3000005.12875359,
-3897116.13406079
],
[
3083338.50094112,
-4041453.76865564
],
[
3000005.12875359,
-4185791.40325048
],
[
2833338.38437853,
-4185791.40325048
],
[
2750005.01219101,
-4041453.76865564
]
]
]
]
}
}
]
}