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=5722866
{
"features": [
{
"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": "442593"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
2598077.4227072
],
[
1333337.68500304,
2742415.05730204
],
[
1500004.4293781,
2742415.05730204
],
[
1583337.80156563,
2598077.4227072
],
[
1500004.4293781,
2453739.78811235
],
[
1333337.68500304,
2453739.78811235
],
[
1250004.31281552,
2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442647"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
2165064.51892266
],
[
1583337.80156563,
2309402.15351751
],
[
1750004.54594068,
2309402.15351751
],
[
1833337.91812821,
2165064.51892266
],
[
1750004.54594068,
2020726.88432782
],
[
1583337.80156563,
2020726.88432782
],
[
1500004.4293781,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442648"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
2453739.78811235
],
[
1583337.80156563,
2598077.4227072
],
[
1750004.54594068,
2598077.4227072
],
[
1833337.91812821,
2453739.78811235
],
[
1750004.54594068,
2309402.15351751
],
[
1583337.80156563,
2309402.15351751
],
[
1500004.4293781,
2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442649"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1500004.4293781,
2742415.05730204
],
[
1583337.80156563,
2886752.69189689
],
[
1750004.54594068,
2886752.69189689
],
[
1833337.91812821,
2742415.05730204
],
[
1750004.54594068,
2598077.4227072
],
[
1583337.80156563,
2598077.4227072
],
[
1500004.4293781,
2742415.05730204
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442701"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
2020726.88432782
],
[
1833337.91812821,
2165064.51892266
],
[
2000004.66250326,
2165064.51892266
],
[
2083338.03469079,
2020726.88432782
],
[
2000004.66250326,
1876389.24973297
],
[
1833337.91812821,
1876389.24973297
],
[
1750004.54594068,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442702"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
2309402.15351751
],
[
1833337.91812821,
2453739.78811235
],
[
2000004.66250326,
2453739.78811235
],
[
2083338.03469079,
2309402.15351751
],
[
2000004.66250326,
2165064.51892266
],
[
1833337.91812821,
2165064.51892266
],
[
1750004.54594068,
2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442703"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
2598077.4227072
],
[
1833337.91812821,
2742415.05730204
],
[
2000004.66250326,
2742415.05730204
],
[
2083338.03469079,
2598077.4227072
],
[
2000004.66250326,
2453739.78811235
],
[
1833337.91812821,
2453739.78811235
],
[
1750004.54594068,
2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442704"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
2886752.69189689
],
[
1833337.91812821,
3031090.32649173
],
[
2000004.66250326,
3031090.32649173
],
[
2083338.03469079,
2886752.69189689
],
[
2000004.66250326,
2742415.05730204
],
[
1833337.91812821,
2742415.05730204
],
[
1750004.54594068,
2886752.69189689
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442756"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
1876389.24973297
],
[
2083338.03469079,
2020726.88432782
],
[
2250004.77906584,
2020726.88432782
],
[
2333338.15125337,
1876389.24973297
],
[
2250004.77906584,
1732051.61513813
],
[
2083338.03469079,
1732051.61513813
],
[
2000004.66250326,
1876389.24973297
]
]
]
],
"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": "442758"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
2453739.78811235
],
[
2083338.03469079,
2598077.4227072
],
[
2250004.77906584,
2598077.4227072
],
[
2333338.15125337,
2453739.78811235
],
[
2250004.77906584,
2309402.15351751
],
[
2083338.03469079,
2309402.15351751
],
[
2000004.66250326,
2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442760"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
3031090.32649173
],
[
2083338.03469079,
3175427.96108657
],
[
2250004.77906584,
3175427.96108657
],
[
2333338.15125337,
3031090.32649173
],
[
2250004.77906584,
2886752.69189689
],
[
2083338.03469079,
2886752.69189689
],
[
2000004.66250326,
3031090.32649173
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442813"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
2598077.4227072
],
[
2333338.15125337,
2742415.05730204
],
[
2500004.89562843,
2742415.05730204
],
[
2583338.26781595,
2598077.4227072
],
[
2500004.89562843,
2453739.78811235
],
[
2333338.15125337,
2453739.78811235
],
[
2250004.77906584,
2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442815"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
3175427.96108657
],
[
2333338.15125337,
3319765.59568142
],
[
2500004.89562843,
3319765.59568142
],
[
2583338.26781595,
3175427.96108657
],
[
2500004.89562843,
3031090.32649173
],
[
2333338.15125337,
3031090.32649173
],
[
2250004.77906584,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442869"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
2742415.05730204
],
[
2583338.26781595,
2886752.69189689
],
[
2750005.01219101,
2886752.69189689
],
[
2833338.38437853,
2742415.05730204
],
[
2750005.01219101,
2598077.4227072
],
[
2583338.26781595,
2598077.4227072
],
[
2500004.89562843,
2742415.05730204
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442924"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
2886752.69189689
],
[
2833338.38437853,
3031090.32649173
],
[
3000005.12875359,
3031090.32649173
],
[
3083338.50094112,
2886752.69189689
],
[
3000005.12875359,
2742415.05730204
],
[
2833338.38437853,
2742415.05730204
],
[
2750005.01219101,
2886752.69189689
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442980"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
3031090.32649173
],
[
3083338.50094112,
3175427.96108657
],
[
3250005.24531617,
3175427.96108657
],
[
3333338.6175037,
3031090.32649173
],
[
3250005.24531617,
2886752.69189689
],
[
3083338.50094112,
2886752.69189689
],
[
3000005.12875359,
3031090.32649173
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443035"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
3175427.96108657
],
[
3333338.6175037,
3319765.59568142
],
[
3500005.36187875,
3319765.59568142
],
[
3583338.73406628,
3175427.96108657
],
[
3500005.36187875,
3031090.32649173
],
[
3333338.6175037,
3031090.32649173
],
[
3250005.24531617,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443090"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
3031090.32649173
],
[
3583338.73406628,
3175427.96108657
],
[
3750005.47844133,
3175427.96108657
],
[
3833338.85062886,
3031090.32649173
],
[
3750005.47844133,
2886752.69189689
],
[
3583338.73406628,
2886752.69189689
],
[
3500005.36187875,
3031090.32649173
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}