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=8154
{
"features": [
{
"properties": {
"pk": "441710"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
1732051.61513813
],
[
-2666664.17999826,
1876389.24973297
],
[
-2499997.43562321,
1876389.24973297
],
[
-2416664.06343568,
1732051.61513813
],
[
-2499997.43562321,
1587713.98054329
],
[
-2666664.17999826,
1587713.98054329
],
[
-2749997.55218579,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441767"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
2165064.51892266
],
[
-2416664.06343568,
2309402.15351751
],
[
-2249997.31906062,
2309402.15351751
],
[
-2166663.9468731,
2165064.51892266
],
[
-2249997.31906062,
2020726.88432782
],
[
-2416664.06343568,
2020726.88432782
],
[
-2499997.43562321,
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": "442245"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-2598077.4227072
],
[
-166663.014372444,
-2453739.78811235
],
[
3.73000261001289,
-2453739.78811235
],
[
83337.1021901372,
-2598077.4227072
],
[
3.73000261001289,
-2742415.05730204
],
[
-166663.014372444,
-2742415.05730204
],
[
-249996.386559972,
-2598077.4227072
]
]
]
],
"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"
}
},
{
"properties": {
"pk": "442808"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
1154701.07675875
],
[
2333338.15125337,
1299038.7113536
],
[
2500004.89562843,
1299038.7113536
],
[
2583338.26781595,
1154701.07675875
],
[
2500004.89562843,
1010363.44216391
],
[
2333338.15125337,
1010363.44216391
],
[
2250004.77906584,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442861"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
433012.903784533
],
[
2583338.26781595,
577350.538379378
],
[
2750005.01219101,
577350.538379378
],
[
2833338.38437853,
433012.903784533
],
[
2750005.01219101,
288675.269189689
],
[
2583338.26781595,
288675.269189689
],
[
2500004.89562843,
433012.903784533
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442920"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
1732051.61513813
],
[
2833338.38437853,
1876389.24973297
],
[
3000005.12875359,
1876389.24973297
],
[
3083338.50094112,
1732051.61513813
],
[
3000005.12875359,
1587713.98054329
],
[
2833338.38437853,
1587713.98054329
],
[
2750005.01219101,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}