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=3448
{
"features": [
{
"properties": {
"pk": "440995"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5999999.06749935,
1587713.98054329
],
[
-5916665.69531182,
1732051.61513813
],
[
-5749998.95093677,
1732051.61513813
],
[
-5666665.57874924,
1587713.98054329
],
[
-5749998.95093677,
1443376.34594844
],
[
-5916665.69531182,
1443376.34594844
],
[
-5999999.06749935,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441105"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5499998.83437418,
1587713.98054329
],
[
-5416665.46218666,
1732051.61513813
],
[
-5249998.7178116,
1732051.61513813
],
[
-5166665.34562408,
1587713.98054329
],
[
-5249998.7178116,
1443376.34594844
],
[
-5416665.46218666,
1443376.34594844
],
[
-5499998.83437418,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441381"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4249998.25156128,
2020726.88432782
],
[
-4166664.87937375,
2165064.51892266
],
[
-3999998.13499869,
2165064.51892266
],
[
-3916664.76281117,
2020726.88432782
],
[
-3999998.13499869,
1876389.24973297
],
[
-4166664.87937375,
1876389.24973297
],
[
-4249998.25156128,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441437"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
2165064.51892266
],
[
-3916664.76281117,
2309402.15351751
],
[
-3749998.01843611,
2309402.15351751
],
[
-3666664.64624859,
2165064.51892266
],
[
-3749998.01843611,
2020726.88432782
],
[
-3916664.76281117,
2020726.88432782
],
[
-3999998.13499869,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441771"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
3319765.59568142
],
[
-2416664.06343568,
3464103.23027626
],
[
-2249997.31906062,
3464103.23027626
],
[
-2166663.9468731,
3319765.59568142
],
[
-2249997.31906062,
3175427.96108657
],
[
-2416664.06343568,
3175427.96108657
],
[
-2499997.43562321,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441864"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1999997.20249804,
-1587713.98054329
],
[
-1916663.83031052,
-1443376.34594844
],
[
-1749997.08593546,
-1443376.34594844
],
[
-1666663.71374793,
-1587713.98054329
],
[
-1749997.08593546,
-1732051.61513813
],
[
-1916663.83031052,
-1732051.61513813
],
[
-1999997.20249804,
-1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442054"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1249996.8528103,
5773505.38379377
],
[
-1166663.48062277,
5917843.01838861
],
[
-999996.736247716,
5917843.01838861
],
[
-916663.364060189,
5773505.38379377
],
[
-999996.736247716,
5629167.74919893
],
[
-1166663.48062277,
5629167.74919893
],
[
-1249996.8528103,
5773505.38379377
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442275"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
6062180.65298346
],
[
-166663.014372444,
6206518.2875783
],
[
3.73000261001289,
6206518.2875783
],
[
83337.1021901372,
6062180.65298346
],
[
3.73000261001289,
5917843.01838861
],
[
-166663.014372444,
5917843.01838861
],
[
-249996.386559972,
6062180.65298346
]
]
]
],
"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": "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": "442452"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-6350855.92217315
],
[
833337.451877881,
-6206518.2875783
],
[
1000004.19625294,
-6206518.2875783
],
[
1083337.56844046,
-6350855.92217315
],
[
1000004.19625294,
-6495193.55676799
],
[
833337.451877881,
-6495193.55676799
],
[
750004.079690354,
-6350855.92217315
]
]
]
],
"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": "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": "442707"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
3752778.49946595
],
[
1833337.91812821,
3897116.13406079
],
[
2000004.66250326,
3897116.13406079
],
[
2083338.03469079,
3752778.49946595
],
[
2000004.66250326,
3608440.86487111
],
[
1833337.91812821,
3608440.86487111
],
[
1750004.54594068,
3752778.49946595
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442771"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
6206518.2875783
],
[
2083338.03469079,
6350855.92217315
],
[
2250004.77906584,
6350855.92217315
],
[
2333338.15125337,
6206518.2875783
],
[
2250004.77906584,
6062180.65298346
],
[
2083338.03469079,
6062180.65298346
],
[
2000004.66250326,
6206518.2875783
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}