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=4630165
{
"features": [
{
"properties": {
"pk": "441386"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4249998.25156128,
3464103.23027626
],
[
-4166664.87937375,
3608440.86487111
],
[
-3999998.13499869,
3608440.86487111
],
[
-3916664.76281117,
3464103.23027626
],
[
-3999998.13499869,
3319765.59568142
],
[
-4166664.87937375,
3319765.59568142
],
[
-4249998.25156128,
3464103.23027626
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441492"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
2309402.15351751
],
[
-3666664.64624859,
2453739.78811235
],
[
-3499997.90187353,
2453739.78811235
],
[
-3416664.529686,
2309402.15351751
],
[
-3499997.90187353,
2165064.51892266
],
[
-3666664.64624859,
2165064.51892266
],
[
-3749998.01843611,
2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441935"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
3175427.96108657
],
[
-1666663.71374793,
3319765.59568142
],
[
-1499996.96937288,
3319765.59568142
],
[
-1416663.59718535,
3175427.96108657
],
[
-1499996.96937288,
3031090.32649173
],
[
-1666663.71374793,
3031090.32649173
],
[
-1749997.08593546,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442211"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-499996.503122553,
3319765.59568142
],
[
-416663.130935026,
3464103.23027626
],
[
-249996.386559972,
3464103.23027626
],
[
-166663.014372444,
3319765.59568142
],
[
-249996.386559972,
3175427.96108657
],
[
-416663.130935026,
3175427.96108657
],
[
-499996.503122553,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442927"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
3752778.49946595
],
[
2833338.38437853,
3897116.13406079
],
[
3000005.12875359,
3897116.13406079
],
[
3083338.50094112,
3752778.49946595
],
[
3000005.12875359,
3608440.86487111
],
[
2833338.38437853,
3608440.86487111
],
[
2750005.01219101,
3752778.49946595
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442983"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
3897116.13406079
],
[
3083338.50094112,
4041453.76865564
],
[
3250005.24531617,
4041453.76865564
],
[
3333338.6175037,
3897116.13406079
],
[
3250005.24531617,
3752778.49946595
],
[
3083338.50094112,
3752778.49946595
],
[
3000005.12875359,
3897116.13406079
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443091"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
3319765.59568142
],
[
3583338.73406628,
3464103.23027626
],
[
3750005.47844133,
3464103.23027626
],
[
3833338.85062886,
3319765.59568142
],
[
3750005.47844133,
3175427.96108657
],
[
3583338.73406628,
3175427.96108657
],
[
3500005.36187875,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443145"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3750005.47844133,
3175427.96108657
],
[
3833338.85062886,
3319765.59568142
],
[
4000005.59500391,
3319765.59568142
],
[
4083338.96719144,
3175427.96108657
],
[
4000005.59500391,
3031090.32649173
],
[
3833338.85062886,
3031090.32649173
],
[
3750005.47844133,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}