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=442
{
"features": [
{
"properties": {
"pk": "441379"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4249998.25156128,
1443376.34594844
],
[
-4166664.87937375,
1587713.98054329
],
[
-3999998.13499869,
1587713.98054329
],
[
-3916664.76281117,
1443376.34594844
],
[
-3999998.13499869,
1299038.7113536
],
[
-4166664.87937375,
1299038.7113536
],
[
-4249998.25156128,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441813"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
-288675.269189688
],
[
-2166663.9468731,
-144337.634594844
],
[
-1999997.20249804,
-144337.634594844
],
[
-1916663.83031052,
-288675.269189688
],
[
-1999997.20249804,
-433012.903784532
],
[
-2166663.9468731,
-433012.903784532
],
[
-2249997.31906062,
-288675.269189688
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442045"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1249996.8528103,
3175427.96108657
],
[
-1166663.48062277,
3319765.59568142
],
[
-999996.736247716,
3319765.59568142
],
[
-916663.364060189,
3175427.96108657
],
[
-999996.736247716,
3031090.32649173
],
[
-1166663.48062277,
3031090.32649173
],
[
-1249996.8528103,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442154"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-749996.619685135,
2886752.69189689
],
[
-666663.247497608,
3031090.32649173
],
[
-499996.503122553,
3031090.32649173
],
[
-416663.130935026,
2886752.69189689
],
[
-499996.503122553,
2742415.05730204
],
[
-666663.247497608,
2742415.05730204
],
[
-749996.619685135,
2886752.69189689
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442305"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-1299038.7113536
],
[
83337.1021901372,
-1154701.07675875
],
[
250003.846565192,
-1154701.07675875
],
[
333337.218752719,
-1299038.7113536
],
[
250003.846565192,
-1443376.34594844
],
[
83337.1021901372,
-1443376.34594844
],
[
3.73000261001289,
-1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442403"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-4763141.94162986
],
[
583337.3353153,
-4618804.30703502
],
[
750004.079690354,
-4618804.30703502
],
[
833337.451877881,
-4763141.94162986
],
[
750004.079690354,
-4907479.5762247
],
[
583337.3353153,
-4907479.5762247
],
[
500003.963127773,
-4763141.94162986
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442410"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
500003.963127773,
-2742415.05730204
],
[
583337.3353153,
-2598077.4227072
],
[
750004.079690354,
-2598077.4227072
],
[
833337.451877881,
-2742415.05730204
],
[
750004.079690354,
-2886752.69189688
],
[
583337.3353153,
-2886752.69189688
],
[
500003.963127773,
-2742415.05730204
]
]
]
],
"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": "442515"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
-4185791.40325048
],
[
1083337.56844046,
-4041453.76865564
],
[
1250004.31281552,
-4041453.76865564
],
[
1333337.68500304,
-4185791.40325048
],
[
1250004.31281552,
-4330129.03784533
],
[
1083337.56844046,
-4330129.03784533
],
[
1000004.19625294,
-4185791.40325048
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442571"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-3752778.49946595
],
[
1333337.68500304,
-3608440.86487111
],
[
1500004.4293781,
-3608440.86487111
],
[
1583337.80156563,
-3752778.49946595
],
[
1500004.4293781,
-3897116.13406079
],
[
1333337.68500304,
-3897116.13406079
],
[
1250004.31281552,
-3752778.49946595
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442577"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-2020726.88432782
],
[
1333337.68500304,
-1876389.24973297
],
[
1500004.4293781,
-1876389.24973297
],
[
1583337.80156563,
-2020726.88432782
],
[
1500004.4293781,
-2165064.51892266
],
[
1333337.68500304,
-2165064.51892266
],
[
1250004.31281552,
-2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442632"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
-2165064.51892266
],
[
1583337.80156563,
-2020726.88432782
],
[
1750004.54594068,
-2020726.88432782
],
[
1833337.91812821,
-2165064.51892266
],
[
1750004.54594068,
-2309402.15351751
],
[
1583337.80156563,
-2309402.15351751
],
[
1500004.4293781,
-2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442633"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
-1876389.24973297
],
[
1583337.80156563,
-1732051.61513813
],
[
1750004.54594068,
-1732051.61513813
],
[
1833337.91812821,
-1876389.24973297
],
[
1750004.54594068,
-2020726.88432782
],
[
1583337.80156563,
-2020726.88432782
],
[
1500004.4293781,
-1876389.24973297
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442682"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
-3464103.23027626
],
[
1833337.91812821,
-3319765.59568142
],
[
2000004.66250326,
-3319765.59568142
],
[
2083338.03469079,
-3464103.23027626
],
[
2000004.66250326,
-3608440.86487111
],
[
1833337.91812821,
-3608440.86487111
],
[
1750004.54594068,
-3464103.23027626
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442757"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
2165064.51892266
],
[
2083338.03469079,
2309402.15351751
],
[
2250004.77906584,
2309402.15351751
],
[
2333338.15125337,
2165064.51892266
],
[
2250004.77906584,
2020726.88432782
],
[
2083338.03469079,
2020726.88432782
],
[
2000004.66250326,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442858"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-433012.903784532
],
[
2583338.26781595,
-288675.269189688
],
[
2750005.01219101,
-288675.269189688
],
[
2833338.38437853,
-433012.903784532
],
[
2750005.01219101,
-577350.538379377
],
[
2583338.26781595,
-577350.538379377
],
[
2500004.89562843,
-433012.903784532
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442859"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-144337.634594844
],
[
2583338.26781595,
0.0
],
[
2750005.01219101,
0.0
],
[
2833338.38437853,
-144337.634594844
],
[
2750005.01219101,
-288675.269189688
],
[
2583338.26781595,
-288675.269189688
],
[
2500004.89562843,
-144337.634594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442970"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
144337.634594845
],
[
3083338.50094112,
288675.269189689
],
[
3250005.24531617,
288675.269189689
],
[
3333338.6175037,
144337.634594845
],
[
3250005.24531617,
0.0
],
[
3083338.50094112,
0.0
],
[
3000005.12875359,
144337.634594845
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442971"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
433012.903784533
],
[
3083338.50094112,
577350.538379378
],
[
3250005.24531617,
577350.538379378
],
[
3333338.6175037,
433012.903784533
],
[
3250005.24531617,
288675.269189689
],
[
3083338.50094112,
288675.269189689
],
[
3000005.12875359,
433012.903784533
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}