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=2433475
{
"features": [
{
"properties": {
"pk": "442571"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-3752778.49946595
],
[
1333337.68500304,
-3608440.86487111
],
[
1500004.4293781,
-3608440.86487111
],
[
1583337.80156563,
-3752778.49946595
],
[
1500004.4293781,
-3897116.13406079
],
[
1333337.68500304,
-3897116.13406079
],
[
1250004.31281552,
-3752778.49946595
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442716"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
6350855.92217315
],
[
1833337.91812821,
6495193.55676799
],
[
2000004.66250326,
6495193.55676799
],
[
2083338.03469079,
6350855.92217315
],
[
2000004.66250326,
6206518.2875783
],
[
1833337.91812821,
6206518.2875783
],
[
1750004.54594068,
6350855.92217315
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442738"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
-3319765.59568142
],
[
2083338.03469079,
-3175427.96108657
],
[
2250004.77906584,
-3175427.96108657
],
[
2333338.15125337,
-3319765.59568142
],
[
2250004.77906584,
-3464103.23027626
],
[
2083338.03469079,
-3464103.23027626
],
[
2000004.66250326,
-3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}