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=2405786
{
"features": [
{
"properties": {
"pk": "441662"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
3608440.86487111
],
[
-2916664.29656084,
3752778.49946595
],
[
-2749997.55218579,
3752778.49946595
],
[
-2666664.17999826,
3608440.86487111
],
[
-2749997.55218579,
3464103.23027626
],
[
-2916664.29656084,
3464103.23027626
],
[
-2999997.66874837,
3608440.86487111
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442509"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
-5917843.01838861
],
[
1083337.56844046,
-5773505.38379377
],
[
1250004.31281552,
-5773505.38379377
],
[
1333337.68500304,
-5917843.01838861
],
[
1250004.31281552,
-6062180.65298346
],
[
1083337.56844046,
-6062180.65298346
],
[
1000004.19625294,
-5917843.01838861
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443309"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4500005.82812908,
2742415.05730204
],
[
4583339.2003166,
2886752.69189689
],
[
4750005.94469166,
2886752.69189689
],
[
4833339.31687919,
2742415.05730204
],
[
4750005.94469166,
2598077.4227072
],
[
4583339.2003166,
2598077.4227072
],
[
4500005.82812908,
2742415.05730204
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}