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/?taxon=2415631
{
"features": [
{
"properties": {
"pk": "441214"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4999998.60124902,
1299038.7113536
],
[
-4916665.22906149,
1443376.34594844
],
[
-4749998.48468644,
1443376.34594844
],
[
-4666665.11249891,
1299038.7113536
],
[
-4749998.48468644,
1154701.07675875
],
[
-4916665.22906149,
1154701.07675875
],
[
-4999998.60124902,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441326"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
1876389.24973297
],
[
-4416664.99593633,
2020726.88432782
],
[
-4249998.25156128,
2020726.88432782
],
[
-4166664.87937375,
1876389.24973297
],
[
-4249998.25156128,
1732051.61513813
],
[
-4416664.99593633,
1732051.61513813
],
[
-4499998.36812386,
1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441489"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
1443376.34594844
],
[
-3666664.64624859,
1587713.98054329
],
[
-3499997.90187353,
1587713.98054329
],
[
-3416664.529686,
1443376.34594844
],
[
-3499997.90187353,
1299038.7113536
],
[
-3666664.64624859,
1299038.7113536
],
[
-3749998.01843611,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442181"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-499996.503122553,
-5340492.48000924
],
[
-416663.130935026,
-5196154.84541439
],
[
-249996.386559972,
-5196154.84541439
],
[
-166663.014372444,
-5340492.48000924
],
[
-249996.386559972,
-5484830.11460408
],
[
-416663.130935026,
-5484830.11460408
],
[
-499996.503122553,
-5340492.48000924
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442235"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-5484830.11460408
],
[
-166663.014372444,
-5340492.48000924
],
[
3.73000261001289,
-5340492.48000924
],
[
83337.1021901372,
-5484830.11460408
],
[
3.73000261001289,
-5629167.74919892
],
[
-166663.014372444,
-5629167.74919892
],
[
-249996.386559972,
-5484830.11460408
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442236"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-5196154.84541439
],
[
-166663.014372444,
-5051817.21081955
],
[
3.73000261001289,
-5051817.21081955
],
[
83337.1021901372,
-5196154.84541439
],
[
3.73000261001289,
-5340492.48000924
],
[
-166663.014372444,
-5340492.48000924
],
[
-249996.386559972,
-5196154.84541439
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442237"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-4907479.5762247
],
[
-166663.014372444,
-4763141.94162986
],
[
3.73000261001289,
-4763141.94162986
],
[
83337.1021901372,
-4907479.5762247
],
[
3.73000261001289,
-5051817.21081955
],
[
-166663.014372444,
-5051817.21081955
],
[
-249996.386559972,
-4907479.5762247
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442238"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-4618804.30703502
],
[
-166663.014372444,
-4474466.67244017
],
[
3.73000261001289,
-4474466.67244017
],
[
83337.1021901372,
-4618804.30703502
],
[
3.73000261001289,
-4763141.94162986
],
[
-166663.014372444,
-4763141.94162986
],
[
-249996.386559972,
-4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442291"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-5340492.48000924
],
[
83337.1021901372,
-5196154.84541439
],
[
250003.846565192,
-5196154.84541439
],
[
333337.218752719,
-5340492.48000924
],
[
250003.846565192,
-5484830.11460408
],
[
83337.1021901372,
-5484830.11460408
],
[
3.73000261001289,
-5340492.48000924
]
]
]
],
"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": "442345"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-5484830.11460408
],
[
333337.218752719,
-5340492.48000924
],
[
500003.963127773,
-5340492.48000924
],
[
583337.3353153,
-5484830.11460408
],
[
500003.963127773,
-5629167.74919892
],
[
333337.218752719,
-5629167.74919892
],
[
250003.846565192,
-5484830.11460408
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442346"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-5196154.84541439
],
[
333337.218752719,
-5051817.21081955
],
[
500003.963127773,
-5051817.21081955
],
[
583337.3353153,
-5196154.84541439
],
[
500003.963127773,
-5340492.48000924
],
[
333337.218752719,
-5340492.48000924
],
[
250003.846565192,
-5196154.84541439
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442348"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-4618804.30703502
],
[
333337.218752719,
-4474466.67244017
],
[
500003.963127773,
-4474466.67244017
],
[
583337.3353153,
-4618804.30703502
],
[
500003.963127773,
-4763141.94162986
],
[
333337.218752719,
-4763141.94162986
],
[
250003.846565192,
-4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442349"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-4330129.03784533
],
[
333337.218752719,
-4185791.40325048
],
[
500003.963127773,
-4185791.40325048
],
[
583337.3353153,
-4330129.03784533
],
[
500003.963127773,
-4474466.67244017
],
[
333337.218752719,
-4474466.67244017
],
[
250003.846565192,
-4330129.03784533
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442350"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-4041453.76865564
],
[
333337.218752719,
-3897116.13406079
],
[
500003.963127773,
-3897116.13406079
],
[
583337.3353153,
-4041453.76865564
],
[
500003.963127773,
-4185791.40325048
],
[
333337.218752719,
-4185791.40325048
],
[
250003.846565192,
-4041453.76865564
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442400"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-5629167.74919892
],
[
583337.3353153,
-5484830.11460408
],
[
750004.079690354,
-5484830.11460408
],
[
833337.451877881,
-5629167.74919892
],
[
750004.079690354,
-5773505.38379377
],
[
583337.3353153,
-5773505.38379377
],
[
500003.963127773,
-5629167.74919892
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442401"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-5340492.48000924
],
[
583337.3353153,
-5196154.84541439
],
[
750004.079690354,
-5196154.84541439
],
[
833337.451877881,
-5340492.48000924
],
[
750004.079690354,
-5484830.11460408
],
[
583337.3353153,
-5484830.11460408
],
[
500003.963127773,
-5340492.48000924
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442402"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-5051817.21081955
],
[
583337.3353153,
-4907479.5762247
],
[
750004.079690354,
-4907479.5762247
],
[
833337.451877881,
-5051817.21081955
],
[
750004.079690354,
-5196154.84541439
],
[
583337.3353153,
-5196154.84541439
],
[
500003.963127773,
-5051817.21081955
]
]
]
],
"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": "442454"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-5773505.38379377
],
[
833337.451877881,
-5629167.74919892
],
[
1000004.19625294,
-5629167.74919892
],
[
1083337.56844046,
-5773505.38379377
],
[
1000004.19625294,
-5917843.01838861
],
[
833337.451877881,
-5917843.01838861
],
[
750004.079690354,
-5773505.38379377
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442455"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-5484830.11460408
],
[
833337.451877881,
-5340492.48000924
],
[
1000004.19625294,
-5340492.48000924
],
[
1083337.56844046,
-5484830.11460408
],
[
1000004.19625294,
-5629167.74919892
],
[
833337.451877881,
-5629167.74919892
],
[
750004.079690354,
-5484830.11460408
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442456"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-5196154.84541439
],
[
833337.451877881,
-5051817.21081955
],
[
1000004.19625294,
-5051817.21081955
],
[
1083337.56844046,
-5196154.84541439
],
[
1000004.19625294,
-5340492.48000924
],
[
833337.451877881,
-5340492.48000924
],
[
750004.079690354,
-5196154.84541439
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442457"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-4907479.5762247
],
[
833337.451877881,
-4763141.94162986
],
[
1000004.19625294,
-4763141.94162986
],
[
1083337.56844046,
-4907479.5762247
],
[
1000004.19625294,
-5051817.21081955
],
[
833337.451877881,
-5051817.21081955
],
[
750004.079690354,
-4907479.5762247
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442458"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-4618804.30703502
],
[
833337.451877881,
-4474466.67244017
],
[
1000004.19625294,
-4474466.67244017
],
[
1083337.56844046,
-4618804.30703502
],
[
1000004.19625294,
-4763141.94162986
],
[
833337.451877881,
-4763141.94162986
],
[
750004.079690354,
-4618804.30703502
]
]
]
],
"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": "442460"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-4041453.76865564
],
[
833337.451877881,
-3897116.13406079
],
[
1000004.19625294,
-3897116.13406079
],
[
1083337.56844046,
-4041453.76865564
],
[
1000004.19625294,
-4185791.40325048
],
[
833337.451877881,
-4185791.40325048
],
[
750004.079690354,
-4041453.76865564
]
]
]
],
"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": "442564"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-5773505.38379377
],
[
1333337.68500304,
-5629167.74919892
],
[
1500004.4293781,
-5629167.74919892
],
[
1583337.80156563,
-5773505.38379377
],
[
1500004.4293781,
-5917843.01838861
],
[
1333337.68500304,
-5917843.01838861
],
[
1250004.31281552,
-5773505.38379377
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}