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=112
{
"features": [
{
"properties": {
"pk": "442575"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-2598077.4227072
],
[
1333337.68500304,
-2453739.78811235
],
[
1500004.4293781,
-2453739.78811235
],
[
1583337.80156563,
-2598077.4227072
],
[
1500004.4293781,
-2742415.05730204
],
[
1333337.68500304,
-2742415.05730204
],
[
1250004.31281552,
-2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442631"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
-2453739.78811235
],
[
1583337.80156563,
-2309402.15351751
],
[
1750004.54594068,
-2309402.15351751
],
[
1833337.91812821,
-2453739.78811235
],
[
1750004.54594068,
-2598077.4227072
],
[
1583337.80156563,
-2598077.4227072
],
[
1500004.4293781,
-2453739.78811235
]
]
]
],
"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": "442687"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
-2020726.88432782
],
[
1833337.91812821,
-1876389.24973297
],
[
2000004.66250326,
-1876389.24973297
],
[
2083338.03469079,
-2020726.88432782
],
[
2000004.66250326,
-2165064.51892266
],
[
1833337.91812821,
-2165064.51892266
],
[
1750004.54594068,
-2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442742"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
-2165064.51892266
],
[
2083338.03469079,
-2020726.88432782
],
[
2250004.77906584,
-2020726.88432782
],
[
2333338.15125337,
-2165064.51892266
],
[
2250004.77906584,
-2309402.15351751
],
[
2083338.03469079,
-2309402.15351751
],
[
2000004.66250326,
-2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442743"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
-1876389.24973297
],
[
2083338.03469079,
-1732051.61513813
],
[
2250004.77906584,
-1732051.61513813
],
[
2333338.15125337,
-1876389.24973297
],
[
2250004.77906584,
-2020726.88432782
],
[
2083338.03469079,
-2020726.88432782
],
[
2000004.66250326,
-1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442798"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-1732051.61513813
],
[
2333338.15125337,
-1587713.98054329
],
[
2500004.89562843,
-1587713.98054329
],
[
2583338.26781595,
-1732051.61513813
],
[
2500004.89562843,
-1876389.24973297
],
[
2333338.15125337,
-1876389.24973297
],
[
2250004.77906584,
-1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442799"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-1443376.34594844
],
[
2333338.15125337,
-1299038.7113536
],
[
2500004.89562843,
-1299038.7113536
],
[
2583338.26781595,
-1443376.34594844
],
[
2500004.89562843,
-1587713.98054329
],
[
2333338.15125337,
-1587713.98054329
],
[
2250004.77906584,
-1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442856"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-1010363.44216391
],
[
2583338.26781595,
-866025.807569065
],
[
2750005.01219101,
-866025.807569065
],
[
2833338.38437853,
-1010363.44216391
],
[
2750005.01219101,
-1154701.07675875
],
[
2583338.26781595,
-1154701.07675875
],
[
2500004.89562843,
-1010363.44216391
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442857"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-721688.17297422
],
[
2583338.26781595,
-577350.538379377
],
[
2750005.01219101,
-577350.538379377
],
[
2833338.38437853,
-721688.17297422
],
[
2750005.01219101,
-866025.807569065
],
[
2583338.26781595,
-866025.807569065
],
[
2500004.89562843,
-721688.17297422
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442859"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-144337.634594844
],
[
2583338.26781595,
0.0
],
[
2750005.01219101,
0.0
],
[
2833338.38437853,
-144337.634594844
],
[
2750005.01219101,
-288675.269189688
],
[
2583338.26781595,
-288675.269189688
],
[
2500004.89562843,
-144337.634594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442860"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
144337.634594845
],
[
2583338.26781595,
288675.269189689
],
[
2750005.01219101,
288675.269189689
],
[
2833338.38437853,
144337.634594845
],
[
2750005.01219101,
0.0
],
[
2583338.26781595,
0.0
],
[
2500004.89562843,
144337.634594845
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442861"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
433012.903784533
],
[
2583338.26781595,
577350.538379378
],
[
2750005.01219101,
577350.538379378
],
[
2833338.38437853,
433012.903784533
],
[
2750005.01219101,
288675.269189689
],
[
2583338.26781595,
288675.269189689
],
[
2500004.89562843,
433012.903784533
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442910"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-1154701.07675875
],
[
2833338.38437853,
-1010363.44216391
],
[
3000005.12875359,
-1010363.44216391
],
[
3083338.50094112,
-1154701.07675875
],
[
3000005.12875359,
-1299038.7113536
],
[
2833338.38437853,
-1299038.7113536
],
[
2750005.01219101,
-1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442911"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-866025.807569065
],
[
2833338.38437853,
-721688.17297422
],
[
3000005.12875359,
-721688.17297422
],
[
3083338.50094112,
-866025.807569065
],
[
3000005.12875359,
-1010363.44216391
],
[
2833338.38437853,
-1010363.44216391
],
[
2750005.01219101,
-866025.807569065
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442912"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-577350.538379377
],
[
2833338.38437853,
-433012.903784532
],
[
3000005.12875359,
-433012.903784532
],
[
3083338.50094112,
-577350.538379377
],
[
3000005.12875359,
-721688.17297422
],
[
2833338.38437853,
-721688.17297422
],
[
2750005.01219101,
-577350.538379377
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442913"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-288675.269189688
],
[
2833338.38437853,
-144337.634594844
],
[
3000005.12875359,
-144337.634594844
],
[
3083338.50094112,
-288675.269189688
],
[
3000005.12875359,
-433012.903784532
],
[
2833338.38437853,
-433012.903784532
],
[
2750005.01219101,
-288675.269189688
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442915"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
288675.269189689
],
[
2833338.38437853,
433012.903784533
],
[
3000005.12875359,
433012.903784533
],
[
3083338.50094112,
288675.269189689
],
[
3000005.12875359,
144337.634594845
],
[
2833338.38437853,
144337.634594845
],
[
2750005.01219101,
288675.269189689
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442916"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
577350.538379378
],
[
2833338.38437853,
721688.172974221
],
[
3000005.12875359,
721688.172974221
],
[
3083338.50094112,
577350.538379378
],
[
3000005.12875359,
433012.903784533
],
[
2833338.38437853,
433012.903784533
],
[
2750005.01219101,
577350.538379378
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}