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=1106023
{
"features": [
{
"properties": {
"pk": "440781"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-6999999.53374967,
3319765.59568142
],
[
-6916666.16156215,
3464103.23027626
],
[
-6749999.41718709,
3464103.23027626
],
[
-6666666.04499956,
3319765.59568142
],
[
-6749999.41718709,
3175427.96108657
],
[
-6916666.16156215,
3175427.96108657
],
[
-6999999.53374967,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "440893"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-6499999.30062451,
3897116.13406079
],
[
-6416665.92843698,
4041453.76865564
],
[
-6249999.18406193,
4041453.76865564
],
[
-6166665.8118744,
3897116.13406079
],
[
-6249999.18406193,
3752778.49946595
],
[
-6416665.92843698,
3752778.49946595
],
[
-6499999.30062451,
3897116.13406079
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "440944"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-6249999.18406193,
2886752.69189689
],
[
-6166665.8118744,
3031090.32649173
],
[
-5999999.06749935,
3031090.32649173
],
[
-5916665.69531182,
2886752.69189689
],
[
-5999999.06749935,
2742415.05730204
],
[
-6166665.8118744,
2742415.05730204
],
[
-6249999.18406193,
2886752.69189689
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}