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=2406144
{
"features": [
{
"properties": {
"pk": "441554"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
4185791.40325048
],
[
-3416664.529686,
4330129.03784533
],
[
-3249997.78531095,
4330129.03784533
],
[
-3166664.41312342,
4185791.40325048
],
[
-3249997.78531095,
4041453.76865564
],
[
-3416664.529686,
4041453.76865564
],
[
-3499997.90187353,
4185791.40325048
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442245"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-2598077.4227072
],
[
-166663.014372444,
-2453739.78811235
],
[
3.73000261001289,
-2453739.78811235
],
[
83337.1021901372,
-2598077.4227072
],
[
3.73000261001289,
-2742415.05730204
],
[
-166663.014372444,
-2742415.05730204
],
[
-249996.386559972,
-2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442246"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-2309402.15351751
],
[
-166663.014372444,
-2165064.51892266
],
[
3.73000261001289,
-2165064.51892266
],
[
83337.1021901372,
-2309402.15351751
],
[
3.73000261001289,
-2453739.78811235
],
[
-166663.014372444,
-2453739.78811235
],
[
-249996.386559972,
-2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442302"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-2165064.51892266
],
[
83337.1021901372,
-2020726.88432782
],
[
250003.846565192,
-2020726.88432782
],
[
333337.218752719,
-2165064.51892266
],
[
250003.846565192,
-2309402.15351751
],
[
83337.1021901372,
-2309402.15351751
],
[
3.73000261001289,
-2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442355"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-2598077.4227072
],
[
333337.218752719,
-2453739.78811235
],
[
500003.963127773,
-2453739.78811235
],
[
583337.3353153,
-2598077.4227072
],
[
500003.963127773,
-2742415.05730204
],
[
333337.218752719,
-2742415.05730204
],
[
250003.846565192,
-2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442571"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-3752778.49946595
],
[
1333337.68500304,
-3608440.86487111
],
[
1500004.4293781,
-3608440.86487111
],
[
1583337.80156563,
-3752778.49946595
],
[
1500004.4293781,
-3897116.13406079
],
[
1333337.68500304,
-3897116.13406079
],
[
1250004.31281552,
-3752778.49946595
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442794"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-2886752.69189688
],
[
2333338.15125337,
-2742415.05730204
],
[
2500004.89562843,
-2742415.05730204
],
[
2583338.26781595,
-2886752.69189688
],
[
2500004.89562843,
-3031090.32649173
],
[
2333338.15125337,
-3031090.32649173
],
[
2250004.77906584,
-2886752.69189688
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}