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=7641169
{
"features": [
{
"properties": {
"pk": "441434"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
1299038.7113536
],
[
-3916664.76281117,
1443376.34594844
],
[
-3749998.01843611,
1443376.34594844
],
[
-3666664.64624859,
1299038.7113536
],
[
-3749998.01843611,
1154701.07675875
],
[
-3916664.76281117,
1154701.07675875
],
[
-3999998.13499869,
1299038.7113536
]
]
]
],
"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": "442303"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-1876389.24973297
],
[
83337.1021901372,
-1732051.61513813
],
[
250003.846565192,
-1732051.61513813
],
[
333337.218752719,
-1876389.24973297
],
[
250003.846565192,
-2020726.88432782
],
[
83337.1021901372,
-2020726.88432782
],
[
3.73000261001289,
-1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442304"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-1587713.98054329
],
[
83337.1021901372,
-1443376.34594844
],
[
250003.846565192,
-1443376.34594844
],
[
333337.218752719,
-1587713.98054329
],
[
250003.846565192,
-1732051.61513813
],
[
83337.1021901372,
-1732051.61513813
],
[
3.73000261001289,
-1587713.98054329
]
]
]
],
"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": "442577"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-2020726.88432782
],
[
1333337.68500304,
-1876389.24973297
],
[
1500004.4293781,
-1876389.24973297
],
[
1583337.80156563,
-2020726.88432782
],
[
1500004.4293781,
-2165064.51892266
],
[
1333337.68500304,
-2165064.51892266
],
[
1250004.31281552,
-2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442632"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
-2165064.51892266
],
[
1583337.80156563,
-2020726.88432782
],
[
1750004.54594068,
-2020726.88432782
],
[
1833337.91812821,
-2165064.51892266
],
[
1750004.54594068,
-2309402.15351751
],
[
1583337.80156563,
-2309402.15351751
],
[
1500004.4293781,
-2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442633"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
-1876389.24973297
],
[
1583337.80156563,
-1732051.61513813
],
[
1750004.54594068,
-1732051.61513813
],
[
1833337.91812821,
-1876389.24973297
],
[
1750004.54594068,
-2020726.88432782
],
[
1583337.80156563,
-2020726.88432782
],
[
1500004.4293781,
-1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442686"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
-2309402.15351751
],
[
1833337.91812821,
-2165064.51892266
],
[
2000004.66250326,
-2165064.51892266
],
[
2083338.03469079,
-2309402.15351751
],
[
2000004.66250326,
-2453739.78811235
],
[
1833337.91812821,
-2453739.78811235
],
[
1750004.54594068,
-2309402.15351751
]
]
]
],
"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"
}
},
{
"properties": {
"pk": "442963"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
-1876389.24973297
],
[
3083338.50094112,
-1732051.61513813
],
[
3250005.24531617,
-1732051.61513813
],
[
3333338.6175037,
-1876389.24973297
],
[
3250005.24531617,
-2020726.88432782
],
[
3083338.50094112,
-2020726.88432782
],
[
3000005.12875359,
-1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443011"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
-3752778.49946595
],
[
3333338.6175037,
-3608440.86487111
],
[
3500005.36187875,
-3608440.86487111
],
[
3583338.73406628,
-3752778.49946595
],
[
3500005.36187875,
-3897116.13406079
],
[
3333338.6175037,
-3897116.13406079
],
[
3250005.24531617,
-3752778.49946595
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443016"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
-2309402.15351751
],
[
3333338.6175037,
-2165064.51892266
],
[
3500005.36187875,
-2165064.51892266
],
[
3583338.73406628,
-2309402.15351751
],
[
3500005.36187875,
-2453739.78811235
],
[
3333338.6175037,
-2453739.78811235
],
[
3250005.24531617,
-2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443017"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
-2020726.88432782
],
[
3333338.6175037,
-1876389.24973297
],
[
3500005.36187875,
-1876389.24973297
],
[
3583338.73406628,
-2020726.88432782
],
[
3500005.36187875,
-2165064.51892266
],
[
3333338.6175037,
-2165064.51892266
],
[
3250005.24531617,
-2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443018"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
-1732051.61513813
],
[
3333338.6175037,
-1587713.98054329
],
[
3500005.36187875,
-1587713.98054329
],
[
3583338.73406628,
-1732051.61513813
],
[
3500005.36187875,
-1876389.24973297
],
[
3333338.6175037,
-1876389.24973297
],
[
3250005.24531617,
-1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443019"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
-1443376.34594844
],
[
3333338.6175037,
-1299038.7113536
],
[
3500005.36187875,
-1299038.7113536
],
[
3583338.73406628,
-1443376.34594844
],
[
3500005.36187875,
-1587713.98054329
],
[
3333338.6175037,
-1587713.98054329
],
[
3250005.24531617,
-1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443021"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
-866025.807569065
],
[
3333338.6175037,
-721688.17297422
],
[
3500005.36187875,
-721688.17297422
],
[
3583338.73406628,
-866025.807569065
],
[
3500005.36187875,
-1010363.44216391
],
[
3333338.6175037,
-1010363.44216391
],
[
3250005.24531617,
-866025.807569065
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443073"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
-1876389.24973297
],
[
3583338.73406628,
-1732051.61513813
],
[
3750005.47844133,
-1732051.61513813
],
[
3833338.85062886,
-1876389.24973297
],
[
3750005.47844133,
-2020726.88432782
],
[
3583338.73406628,
-2020726.88432782
],
[
3500005.36187875,
-1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443074"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
-1587713.98054329
],
[
3583338.73406628,
-1443376.34594844
],
[
3750005.47844133,
-1443376.34594844
],
[
3833338.85062886,
-1587713.98054329
],
[
3750005.47844133,
-1732051.61513813
],
[
3583338.73406628,
-1732051.61513813
],
[
3500005.36187875,
-1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}