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/?taxon=4341369
{
"features": [
{
"properties": {
"pk": "442181"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-499996.503122553,
-5340492.48000924
],
[
-416663.130935026,
-5196154.84541439
],
[
-249996.386559972,
-5196154.84541439
],
[
-166663.014372444,
-5340492.48000924
],
[
-249996.386559972,
-5484830.11460408
],
[
-416663.130935026,
-5484830.11460408
],
[
-499996.503122553,
-5340492.48000924
]
]
]
],
"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": "442291"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-5340492.48000924
],
[
83337.1021901372,
-5196154.84541439
],
[
250003.846565192,
-5196154.84541439
],
[
333337.218752719,
-5340492.48000924
],
[
250003.846565192,
-5484830.11460408
],
[
83337.1021901372,
-5484830.11460408
],
[
3.73000261001289,
-5340492.48000924
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442729"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
-5917843.01838861
],
[
2083338.03469079,
-5773505.38379377
],
[
2250004.77906584,
-5773505.38379377
],
[
2333338.15125337,
-5917843.01838861
],
[
2250004.77906584,
-6062180.65298346
],
[
2083338.03469079,
-6062180.65298346
],
[
2000004.66250326,
-5917843.01838861
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}