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=9103
{
"features": [
{
"properties": {
"pk": "441178"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5249998.7178116,
6928206.46055252
],
[
-5166665.34562408,
7072544.09514737
],
[
-4999998.60124902,
7072544.09514737
],
[
-4916665.22906149,
6928206.46055252
],
[
-4999998.60124902,
6783868.82595768
],
[
-5166665.34562408,
6783868.82595768
],
[
-5249998.7178116,
6928206.46055252
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442294"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-4474466.67244017
],
[
83337.1021901372,
-4330129.03784533
],
[
250003.846565192,
-4330129.03784533
],
[
333337.218752719,
-4474466.67244017
],
[
250003.846565192,
-4618804.30703502
],
[
83337.1021901372,
-4618804.30703502
],
[
3.73000261001289,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442457"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-4907479.5762247
],
[
833337.451877881,
-4763141.94162986
],
[
1000004.19625294,
-4763141.94162986
],
[
1083337.56844046,
-4907479.5762247
],
[
1000004.19625294,
-5051817.21081955
],
[
833337.451877881,
-5051817.21081955
],
[
750004.079690354,
-4907479.5762247
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}