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=2406358
{
"features": [
{
"properties": {
"pk": "441386"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4249998.25156128,
3464103.23027626
],
[
-4166664.87937375,
3608440.86487111
],
[
-3999998.13499869,
3608440.86487111
],
[
-3916664.76281117,
3464103.23027626
],
[
-3999998.13499869,
3319765.59568142
],
[
-4166664.87937375,
3319765.59568142
],
[
-4249998.25156128,
3464103.23027626
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441601"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
2020726.88432782
],
[
-3166664.41312342,
2165064.51892266
],
[
-2999997.66874837,
2165064.51892266
],
[
-2916664.29656084,
2020726.88432782
],
[
-2999997.66874837,
1876389.24973297
],
[
-3166664.41312342,
1876389.24973297
],
[
-3249997.78531095,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441607"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
3752778.49946595
],
[
-3166664.41312342,
3897116.13406079
],
[
-2999997.66874837,
3897116.13406079
],
[
-2916664.29656084,
3752778.49946595
],
[
-2999997.66874837,
3608440.86487111
],
[
-3166664.41312342,
3608440.86487111
],
[
-3249997.78531095,
3752778.49946595
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441661"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
3319765.59568142
],
[
-2916664.29656084,
3464103.23027626
],
[
-2749997.55218579,
3464103.23027626
],
[
-2666664.17999826,
3319765.59568142
],
[
-2749997.55218579,
3175427.96108657
],
[
-2916664.29656084,
3175427.96108657
],
[
-2999997.66874837,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442740"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
-2742415.05730204
],
[
2083338.03469079,
-2598077.4227072
],
[
2250004.77906584,
-2598077.4227072
],
[
2333338.15125337,
-2742415.05730204
],
[
2250004.77906584,
-2886752.69189688
],
[
2083338.03469079,
-2886752.69189688
],
[
2000004.66250326,
-2742415.05730204
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442792"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-3464103.23027626
],
[
2333338.15125337,
-3319765.59568142
],
[
2500004.89562843,
-3319765.59568142
],
[
2583338.26781595,
-3464103.23027626
],
[
2500004.89562843,
-3608440.86487111
],
[
2333338.15125337,
-3608440.86487111
],
[
2250004.77906584,
-3464103.23027626
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442847"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-3608440.86487111
],
[
2583338.26781595,
-3464103.23027626
],
[
2750005.01219101,
-3464103.23027626
],
[
2833338.38437853,
-3608440.86487111
],
[
2750005.01219101,
-3752778.49946595
],
[
2583338.26781595,
-3752778.49946595
],
[
2500004.89562843,
-3608440.86487111
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443193"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4000005.59500391,
1010363.44216391
],
[
4083338.96719144,
1154701.07675875
],
[
4250005.7115665,
1154701.07675875
],
[
4333339.08375402,
1010363.44216391
],
[
4250005.7115665,
866025.807569066
],
[
4083338.96719144,
866025.807569066
],
[
4000005.59500391,
1010363.44216391
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443194"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4000005.59500391,
1299038.7113536
],
[
4083338.96719144,
1443376.34594844
],
[
4250005.7115665,
1443376.34594844
],
[
4333339.08375402,
1299038.7113536
],
[
4250005.7115665,
1154701.07675875
],
[
4083338.96719144,
1154701.07675875
],
[
4000005.59500391,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443248"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4250005.7115665,
1154701.07675875
],
[
4333339.08375402,
1299038.7113536
],
[
4500005.82812908,
1299038.7113536
],
[
4583339.2003166,
1154701.07675875
],
[
4500005.82812908,
1010363.44216391
],
[
4333339.08375402,
1010363.44216391
],
[
4250005.7115665,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443249"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4250005.7115665,
1443376.34594844
],
[
4333339.08375402,
1587713.98054329
],
[
4500005.82812908,
1587713.98054329
],
[
4583339.2003166,
1443376.34594844
],
[
4500005.82812908,
1299038.7113536
],
[
4333339.08375402,
1299038.7113536
],
[
4250005.7115665,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}