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=9087
{
"features": [
{
"properties": {
"pk": "441931"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
2020726.88432782
],
[
-1666663.71374793,
2165064.51892266
],
[
-1499996.96937288,
2165064.51892266
],
[
-1416663.59718535,
2020726.88432782
],
[
-1499996.96937288,
1876389.24973297
],
[
-1666663.71374793,
1876389.24973297
],
[
-1749997.08593546,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442570"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-4041453.76865564
],
[
1333337.68500304,
-3897116.13406079
],
[
1500004.4293781,
-3897116.13406079
],
[
1583337.80156563,
-4041453.76865564
],
[
1500004.4293781,
-4185791.40325048
],
[
1333337.68500304,
-4185791.40325048
],
[
1250004.31281552,
-4041453.76865564
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442684"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
-2886752.69189688
],
[
1833337.91812821,
-2742415.05730204
],
[
2000004.66250326,
-2742415.05730204
],
[
2083338.03469079,
-2886752.69189688
],
[
2000004.66250326,
-3031090.32649173
],
[
1833337.91812821,
-3031090.32649173
],
[
1750004.54594068,
-2886752.69189688
]
]
]
],
"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"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}