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&dataset=611
{
"features": [
{
"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"
}
},
{
"properties": {
"pk": "442657"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
5051817.21081955
],
[
1583337.80156563,
5196154.84541439
],
[
1750004.54594068,
5196154.84541439
],
[
1833337.91812821,
5051817.21081955
],
[
1750004.54594068,
4907479.57622471
],
[
1583337.80156563,
4907479.57622471
],
[
1500004.4293781,
5051817.21081955
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443250"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4250005.7115665,
1732051.61513813
],
[
4333339.08375402,
1876389.24973297
],
[
4500005.82812908,
1876389.24973297
],
[
4583339.2003166,
1732051.61513813
],
[
4500005.82812908,
1587713.98054329
],
[
4333339.08375402,
1587713.98054329
],
[
4250005.7115665,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}