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=8329230
{
"features": [
{
"properties": {
"pk": "442744"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
-1587713.98054329
],
[
2083338.03469079,
-1443376.34594844
],
[
2250004.77906584,
-1443376.34594844
],
[
2333338.15125337,
-1587713.98054329
],
[
2250004.77906584,
-1732051.61513813
],
[
2083338.03469079,
-1732051.61513813
],
[
2000004.66250326,
-1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442806"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
577350.538379378
],
[
2333338.15125337,
721688.172974221
],
[
2500004.89562843,
721688.172974221
],
[
2583338.26781595,
577350.538379378
],
[
2500004.89562843,
433012.903784533
],
[
2333338.15125337,
433012.903784533
],
[
2250004.77906584,
577350.538379378
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442844"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-4474466.67244017
],
[
2583338.26781595,
-4330129.03784533
],
[
2750005.01219101,
-4330129.03784533
],
[
2833338.38437853,
-4474466.67244017
],
[
2750005.01219101,
-4618804.30703502
],
[
2583338.26781595,
-4618804.30703502
],
[
2500004.89562843,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442861"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
433012.903784533
],
[
2583338.26781595,
577350.538379378
],
[
2750005.01219101,
577350.538379378
],
[
2833338.38437853,
433012.903784533
],
[
2750005.01219101,
288675.269189689
],
[
2583338.26781595,
288675.269189689
],
[
2500004.89562843,
433012.903784533
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}