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=7109
{
"features": [
{
"properties": {
"pk": "440941"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-6249999.18406193,
2020726.88432782
],
[
-6166665.8118744,
2165064.51892266
],
[
-5999999.06749935,
2165064.51892266
],
[
-5916665.69531182,
2020726.88432782
],
[
-5999999.06749935,
1876389.24973297
],
[
-6166665.8118744,
1876389.24973297
],
[
-6249999.18406193,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441496"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
3464103.23027626
],
[
-3666664.64624859,
3608440.86487111
],
[
-3499997.90187353,
3608440.86487111
],
[
-3416664.529686,
3464103.23027626
],
[
-3499997.90187353,
3319765.59568142
],
[
-3666664.64624859,
3319765.59568142
],
[
-3749998.01843611,
3464103.23027626
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441763"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
1010363.44216391
],
[
-2416664.06343568,
1154701.07675875
],
[
-2249997.31906062,
1154701.07675875
],
[
-2166663.9468731,
1010363.44216391
],
[
-2249997.31906062,
866025.807569066
],
[
-2416664.06343568,
866025.807569066
],
[
-2499997.43562321,
1010363.44216391
]
]
]
],
"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"
}