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=4378138
{
"features": [
{
"properties": {
"pk": "442239"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-4330129.03784533
],
[
-166663.014372444,
-4185791.40325048
],
[
3.73000261001289,
-4185791.40325048
],
[
83337.1021901372,
-4330129.03784533
],
[
3.73000261001289,
-4474466.67244017
],
[
-166663.014372444,
-4474466.67244017
],
[
-249996.386559972,
-4330129.03784533
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442408"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-3319765.59568142
],
[
583337.3353153,
-3175427.96108657
],
[
750004.079690354,
-3175427.96108657
],
[
833337.451877881,
-3319765.59568142
],
[
750004.079690354,
-3464103.23027626
],
[
583337.3353153,
-3464103.23027626
],
[
500003.963127773,
-3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442514"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
-4474466.67244017
],
[
1083337.56844046,
-4330129.03784533
],
[
1250004.31281552,
-4330129.03784533
],
[
1333337.68500304,
-4474466.67244017
],
[
1250004.31281552,
-4618804.30703502
],
[
1083337.56844046,
-4618804.30703502
],
[
1000004.19625294,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442517"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
-3608440.86487111
],
[
1083337.56844046,
-3464103.23027626
],
[
1250004.31281552,
-3464103.23027626
],
[
1333337.68500304,
-3608440.86487111
],
[
1250004.31281552,
-3752778.49946595
],
[
1083337.56844046,
-3752778.49946595
],
[
1000004.19625294,
-3608440.86487111
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}