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&dataset=635
{
"features": [
{
"properties": {
"pk": "443137"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3750005.47844133,
866025.807569066
],
[
3833338.85062886,
1010363.44216391
],
[
4000005.59500391,
1010363.44216391
],
[
4083338.96719144,
866025.807569066
],
[
4000005.59500391,
721688.172974221
],
[
3833338.85062886,
721688.172974221
],
[
3750005.47844133,
866025.807569066
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443138"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3750005.47844133,
1154701.07675875
],
[
3833338.85062886,
1299038.7113536
],
[
4000005.59500391,
1299038.7113536
],
[
4083338.96719144,
1154701.07675875
],
[
4000005.59500391,
1010363.44216391
],
[
3833338.85062886,
1010363.44216391
],
[
3750005.47844133,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443191"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4000005.59500391,
433012.903784533
],
[
4083338.96719144,
577350.538379378
],
[
4250005.7115665,
577350.538379378
],
[
4333339.08375402,
433012.903784533
],
[
4250005.7115665,
288675.269189689
],
[
4083338.96719144,
288675.269189689
],
[
4000005.59500391,
433012.903784533
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443192"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4000005.59500391,
721688.172974221
],
[
4083338.96719144,
866025.807569066
],
[
4250005.7115665,
866025.807569066
],
[
4333339.08375402,
721688.172974221
],
[
4250005.7115665,
577350.538379378
],
[
4083338.96719144,
577350.538379378
],
[
4000005.59500391,
721688.172974221
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443193"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4000005.59500391,
1010363.44216391
],
[
4083338.96719144,
1154701.07675875
],
[
4250005.7115665,
1154701.07675875
],
[
4333339.08375402,
1010363.44216391
],
[
4250005.7115665,
866025.807569066
],
[
4083338.96719144,
866025.807569066
],
[
4000005.59500391,
1010363.44216391
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443194"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4000005.59500391,
1299038.7113536
],
[
4083338.96719144,
1443376.34594844
],
[
4250005.7115665,
1443376.34594844
],
[
4333339.08375402,
1299038.7113536
],
[
4250005.7115665,
1154701.07675875
],
[
4083338.96719144,
1154701.07675875
],
[
4000005.59500391,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}