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=6288
{
"features": [
{
"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": "442297"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-3608440.86487111
],
[
83337.1021901372,
-3464103.23027626
],
[
250003.846565192,
-3464103.23027626
],
[
333337.218752719,
-3608440.86487111
],
[
250003.846565192,
-3752778.49946595
],
[
83337.1021901372,
-3752778.49946595
],
[
3.73000261001289,
-3608440.86487111
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442304"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-1587713.98054329
],
[
83337.1021901372,
-1443376.34594844
],
[
250003.846565192,
-1443376.34594844
],
[
333337.218752719,
-1587713.98054329
],
[
250003.846565192,
-1732051.61513813
],
[
83337.1021901372,
-1732051.61513813
],
[
3.73000261001289,
-1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442859"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-144337.634594844
],
[
2583338.26781595,
0.0
],
[
2750005.01219101,
0.0
],
[
2833338.38437853,
-144337.634594844
],
[
2750005.01219101,
-288675.269189688
],
[
2583338.26781595,
-288675.269189688
],
[
2500004.89562843,
-144337.634594844
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}