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=8204
{
"features": [
{
"properties": {
"pk": "441662"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
3608440.86487111
],
[
-2916664.29656084,
3752778.49946595
],
[
-2749997.55218579,
3752778.49946595
],
[
-2666664.17999826,
3608440.86487111
],
[
-2749997.55218579,
3464103.23027626
],
[
-2916664.29656084,
3464103.23027626
],
[
-2999997.66874837,
3608440.86487111
]
]
]
],
"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": "441987"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1499996.96937288,
2165064.51892266
],
[
-1416663.59718535,
2309402.15351751
],
[
-1249996.8528103,
2309402.15351751
],
[
-1166663.48062277,
2165064.51892266
],
[
-1249996.8528103,
2020726.88432782
],
[
-1416663.59718535,
2020726.88432782
],
[
-1499996.96937288,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442151"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-749996.619685135,
2020726.88432782
],
[
-666663.247497608,
2165064.51892266
],
[
-499996.503122553,
2165064.51892266
],
[
-416663.130935026,
2020726.88432782
],
[
-499996.503122553,
1876389.24973297
],
[
-666663.247497608,
1876389.24973297
],
[
-749996.619685135,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442270"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
4618804.30703502
],
[
-166663.014372444,
4763141.94162986
],
[
3.73000261001289,
4763141.94162986
],
[
83337.1021901372,
4618804.30703502
],
[
3.73000261001289,
4474466.67244017
],
[
-166663.014372444,
4474466.67244017
],
[
-249996.386559972,
4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442483"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
2598077.4227072
],
[
833337.451877881,
2742415.05730204
],
[
1000004.19625294,
2742415.05730204
],
[
1083337.56844046,
2598077.4227072
],
[
1000004.19625294,
2453739.78811235
],
[
833337.451877881,
2453739.78811235
],
[
750004.079690354,
2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442537"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
2165064.51892266
],
[
1083337.56844046,
2309402.15351751
],
[
1250004.31281552,
2309402.15351751
],
[
1333337.68500304,
2165064.51892266
],
[
1250004.31281552,
2020726.88432782
],
[
1083337.56844046,
2020726.88432782
],
[
1000004.19625294,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442538"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
2453739.78811235
],
[
1083337.56844046,
2598077.4227072
],
[
1250004.31281552,
2598077.4227072
],
[
1333337.68500304,
2453739.78811235
],
[
1250004.31281552,
2309402.15351751
],
[
1083337.56844046,
2309402.15351751
],
[
1000004.19625294,
2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442539"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
2742415.05730204
],
[
1083337.56844046,
2886752.69189689
],
[
1250004.31281552,
2886752.69189689
],
[
1333337.68500304,
2742415.05730204
],
[
1250004.31281552,
2598077.4227072
],
[
1083337.56844046,
2598077.4227072
],
[
1000004.19625294,
2742415.05730204
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442541"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
3319765.59568142
],
[
1083337.56844046,
3464103.23027626
],
[
1250004.31281552,
3464103.23027626
],
[
1333337.68500304,
3319765.59568142
],
[
1250004.31281552,
3175427.96108657
],
[
1083337.56844046,
3175427.96108657
],
[
1000004.19625294,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442594"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
2886752.69189689
],
[
1333337.68500304,
3031090.32649173
],
[
1500004.4293781,
3031090.32649173
],
[
1583337.80156563,
2886752.69189689
],
[
1500004.4293781,
2742415.05730204
],
[
1333337.68500304,
2742415.05730204
],
[
1250004.31281552,
2886752.69189689
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442595"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
3175427.96108657
],
[
1333337.68500304,
3319765.59568142
],
[
1500004.4293781,
3319765.59568142
],
[
1583337.80156563,
3175427.96108657
],
[
1500004.4293781,
3031090.32649173
],
[
1333337.68500304,
3031090.32649173
],
[
1250004.31281552,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442596"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
3464103.23027626
],
[
1333337.68500304,
3608440.86487111
],
[
1500004.4293781,
3608440.86487111
],
[
1583337.80156563,
3464103.23027626
],
[
1500004.4293781,
3319765.59568142
],
[
1333337.68500304,
3319765.59568142
],
[
1250004.31281552,
3464103.23027626
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442650"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
3031090.32649173
],
[
1583337.80156563,
3175427.96108657
],
[
1750004.54594068,
3175427.96108657
],
[
1833337.91812821,
3031090.32649173
],
[
1750004.54594068,
2886752.69189689
],
[
1583337.80156563,
2886752.69189689
],
[
1500004.4293781,
3031090.32649173
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442705"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
3175427.96108657
],
[
1833337.91812821,
3319765.59568142
],
[
2000004.66250326,
3319765.59568142
],
[
2083338.03469079,
3175427.96108657
],
[
2000004.66250326,
3031090.32649173
],
[
1833337.91812821,
3031090.32649173
],
[
1750004.54594068,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}