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=4876796
{
"features": [
{
"properties": {
"pk": "442234"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-5773505.38379377
],
[
-166663.014372444,
-5629167.74919892
],
[
3.73000261001289,
-5629167.74919892
],
[
83337.1021901372,
-5773505.38379377
],
[
3.73000261001289,
-5917843.01838861
],
[
-166663.014372444,
-5917843.01838861
],
[
-249996.386559972,
-5773505.38379377
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442289"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-5917843.01838861
],
[
83337.1021901372,
-5773505.38379377
],
[
250003.846565192,
-5773505.38379377
],
[
333337.218752719,
-5917843.01838861
],
[
250003.846565192,
-6062180.65298346
],
[
83337.1021901372,
-6062180.65298346
],
[
3.73000261001289,
-5917843.01838861
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442342"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-6350855.92217315
],
[
333337.218752719,
-6206518.2875783
],
[
500003.963127773,
-6206518.2875783
],
[
583337.3353153,
-6350855.92217315
],
[
500003.963127773,
-6495193.55676799
],
[
333337.218752719,
-6495193.55676799
],
[
250003.846565192,
-6350855.92217315
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442346"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-5196154.84541439
],
[
333337.218752719,
-5051817.21081955
],
[
500003.963127773,
-5051817.21081955
],
[
583337.3353153,
-5196154.84541439
],
[
500003.963127773,
-5340492.48000924
],
[
333337.218752719,
-5340492.48000924
],
[
250003.846565192,
-5196154.84541439
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442348"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-4618804.30703502
],
[
333337.218752719,
-4474466.67244017
],
[
500003.963127773,
-4474466.67244017
],
[
583337.3353153,
-4618804.30703502
],
[
500003.963127773,
-4763141.94162986
],
[
333337.218752719,
-4763141.94162986
],
[
250003.846565192,
-4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442398"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-6206518.2875783
],
[
583337.3353153,
-6062180.65298346
],
[
750004.079690354,
-6062180.65298346
],
[
833337.451877881,
-6206518.2875783
],
[
750004.079690354,
-6350855.92217315
],
[
583337.3353153,
-6350855.92217315
],
[
500003.963127773,
-6206518.2875783
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442401"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-5340492.48000924
],
[
583337.3353153,
-5196154.84541439
],
[
750004.079690354,
-5196154.84541439
],
[
833337.451877881,
-5340492.48000924
],
[
750004.079690354,
-5484830.11460408
],
[
583337.3353153,
-5484830.11460408
],
[
500003.963127773,
-5340492.48000924
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442455"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-5484830.11460408
],
[
833337.451877881,
-5340492.48000924
],
[
1000004.19625294,
-5340492.48000924
],
[
1083337.56844046,
-5484830.11460408
],
[
1000004.19625294,
-5629167.74919892
],
[
833337.451877881,
-5629167.74919892
],
[
750004.079690354,
-5484830.11460408
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442844"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-4474466.67244017
],
[
2583338.26781595,
-4330129.03784533
],
[
2750005.01219101,
-4330129.03784533
],
[
2833338.38437853,
-4474466.67244017
],
[
2750005.01219101,
-4618804.30703502
],
[
2583338.26781595,
-4618804.30703502
],
[
2500004.89562843,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442899"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-4330129.03784533
],
[
2833338.38437853,
-4185791.40325048
],
[
3000005.12875359,
-4185791.40325048
],
[
3083338.50094112,
-4330129.03784533
],
[
3000005.12875359,
-4474466.67244017
],
[
2833338.38437853,
-4474466.67244017
],
[
2750005.01219101,
-4330129.03784533
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443509"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
5500006.2943794,
-3031090.32649173
],
[
5583339.66656693,
-2886752.69189688
],
[
5750006.41094199,
-2886752.69189688
],
[
5833339.78312951,
-3031090.32649173
],
[
5750006.41094199,
-3175427.96108657
],
[
5583339.66656693,
-3175427.96108657
],
[
5500006.2943794,
-3031090.32649173
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}