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=2406342
{
"features": [
{
"properties": {
"pk": "441273"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4749998.48468644,
2598077.4227072
],
[
-4666665.11249891,
2742415.05730204
],
[
-4499998.36812386,
2742415.05730204
],
[
-4416664.99593633,
2598077.4227072
],
[
-4499998.36812386,
2453739.78811235
],
[
-4666665.11249891,
2453739.78811235
],
[
-4749998.48468644,
2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441328"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
2453739.78811235
],
[
-4416664.99593633,
2598077.4227072
],
[
-4249998.25156128,
2598077.4227072
],
[
-4166664.87937375,
2453739.78811235
],
[
-4249998.25156128,
2309402.15351751
],
[
-4416664.99593633,
2309402.15351751
],
[
-4499998.36812386,
2453739.78811235
]
]
]
],
"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": "441438"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
2453739.78811235
],
[
-3916664.76281117,
2598077.4227072
],
[
-3749998.01843611,
2598077.4227072
],
[
-3666664.64624859,
2453739.78811235
],
[
-3749998.01843611,
2309402.15351751
],
[
-3916664.76281117,
2309402.15351751
],
[
-3999998.13499869,
2453739.78811235
]
]
]
],
"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": "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": "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": "441553"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
3897116.13406079
],
[
-3416664.529686,
4041453.76865564
],
[
-3249997.78531095,
4041453.76865564
],
[
-3166664.41312342,
3897116.13406079
],
[
-3249997.78531095,
3752778.49946595
],
[
-3416664.529686,
3752778.49946595
],
[
-3499997.90187353,
3897116.13406079
]
]
]
],
"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": "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": "441657"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
2165064.51892266
],
[
-2916664.29656084,
2309402.15351751
],
[
-2749997.55218579,
2309402.15351751
],
[
-2666664.17999826,
2165064.51892266
],
[
-2749997.55218579,
2020726.88432782
],
[
-2916664.29656084,
2020726.88432782
],
[
-2999997.66874837,
2165064.51892266
]
]
]
],
"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": "441712"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
2309402.15351751
],
[
-2666664.17999826,
2453739.78811235
],
[
-2499997.43562321,
2453739.78811235
],
[
-2416664.06343568,
2309402.15351751
],
[
-2499997.43562321,
2165064.51892266
],
[
-2666664.17999826,
2165064.51892266
],
[
-2749997.55218579,
2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441715"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
3175427.96108657
],
[
-2666664.17999826,
3319765.59568142
],
[
-2499997.43562321,
3319765.59568142
],
[
-2416664.06343568,
3175427.96108657
],
[
-2499997.43562321,
3031090.32649173
],
[
-2666664.17999826,
3031090.32649173
],
[
-2749997.55218579,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441768"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
2453739.78811235
],
[
-2416664.06343568,
2598077.4227072
],
[
-2249997.31906062,
2598077.4227072
],
[
-2166663.9468731,
2453739.78811235
],
[
-2249997.31906062,
2309402.15351751
],
[
-2416664.06343568,
2309402.15351751
],
[
-2499997.43562321,
2453739.78811235
]
]
]
],
"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": "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"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}