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=4338615
{
"features": [
{
"properties": {
"pk": "441600"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
1732051.61513813
],
[
-3166664.41312342,
1876389.24973297
],
[
-2999997.66874837,
1876389.24973297
],
[
-2916664.29656084,
1732051.61513813
],
[
-2999997.66874837,
1587713.98054329
],
[
-3166664.41312342,
1587713.98054329
],
[
-3249997.78531095,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441658"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
2453739.78811235
],
[
-2916664.29656084,
2598077.4227072
],
[
-2749997.55218579,
2598077.4227072
],
[
-2666664.17999826,
2453739.78811235
],
[
-2749997.55218579,
2309402.15351751
],
[
-2916664.29656084,
2309402.15351751
],
[
-2999997.66874837,
2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441825"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
3175427.96108657
],
[
-2166663.9468731,
3319765.59568142
],
[
-1999997.20249804,
3319765.59568142
],
[
-1916663.83031052,
3175427.96108657
],
[
-1999997.20249804,
3031090.32649173
],
[
-2166663.9468731,
3031090.32649173
],
[
-2249997.31906062,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441936"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
3464103.23027626
],
[
-1666663.71374793,
3608440.86487111
],
[
-1499996.96937288,
3608440.86487111
],
[
-1416663.59718535,
3464103.23027626
],
[
-1499996.96937288,
3319765.59568142
],
[
-1666663.71374793,
3319765.59568142
],
[
-1749997.08593546,
3464103.23027626
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442128"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-749996.619685135,
-4618804.30703502
],
[
-666663.247497608,
-4474466.67244017
],
[
-499996.503122553,
-4474466.67244017
],
[
-416663.130935026,
-4618804.30703502
],
[
-499996.503122553,
-4763141.94162986
],
[
-666663.247497608,
-4763141.94162986
],
[
-749996.619685135,
-4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442303"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-1876389.24973297
],
[
83337.1021901372,
-1732051.61513813
],
[
250003.846565192,
-1732051.61513813
],
[
333337.218752719,
-1876389.24973297
],
[
250003.846565192,
-2020726.88432782
],
[
83337.1021901372,
-2020726.88432782
],
[
3.73000261001289,
-1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442357"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-2020726.88432782
],
[
333337.218752719,
-1876389.24973297
],
[
500003.963127773,
-1876389.24973297
],
[
583337.3353153,
-2020726.88432782
],
[
500003.963127773,
-2165064.51892266
],
[
333337.218752719,
-2165064.51892266
],
[
250003.846565192,
-2020726.88432782
]
]
]
],
"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": "442513"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
-4763141.94162986
],
[
1083337.56844046,
-4618804.30703502
],
[
1250004.31281552,
-4618804.30703502
],
[
1333337.68500304,
-4763141.94162986
],
[
1250004.31281552,
-4907479.5762247
],
[
1083337.56844046,
-4907479.5762247
],
[
1000004.19625294,
-4763141.94162986
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442514"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
-4474466.67244017
],
[
1083337.56844046,
-4330129.03784533
],
[
1250004.31281552,
-4330129.03784533
],
[
1333337.68500304,
-4474466.67244017
],
[
1250004.31281552,
-4618804.30703502
],
[
1083337.56844046,
-4618804.30703502
],
[
1000004.19625294,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442573"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-3175427.96108657
],
[
1333337.68500304,
-3031090.32649173
],
[
1500004.4293781,
-3031090.32649173
],
[
1583337.80156563,
-3175427.96108657
],
[
1500004.4293781,
-3319765.59568142
],
[
1333337.68500304,
-3319765.59568142
],
[
1250004.31281552,
-3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442810"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
1732051.61513813
],
[
2333338.15125337,
1876389.24973297
],
[
2500004.89562843,
1876389.24973297
],
[
2583338.26781595,
1732051.61513813
],
[
2500004.89562843,
1587713.98054329
],
[
2333338.15125337,
1587713.98054329
],
[
2250004.77906584,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443036"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
3464103.23027626
],
[
3333338.6175037,
3608440.86487111
],
[
3500005.36187875,
3608440.86487111
],
[
3583338.73406628,
3464103.23027626
],
[
3500005.36187875,
3319765.59568142
],
[
3333338.6175037,
3319765.59568142
],
[
3250005.24531617,
3464103.23027626
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443092"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
3608440.86487111
],
[
3583338.73406628,
3752778.49946595
],
[
3750005.47844133,
3752778.49946595
],
[
3833338.85062886,
3608440.86487111
],
[
3750005.47844133,
3464103.23027626
],
[
3583338.73406628,
3464103.23027626
],
[
3500005.36187875,
3608440.86487111
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443195"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4000005.59500391,
1587713.98054329
],
[
4083338.96719144,
1732051.61513813
],
[
4250005.7115665,
1732051.61513813
],
[
4333339.08375402,
1587713.98054329
],
[
4250005.7115665,
1443376.34594844
],
[
4083338.96719144,
1443376.34594844
],
[
4000005.59500391,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}