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=2114832
{
"features": [
{
"properties": {
"pk": "442847"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-3608440.86487111
],
[
2583338.26781595,
-3464103.23027626
],
[
2750005.01219101,
-3464103.23027626
],
[
2833338.38437853,
-3608440.86487111
],
[
2750005.01219101,
-3752778.49946595
],
[
2583338.26781595,
-3752778.49946595
],
[
2500004.89562843,
-3608440.86487111
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442901"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-3752778.49946595
],
[
2833338.38437853,
-3608440.86487111
],
[
3000005.12875359,
-3608440.86487111
],
[
3083338.50094112,
-3752778.49946595
],
[
3000005.12875359,
-3897116.13406079
],
[
2833338.38437853,
-3897116.13406079
],
[
2750005.01219101,
-3752778.49946595
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442957"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
-3608440.86487111
],
[
3083338.50094112,
-3464103.23027626
],
[
3250005.24531617,
-3464103.23027626
],
[
3333338.6175037,
-3608440.86487111
],
[
3250005.24531617,
-3752778.49946595
],
[
3083338.50094112,
-3752778.49946595
],
[
3000005.12875359,
-3608440.86487111
]
]
]
],
"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": "443012"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
-3464103.23027626
],
[
3333338.6175037,
-3319765.59568142
],
[
3500005.36187875,
-3319765.59568142
],
[
3583338.73406628,
-3464103.23027626
],
[
3500005.36187875,
-3608440.86487111
],
[
3333338.6175037,
-3608440.86487111
],
[
3250005.24531617,
-3464103.23027626
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443013"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
-3175427.96108657
],
[
3333338.6175037,
-3031090.32649173
],
[
3500005.36187875,
-3031090.32649173
],
[
3583338.73406628,
-3175427.96108657
],
[
3500005.36187875,
-3319765.59568142
],
[
3333338.6175037,
-3319765.59568142
],
[
3250005.24531617,
-3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443351"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4750005.94469166,
-866025.807569065
],
[
4833339.31687919,
-721688.17297422
],
[
5000006.06125424,
-721688.17297422
],
[
5083339.43344177,
-866025.807569065
],
[
5000006.06125424,
-1010363.44216391
],
[
4833339.31687919,
-1010363.44216391
],
[
4750005.94469166,
-866025.807569065
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443409"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
5000006.06125424,
-144337.634594844
],
[
5083339.43344177,
0.0
],
[
5250006.17781682,
0.0
],
[
5333339.55000435,
-144337.634594844
],
[
5250006.17781682,
-288675.269189688
],
[
5083339.43344177,
-288675.269189688
],
[
5000006.06125424,
-144337.634594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443410"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
5000006.06125424,
144337.634594845
],
[
5083339.43344177,
288675.269189689
],
[
5250006.17781682,
288675.269189689
],
[
5333339.55000435,
144337.634594845
],
[
5250006.17781682,
0.0
],
[
5083339.43344177,
0.0
],
[
5000006.06125424,
144337.634594845
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}