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=2406365
{
"features": [
{
"properties": {
"pk": "441382"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4249998.25156128,
2309402.15351751
],
[
-4166664.87937375,
2453739.78811235
],
[
-3999998.13499869,
2453739.78811235
],
[
-3916664.76281117,
2309402.15351751
],
[
-3999998.13499869,
2165064.51892266
],
[
-4166664.87937375,
2165064.51892266
],
[
-4249998.25156128,
2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"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": "441440"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
3031090.32649173
],
[
-3916664.76281117,
3175427.96108657
],
[
-3749998.01843611,
3175427.96108657
],
[
-3666664.64624859,
3031090.32649173
],
[
-3749998.01843611,
2886752.69189689
],
[
-3916664.76281117,
2886752.69189689
],
[
-3999998.13499869,
3031090.32649173
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441495"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
3175427.96108657
],
[
-3666664.64624859,
3319765.59568142
],
[
-3499997.90187353,
3319765.59568142
],
[
-3416664.529686,
3175427.96108657
],
[
-3499997.90187353,
3031090.32649173
],
[
-3666664.64624859,
3031090.32649173
],
[
-3749998.01843611,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441546"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
1876389.24973297
],
[
-3416664.529686,
2020726.88432782
],
[
-3249997.78531095,
2020726.88432782
],
[
-3166664.41312342,
1876389.24973297
],
[
-3249997.78531095,
1732051.61513813
],
[
-3416664.529686,
1732051.61513813
],
[
-3499997.90187353,
1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441549"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
2742415.05730204
],
[
-3416664.529686,
2886752.69189689
],
[
-3249997.78531095,
2886752.69189689
],
[
-3166664.41312342,
2742415.05730204
],
[
-3249997.78531095,
2598077.4227072
],
[
-3416664.529686,
2598077.4227072
],
[
-3499997.90187353,
2742415.05730204
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441599"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
1443376.34594844
],
[
-3166664.41312342,
1587713.98054329
],
[
-2999997.66874837,
1587713.98054329
],
[
-2916664.29656084,
1443376.34594844
],
[
-2999997.66874837,
1299038.7113536
],
[
-3166664.41312342,
1299038.7113536
],
[
-3249997.78531095,
1443376.34594844
]
]
]
],
"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": "441654"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
1299038.7113536
],
[
-2916664.29656084,
1443376.34594844
],
[
-2749997.55218579,
1443376.34594844
],
[
-2666664.17999826,
1299038.7113536
],
[
-2749997.55218579,
1154701.07675875
],
[
-2916664.29656084,
1154701.07675875
],
[
-2999997.66874837,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441655"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
1587713.98054329
],
[
-2916664.29656084,
1732051.61513813
],
[
-2749997.55218579,
1732051.61513813
],
[
-2666664.17999826,
1587713.98054329
],
[
-2749997.55218579,
1443376.34594844
],
[
-2916664.29656084,
1443376.34594844
],
[
-2999997.66874837,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441656"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
1876389.24973297
],
[
-2916664.29656084,
2020726.88432782
],
[
-2749997.55218579,
2020726.88432782
],
[
-2666664.17999826,
1876389.24973297
],
[
-2749997.55218579,
1732051.61513813
],
[
-2916664.29656084,
1732051.61513813
],
[
-2999997.66874837,
1876389.24973297
]
]
]
],
"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": "441711"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
2020726.88432782
],
[
-2666664.17999826,
2165064.51892266
],
[
-2499997.43562321,
2165064.51892266
],
[
-2416664.06343568,
2020726.88432782
],
[
-2499997.43562321,
1876389.24973297
],
[
-2666664.17999826,
1876389.24973297
],
[
-2749997.55218579,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441770"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
3031090.32649173
],
[
-2416664.06343568,
3175427.96108657
],
[
-2249997.31906062,
3175427.96108657
],
[
-2166663.9468731,
3031090.32649173
],
[
-2249997.31906062,
2886752.69189689
],
[
-2416664.06343568,
2886752.69189689
],
[
-2499997.43562321,
3031090.32649173
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442272"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
5196154.84541439
],
[
-166663.014372444,
5340492.48000924
],
[
3.73000261001289,
5340492.48000924
],
[
83337.1021901372,
5196154.84541439
],
[
3.73000261001289,
5051817.21081955
],
[
-166663.014372444,
5051817.21081955
],
[
-249996.386559972,
5196154.84541439
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442626"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
-3897116.13406079
],
[
1583337.80156563,
-3752778.49946595
],
[
1750004.54594068,
-3752778.49946595
],
[
1833337.91812821,
-3897116.13406079
],
[
1750004.54594068,
-4041453.76865564
],
[
1583337.80156563,
-4041453.76865564
],
[
1500004.4293781,
-3897116.13406079
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442846"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-3897116.13406079
],
[
2583338.26781595,
-3752778.49946595
],
[
2750005.01219101,
-3752778.49946595
],
[
2833338.38437853,
-3897116.13406079
],
[
2750005.01219101,
-4041453.76865564
],
[
2583338.26781595,
-4041453.76865564
],
[
2500004.89562843,
-3897116.13406079
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442982"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
3608440.86487111
],
[
3083338.50094112,
3752778.49946595
],
[
3250005.24531617,
3752778.49946595
],
[
3333338.6175037,
3608440.86487111
],
[
3250005.24531617,
3464103.23027626
],
[
3083338.50094112,
3464103.23027626
],
[
3000005.12875359,
3608440.86487111
]
]
]
],
"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"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}