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=2859
{
"features": [
{
"properties": {
"pk": "441445"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
4474466.67244017
],
[
-3916664.76281117,
4618804.30703502
],
[
-3749998.01843611,
4618804.30703502
],
[
-3666664.64624859,
4474466.67244017
],
[
-3749998.01843611,
4330129.03784533
],
[
-3916664.76281117,
4330129.03784533
],
[
-3999998.13499869,
4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441474"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
-2886752.69189688
],
[
-3666664.64624859,
-2742415.05730204
],
[
-3499997.90187353,
-2742415.05730204
],
[
-3416664.529686,
-2886752.69189688
],
[
-3499997.90187353,
-3031090.32649173
],
[
-3666664.64624859,
-3031090.32649173
],
[
-3749998.01843611,
-2886752.69189688
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441655"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
1587713.98054329
],
[
-2916664.29656084,
1732051.61513813
],
[
-2749997.55218579,
1732051.61513813
],
[
-2666664.17999826,
1587713.98054329
],
[
-2749997.55218579,
1443376.34594844
],
[
-2916664.29656084,
1443376.34594844
],
[
-2999997.66874837,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441764"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
1299038.7113536
],
[
-2416664.06343568,
1443376.34594844
],
[
-2249997.31906062,
1443376.34594844
],
[
-2166663.9468731,
1299038.7113536
],
[
-2249997.31906062,
1154701.07675875
],
[
-2416664.06343568,
1154701.07675875
],
[
-2499997.43562321,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441822"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
2309402.15351751
],
[
-2166663.9468731,
2453739.78811235
],
[
-1999997.20249804,
2453739.78811235
],
[
-1916663.83031052,
2309402.15351751
],
[
-1999997.20249804,
2165064.51892266
],
[
-2166663.9468731,
2165064.51892266
],
[
-2249997.31906062,
2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441912"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
-3464103.23027626
],
[
-1666663.71374793,
-3319765.59568142
],
[
-1499996.96937288,
-3319765.59568142
],
[
-1416663.59718535,
-3464103.23027626
],
[
-1499996.96937288,
-3608440.86487111
],
[
-1666663.71374793,
-3608440.86487111
],
[
-1749997.08593546,
-3464103.23027626
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442023"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1249996.8528103,
-3175427.96108657
],
[
-1166663.48062277,
-3031090.32649173
],
[
-999996.736247716,
-3031090.32649173
],
[
-916663.364060189,
-3175427.96108657
],
[
-999996.736247716,
-3319765.59568142
],
[
-1166663.48062277,
-3319765.59568142
],
[
-1249996.8528103,
-3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442102"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-999996.736247716,
3608440.86487111
],
[
-916663.364060189,
3752778.49946595
],
[
-749996.619685135,
3752778.49946595
],
[
-666663.247497608,
3608440.86487111
],
[
-749996.619685135,
3464103.23027626
],
[
-916663.364060189,
3464103.23027626
],
[
-999996.736247716,
3608440.86487111
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442207"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-499996.503122553,
2165064.51892266
],
[
-416663.130935026,
2309402.15351751
],
[
-249996.386559972,
2309402.15351751
],
[
-166663.014372444,
2165064.51892266
],
[
-249996.386559972,
2020726.88432782
],
[
-416663.130935026,
2020726.88432782
],
[
-499996.503122553,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442323"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
3897116.13406079
],
[
83337.1021901372,
4041453.76865564
],
[
250003.846565192,
4041453.76865564
],
[
333337.218752719,
3897116.13406079
],
[
250003.846565192,
3752778.49946595
],
[
83337.1021901372,
3752778.49946595
],
[
3.73000261001289,
3897116.13406079
]
]
]
],
"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": "442437"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
5051817.21081955
],
[
583337.3353153,
5196154.84541439
],
[
750004.079690354,
5196154.84541439
],
[
833337.451877881,
5051817.21081955
],
[
750004.079690354,
4907479.57622471
],
[
583337.3353153,
4907479.57622471
],
[
500003.963127773,
5051817.21081955
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442605"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
6062180.65298346
],
[
1333337.68500304,
6206518.2875783
],
[
1500004.4293781,
6206518.2875783
],
[
1583337.80156563,
6062180.65298346
],
[
1500004.4293781,
5917843.01838861
],
[
1333337.68500304,
5917843.01838861
],
[
1250004.31281552,
6062180.65298346
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442664"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
7072544.09514737
],
[
1583337.80156563,
7216881.72974221
],
[
1750004.54594068,
7216881.72974221
],
[
1833337.91812821,
7072544.09514737
],
[
1750004.54594068,
6928206.46055252
],
[
1583337.80156563,
6928206.46055252
],
[
1500004.4293781,
7072544.09514737
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442809"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
1443376.34594844
],
[
2333338.15125337,
1587713.98054329
],
[
2500004.89562843,
1587713.98054329
],
[
2583338.26781595,
1443376.34594844
],
[
2500004.89562843,
1299038.7113536
],
[
2333338.15125337,
1299038.7113536
],
[
2250004.77906584,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443145"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3750005.47844133,
3175427.96108657
],
[
3833338.85062886,
3319765.59568142
],
[
4000005.59500391,
3319765.59568142
],
[
4083338.96719144,
3175427.96108657
],
[
4000005.59500391,
3031090.32649173
],
[
3833338.85062886,
3031090.32649173
],
[
3750005.47844133,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}