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=2405905
{
"features": [
{
"properties": {
"pk": "441330"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
3031090.32649173
],
[
-4416664.99593633,
3175427.96108657
],
[
-4249998.25156128,
3175427.96108657
],
[
-4166664.87937375,
3031090.32649173
],
[
-4249998.25156128,
2886752.69189689
],
[
-4416664.99593633,
2886752.69189689
],
[
-4499998.36812386,
3031090.32649173
]
]
]
],
"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": "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": "441885"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1999997.20249804,
4474466.67244017
],
[
-1916663.83031052,
4618804.30703502
],
[
-1749997.08593546,
4618804.30703502
],
[
-1666663.71374793,
4474466.67244017
],
[
-1749997.08593546,
4330129.03784533
],
[
-1916663.83031052,
4330129.03784533
],
[
-1999997.20249804,
4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442293"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-4763141.94162986
],
[
83337.1021901372,
-4618804.30703502
],
[
250003.846565192,
-4618804.30703502
],
[
333337.218752719,
-4763141.94162986
],
[
250003.846565192,
-4907479.5762247
],
[
83337.1021901372,
-4907479.5762247
],
[
3.73000261001289,
-4763141.94162986
]
]
]
],
"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": "442845"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-4185791.40325048
],
[
2583338.26781595,
-4041453.76865564
],
[
2750005.01219101,
-4041453.76865564
],
[
2833338.38437853,
-4185791.40325048
],
[
2750005.01219101,
-4330129.03784533
],
[
2583338.26781595,
-4330129.03784533
],
[
2500004.89562843,
-4185791.40325048
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442847"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-3608440.86487111
],
[
2583338.26781595,
-3464103.23027626
],
[
2750005.01219101,
-3464103.23027626
],
[
2833338.38437853,
-3608440.86487111
],
[
2750005.01219101,
-3752778.49946595
],
[
2583338.26781595,
-3752778.49946595
],
[
2500004.89562843,
-3608440.86487111
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443249"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4250005.7115665,
1443376.34594844
],
[
4333339.08375402,
1587713.98054329
],
[
4500005.82812908,
1587713.98054329
],
[
4583339.2003166,
1443376.34594844
],
[
4500005.82812908,
1299038.7113536
],
[
4333339.08375402,
1299038.7113536
],
[
4250005.7115665,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443250"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4250005.7115665,
1732051.61513813
],
[
4333339.08375402,
1876389.24973297
],
[
4500005.82812908,
1876389.24973297
],
[
4583339.2003166,
1732051.61513813
],
[
4500005.82812908,
1587713.98054329
],
[
4333339.08375402,
1587713.98054329
],
[
4250005.7115665,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443306"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4500005.82812908,
1876389.24973297
],
[
4583339.2003166,
2020726.88432782
],
[
4750005.94469166,
2020726.88432782
],
[
4833339.31687919,
1876389.24973297
],
[
4750005.94469166,
1732051.61513813
],
[
4583339.2003166,
1732051.61513813
],
[
4500005.82812908,
1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443414"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
5000006.06125424,
1299038.7113536
],
[
5083339.43344177,
1443376.34594844
],
[
5250006.17781682,
1443376.34594844
],
[
5333339.55000435,
1299038.7113536
],
[
5250006.17781682,
1154701.07675875
],
[
5083339.43344177,
1154701.07675875
],
[
5000006.06125424,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}