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=3417
{
"features": [
{
"properties": {
"pk": "442269"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
4330129.03784533
],
[
-166663.014372444,
4474466.67244017
],
[
3.73000261001289,
4474466.67244017
],
[
83337.1021901372,
4330129.03784533
],
[
3.73000261001289,
4185791.40325048
],
[
-166663.014372444,
4185791.40325048
],
[
-249996.386559972,
4330129.03784533
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442323"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
3897116.13406079
],
[
83337.1021901372,
4041453.76865564
],
[
250003.846565192,
4041453.76865564
],
[
333337.218752719,
3897116.13406079
],
[
250003.846565192,
3752778.49946595
],
[
83337.1021901372,
3752778.49946595
],
[
3.73000261001289,
3897116.13406079
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}