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=2481517
{
"features": [
{
"properties": {
"pk": "441274"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4749998.48468644,
2886752.69189689
],
[
-4666665.11249891,
3031090.32649173
],
[
-4499998.36812386,
3031090.32649173
],
[
-4416664.99593633,
2886752.69189689
],
[
-4499998.36812386,
2742415.05730204
],
[
-4666665.11249891,
2742415.05730204
],
[
-4749998.48468644,
2886752.69189689
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441331"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
3319765.59568142
],
[
-4416664.99593633,
3464103.23027626
],
[
-4249998.25156128,
3464103.23027626
],
[
-4166664.87937375,
3319765.59568142
],
[
-4249998.25156128,
3175427.96108657
],
[
-4416664.99593633,
3175427.96108657
],
[
-4499998.36812386,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441383"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4249998.25156128,
2598077.4227072
],
[
-4166664.87937375,
2742415.05730204
],
[
-3999998.13499869,
2742415.05730204
],
[
-3916664.76281117,
2598077.4227072
],
[
-3999998.13499869,
2453739.78811235
],
[
-4166664.87937375,
2453739.78811235
],
[
-4249998.25156128,
2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441710"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
1732051.61513813
],
[
-2666664.17999826,
1876389.24973297
],
[
-2499997.43562321,
1876389.24973297
],
[
-2416664.06343568,
1732051.61513813
],
[
-2499997.43562321,
1587713.98054329
],
[
-2666664.17999826,
1587713.98054329
],
[
-2749997.55218579,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442606"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
6350855.92217315
],
[
1333337.68500304,
6495193.55676799
],
[
1500004.4293781,
6495193.55676799
],
[
1583337.80156563,
6350855.92217315
],
[
1500004.4293781,
6206518.2875783
],
[
1333337.68500304,
6206518.2875783
],
[
1250004.31281552,
6350855.92217315
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}