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&dataset=407
{
"features": [
{
"properties": {
"pk": "441105"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5499998.83437418,
1587713.98054329
],
[
-5416665.46218666,
1732051.61513813
],
[
-5249998.7178116,
1732051.61513813
],
[
-5166665.34562408,
1587713.98054329
],
[
-5249998.7178116,
1443376.34594844
],
[
-5416665.46218666,
1443376.34594844
],
[
-5499998.83437418,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441323"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
1010363.44216391
],
[
-4416664.99593633,
1154701.07675875
],
[
-4249998.25156128,
1154701.07675875
],
[
-4166664.87937375,
1010363.44216391
],
[
-4249998.25156128,
866025.807569066
],
[
-4416664.99593633,
866025.807569066
],
[
-4499998.36812386,
1010363.44216391
]
]
]
],
"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": "441763"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
1010363.44216391
],
[
-2416664.06343568,
1154701.07675875
],
[
-2249997.31906062,
1154701.07675875
],
[
-2166663.9468731,
1010363.44216391
],
[
-2249997.31906062,
866025.807569066
],
[
-2416664.06343568,
866025.807569066
],
[
-2499997.43562321,
1010363.44216391
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441984"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1499996.96937288,
1299038.7113536
],
[
-1416663.59718535,
1443376.34594844
],
[
-1249996.8528103,
1443376.34594844
],
[
-1166663.48062277,
1299038.7113536
],
[
-1249996.8528103,
1154701.07675875
],
[
-1416663.59718535,
1154701.07675875
],
[
-1499996.96937288,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442090"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-999996.736247716,
144337.634594845
],
[
-916663.364060189,
288675.269189689
],
[
-749996.619685135,
288675.269189689
],
[
-666663.247497608,
144337.634594845
],
[
-749996.619685135,
0.0
],
[
-916663.364060189,
0.0
],
[
-999996.736247716,
144337.634594845
]
]
]
],
"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": "442207"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-499996.503122553,
2165064.51892266
],
[
-416663.130935026,
2309402.15351751
],
[
-249996.386559972,
2309402.15351751
],
[
-166663.014372444,
2165064.51892266
],
[
-249996.386559972,
2020726.88432782
],
[
-416663.130935026,
2020726.88432782
],
[
-499996.503122553,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442359"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-1443376.34594844
],
[
333337.218752719,
-1299038.7113536
],
[
500003.963127773,
-1299038.7113536
],
[
583337.3353153,
-1443376.34594844
],
[
500003.963127773,
-1587713.98054329
],
[
333337.218752719,
-1587713.98054329
],
[
250003.846565192,
-1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442864"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
1299038.7113536
],
[
2583338.26781595,
1443376.34594844
],
[
2750005.01219101,
1443376.34594844
],
[
2833338.38437853,
1299038.7113536
],
[
2750005.01219101,
1154701.07675875
],
[
2583338.26781595,
1154701.07675875
],
[
2500004.89562843,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442866"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
1876389.24973297
],
[
2583338.26781595,
2020726.88432782
],
[
2750005.01219101,
2020726.88432782
],
[
2833338.38437853,
1876389.24973297
],
[
2750005.01219101,
1732051.61513813
],
[
2583338.26781595,
1732051.61513813
],
[
2500004.89562843,
1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}