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=6858
{
"features": [
{
"properties": {
"pk": "441218"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4999998.60124902,
2453739.78811235
],
[
-4916665.22906149,
2598077.4227072
],
[
-4749998.48468644,
2598077.4227072
],
[
-4666665.11249891,
2453739.78811235
],
[
-4749998.48468644,
2309402.15351751
],
[
-4916665.22906149,
2309402.15351751
],
[
-4999998.60124902,
2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441436"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
1876389.24973297
],
[
-3916664.76281117,
2020726.88432782
],
[
-3749998.01843611,
2020726.88432782
],
[
-3666664.64624859,
1876389.24973297
],
[
-3749998.01843611,
1732051.61513813
],
[
-3916664.76281117,
1732051.61513813
],
[
-3999998.13499869,
1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442150"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-749996.619685135,
1732051.61513813
],
[
-666663.247497608,
1876389.24973297
],
[
-499996.503122553,
1876389.24973297
],
[
-416663.130935026,
1732051.61513813
],
[
-499996.503122553,
1587713.98054329
],
[
-666663.247497608,
1587713.98054329
],
[
-749996.619685135,
1732051.61513813
]
]
]
],
"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": "442310"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
144337.634594845
],
[
83337.1021901372,
288675.269189689
],
[
250003.846565192,
288675.269189689
],
[
333337.218752719,
144337.634594845
],
[
250003.846565192,
0.0
],
[
83337.1021901372,
0.0
],
[
3.73000261001289,
144337.634594845
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442397"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-6495193.55676799
],
[
583337.3353153,
-6350855.92217315
],
[
750004.079690354,
-6350855.92217315
],
[
833337.451877881,
-6495193.55676799
],
[
750004.079690354,
-6639531.19136284
],
[
583337.3353153,
-6639531.19136284
],
[
500003.963127773,
-6495193.55676799
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442404"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-4474466.67244017
],
[
583337.3353153,
-4330129.03784533
],
[
750004.079690354,
-4330129.03784533
],
[
833337.451877881,
-4474466.67244017
],
[
750004.079690354,
-4618804.30703502
],
[
583337.3353153,
-4618804.30703502
],
[
500003.963127773,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442405"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-4185791.40325048
],
[
583337.3353153,
-4041453.76865564
],
[
750004.079690354,
-4041453.76865564
],
[
833337.451877881,
-4185791.40325048
],
[
750004.079690354,
-4330129.03784533
],
[
583337.3353153,
-4330129.03784533
],
[
500003.963127773,
-4185791.40325048
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442459"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-4330129.03784533
],
[
833337.451877881,
-4185791.40325048
],
[
1000004.19625294,
-4185791.40325048
],
[
1083337.56844046,
-4330129.03784533
],
[
1000004.19625294,
-4474466.67244017
],
[
833337.451877881,
-4474466.67244017
],
[
750004.079690354,
-4330129.03784533
]
]
]
],
"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": "442806"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
577350.538379378
],
[
2333338.15125337,
721688.172974221
],
[
2500004.89562843,
721688.172974221
],
[
2583338.26781595,
577350.538379378
],
[
2500004.89562843,
433012.903784533
],
[
2333338.15125337,
433012.903784533
],
[
2250004.77906584,
577350.538379378
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}