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=2265197
{
"features": [
{
"properties": {
"pk": "442575"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-2598077.4227072
],
[
1333337.68500304,
-2453739.78811235
],
[
1500004.4293781,
-2453739.78811235
],
[
1583337.80156563,
-2598077.4227072
],
[
1500004.4293781,
-2742415.05730204
],
[
1333337.68500304,
-2742415.05730204
],
[
1250004.31281552,
-2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442576"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-2309402.15351751
],
[
1333337.68500304,
-2165064.51892266
],
[
1500004.4293781,
-2165064.51892266
],
[
1583337.80156563,
-2309402.15351751
],
[
1500004.4293781,
-2453739.78811235
],
[
1333337.68500304,
-2453739.78811235
],
[
1250004.31281552,
-2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442631"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
-2453739.78811235
],
[
1583337.80156563,
-2309402.15351751
],
[
1750004.54594068,
-2309402.15351751
],
[
1833337.91812821,
-2453739.78811235
],
[
1750004.54594068,
-2598077.4227072
],
[
1583337.80156563,
-2598077.4227072
],
[
1500004.4293781,
-2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442632"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
-2165064.51892266
],
[
1583337.80156563,
-2020726.88432782
],
[
1750004.54594068,
-2020726.88432782
],
[
1833337.91812821,
-2165064.51892266
],
[
1750004.54594068,
-2309402.15351751
],
[
1583337.80156563,
-2309402.15351751
],
[
1500004.4293781,
-2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}