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=9045588
{
"features": [
{
"properties": {
"pk": "441547"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3499997.90187353,
2165064.51892266
],
[
-3416664.529686,
2309402.15351751
],
[
-3249997.78531095,
2309402.15351751
],
[
-3166664.41312342,
2165064.51892266
],
[
-3249997.78531095,
2020726.88432782
],
[
-3416664.529686,
2020726.88432782
],
[
-3499997.90187353,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441641"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2999997.66874837,
-2453739.78811235
],
[
-2916664.29656084,
-2309402.15351751
],
[
-2749997.55218579,
-2309402.15351751
],
[
-2666664.17999826,
-2453739.78811235
],
[
-2749997.55218579,
-2598077.4227072
],
[
-2916664.29656084,
-2598077.4227072
],
[
-2999997.66874837,
-2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441696"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
-2309402.15351751
],
[
-2666664.17999826,
-2165064.51892266
],
[
-2499997.43562321,
-2165064.51892266
],
[
-2416664.06343568,
-2309402.15351751
],
[
-2499997.43562321,
-2453739.78811235
],
[
-2666664.17999826,
-2453739.78811235
],
[
-2749997.55218579,
-2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441910"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
-4041453.76865564
],
[
-1666663.71374793,
-3897116.13406079
],
[
-1499996.96937288,
-3897116.13406079
],
[
-1416663.59718535,
-4041453.76865564
],
[
-1499996.96937288,
-4185791.40325048
],
[
-1666663.71374793,
-4185791.40325048
],
[
-1749997.08593546,
-4041453.76865564
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441964"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1499996.96937288,
-4474466.67244017
],
[
-1416663.59718535,
-4330129.03784533
],
[
-1249996.8528103,
-4330129.03784533
],
[
-1166663.48062277,
-4474466.67244017
],
[
-1249996.8528103,
-4618804.30703502
],
[
-1416663.59718535,
-4618804.30703502
],
[
-1499996.96937288,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442036"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1249996.8528103,
577350.538379378
],
[
-1166663.48062277,
721688.172974221
],
[
-999996.736247716,
721688.172974221
],
[
-916663.364060189,
577350.538379378
],
[
-999996.736247716,
433012.903784533
],
[
-1166663.48062277,
433012.903784533
],
[
-1249996.8528103,
577350.538379378
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442145"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-749996.619685135,
288675.269189689
],
[
-666663.247497608,
433012.903784533
],
[
-499996.503122553,
433012.903784533
],
[
-416663.130935026,
288675.269189689
],
[
-499996.503122553,
144337.634594845
],
[
-666663.247497608,
144337.634594845
],
[
-749996.619685135,
288675.269189689
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442254"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
0.0
],
[
-166663.014372444,
144337.634594845
],
[
3.73000261001289,
144337.634594845
],
[
83337.1021901372,
0.0
],
[
3.73000261001289,
-144337.634594844
],
[
-166663.014372444,
-144337.634594844
],
[
-249996.386559972,
0.0
]
]
]
],
"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": "442958"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
-3319765.59568142
],
[
3083338.50094112,
-3175427.96108657
],
[
3250005.24531617,
-3175427.96108657
],
[
3333338.6175037,
-3319765.59568142
],
[
3250005.24531617,
-3464103.23027626
],
[
3083338.50094112,
-3464103.23027626
],
[
3000005.12875359,
-3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443069"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
-3031090.32649173
],
[
3583338.73406628,
-2886752.69189688
],
[
3750005.47844133,
-2886752.69189688
],
[
3833338.85062886,
-3031090.32649173
],
[
3750005.47844133,
-3175427.96108657
],
[
3583338.73406628,
-3175427.96108657
],
[
3500005.36187875,
-3031090.32649173
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443182"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4000005.59500391,
-2165064.51892266
],
[
4083338.96719144,
-2020726.88432782
],
[
4250005.7115665,
-2020726.88432782
],
[
4333339.08375402,
-2165064.51892266
],
[
4250005.7115665,
-2309402.15351751
],
[
4083338.96719144,
-2309402.15351751
],
[
4000005.59500391,
-2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}