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=7788494
{
"features": [
{
"properties": {
"pk": "441436"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
1876389.24973297
],
[
-3916664.76281117,
2020726.88432782
],
[
-3749998.01843611,
2020726.88432782
],
[
-3666664.64624859,
1876389.24973297
],
[
-3749998.01843611,
1732051.61513813
],
[
-3916664.76281117,
1732051.61513813
],
[
-3999998.13499869,
1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441489"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
1443376.34594844
],
[
-3666664.64624859,
1587713.98054329
],
[
-3499997.90187353,
1587713.98054329
],
[
-3416664.529686,
1443376.34594844
],
[
-3499997.90187353,
1299038.7113536
],
[
-3666664.64624859,
1299038.7113536
],
[
-3749998.01843611,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441490"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
1732051.61513813
],
[
-3666664.64624859,
1876389.24973297
],
[
-3499997.90187353,
1876389.24973297
],
[
-3416664.529686,
1732051.61513813
],
[
-3499997.90187353,
1587713.98054329
],
[
-3666664.64624859,
1587713.98054329
],
[
-3749998.01843611,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441491"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
2020726.88432782
],
[
-3666664.64624859,
2165064.51892266
],
[
-3499997.90187353,
2165064.51892266
],
[
-3416664.529686,
2020726.88432782
],
[
-3499997.90187353,
1876389.24973297
],
[
-3666664.64624859,
1876389.24973297
],
[
-3749998.01843611,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441492"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
2309402.15351751
],
[
-3666664.64624859,
2453739.78811235
],
[
-3499997.90187353,
2453739.78811235
],
[
-3416664.529686,
2309402.15351751
],
[
-3499997.90187353,
2165064.51892266
],
[
-3666664.64624859,
2165064.51892266
],
[
-3749998.01843611,
2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441547"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
2165064.51892266
],
[
-3416664.529686,
2309402.15351751
],
[
-3249997.78531095,
2309402.15351751
],
[
-3166664.41312342,
2165064.51892266
],
[
-3249997.78531095,
2020726.88432782
],
[
-3416664.529686,
2020726.88432782
],
[
-3499997.90187353,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441708"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
1154701.07675875
],
[
-2666664.17999826,
1299038.7113536
],
[
-2499997.43562321,
1299038.7113536
],
[
-2416664.06343568,
1154701.07675875
],
[
-2499997.43562321,
1010363.44216391
],
[
-2666664.17999826,
1010363.44216391
],
[
-2749997.55218579,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441709"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
1443376.34594844
],
[
-2666664.17999826,
1587713.98054329
],
[
-2499997.43562321,
1587713.98054329
],
[
-2416664.06343568,
1443376.34594844
],
[
-2499997.43562321,
1299038.7113536
],
[
-2666664.17999826,
1299038.7113536
],
[
-2749997.55218579,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441710"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
1732051.61513813
],
[
-2666664.17999826,
1876389.24973297
],
[
-2499997.43562321,
1876389.24973297
],
[
-2416664.06343568,
1732051.61513813
],
[
-2499997.43562321,
1587713.98054329
],
[
-2666664.17999826,
1587713.98054329
],
[
-2749997.55218579,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441771"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
3319765.59568142
],
[
-2416664.06343568,
3464103.23027626
],
[
-2249997.31906062,
3464103.23027626
],
[
-2166663.9468731,
3319765.59568142
],
[
-2249997.31906062,
3175427.96108657
],
[
-2416664.06343568,
3175427.96108657
],
[
-2499997.43562321,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442151"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-749996.619685135,
2020726.88432782
],
[
-666663.247497608,
2165064.51892266
],
[
-499996.503122553,
2165064.51892266
],
[
-416663.130935026,
2020726.88432782
],
[
-499996.503122553,
1876389.24973297
],
[
-666663.247497608,
1876389.24973297
],
[
-749996.619685135,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442459"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-4330129.03784533
],
[
833337.451877881,
-4185791.40325048
],
[
1000004.19625294,
-4185791.40325048
],
[
1083337.56844046,
-4330129.03784533
],
[
1000004.19625294,
-4474466.67244017
],
[
833337.451877881,
-4474466.67244017
],
[
750004.079690354,
-4330129.03784533
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442515"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
-4185791.40325048
],
[
1083337.56844046,
-4041453.76865564
],
[
1250004.31281552,
-4041453.76865564
],
[
1333337.68500304,
-4185791.40325048
],
[
1250004.31281552,
-4330129.03784533
],
[
1083337.56844046,
-4330129.03784533
],
[
1000004.19625294,
-4185791.40325048
]
]
]
],
"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": "442807"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
866025.807569066
],
[
2333338.15125337,
1010363.44216391
],
[
2500004.89562843,
1010363.44216391
],
[
2583338.26781595,
866025.807569066
],
[
2500004.89562843,
721688.172974221
],
[
2333338.15125337,
721688.172974221
],
[
2250004.77906584,
866025.807569066
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442983"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
3897116.13406079
],
[
3083338.50094112,
4041453.76865564
],
[
3250005.24531617,
4041453.76865564
],
[
3333338.6175037,
3897116.13406079
],
[
3250005.24531617,
3752778.49946595
],
[
3083338.50094112,
3752778.49946595
],
[
3000005.12875359,
3897116.13406079
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443091"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
3319765.59568142
],
[
3583338.73406628,
3464103.23027626
],
[
3750005.47844133,
3464103.23027626
],
[
3833338.85062886,
3319765.59568142
],
[
3750005.47844133,
3175427.96108657
],
[
3583338.73406628,
3175427.96108657
],
[
3500005.36187875,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443250"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4250005.7115665,
1732051.61513813
],
[
4333339.08375402,
1876389.24973297
],
[
4500005.82812908,
1876389.24973297
],
[
4583339.2003166,
1732051.61513813
],
[
4500005.82812908,
1587713.98054329
],
[
4333339.08375402,
1587713.98054329
],
[
4250005.7115665,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}