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=7104
{
"features": [
{
"properties": {
"pk": "441765"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
1587713.98054329
],
[
-2416664.06343568,
1732051.61513813
],
[
-2249997.31906062,
1732051.61513813
],
[
-2166663.9468731,
1587713.98054329
],
[
-2249997.31906062,
1443376.34594844
],
[
-2416664.06343568,
1443376.34594844
],
[
-2499997.43562321,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442054"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1249996.8528103,
5773505.38379377
],
[
-1166663.48062277,
5917843.01838861
],
[
-999996.736247716,
5917843.01838861
],
[
-916663.364060189,
5773505.38379377
],
[
-999996.736247716,
5629167.74919893
],
[
-1166663.48062277,
5629167.74919893
],
[
-1249996.8528103,
5773505.38379377
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442293"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-4763141.94162986
],
[
83337.1021901372,
-4618804.30703502
],
[
250003.846565192,
-4618804.30703502
],
[
333337.218752719,
-4763141.94162986
],
[
250003.846565192,
-4907479.5762247
],
[
83337.1021901372,
-4907479.5762247
],
[
3.73000261001289,
-4763141.94162986
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}