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=606
{
"features": [
{
"properties": {
"pk": "441378"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4249998.25156128,
1154701.07675875
],
[
-4166664.87937375,
1299038.7113536
],
[
-3999998.13499869,
1299038.7113536
],
[
-3916664.76281117,
1154701.07675875
],
[
-3999998.13499869,
1010363.44216391
],
[
-4166664.87937375,
1010363.44216391
],
[
-4249998.25156128,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441435"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
1587713.98054329
],
[
-3916664.76281117,
1732051.61513813
],
[
-3749998.01843611,
1732051.61513813
],
[
-3666664.64624859,
1587713.98054329
],
[
-3749998.01843611,
1443376.34594844
],
[
-3916664.76281117,
1443376.34594844
],
[
-3999998.13499869,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442542"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
3608440.86487111
],
[
1083337.56844046,
3752778.49946595
],
[
1250004.31281552,
3752778.49946595
],
[
1333337.68500304,
3608440.86487111
],
[
1250004.31281552,
3464103.23027626
],
[
1083337.56844046,
3464103.23027626
],
[
1000004.19625294,
3608440.86487111
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442543"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
3897116.13406079
],
[
1083337.56844046,
4041453.76865564
],
[
1250004.31281552,
4041453.76865564
],
[
1333337.68500304,
3897116.13406079
],
[
1250004.31281552,
3752778.49946595
],
[
1083337.56844046,
3752778.49946595
],
[
1000004.19625294,
3897116.13406079
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442984"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
4185791.40325048
],
[
3083338.50094112,
4330129.03784533
],
[
3250005.24531617,
4330129.03784533
],
[
3333338.6175037,
4185791.40325048
],
[
3250005.24531617,
4041453.76865564
],
[
3083338.50094112,
4041453.76865564
],
[
3000005.12875359,
4185791.40325048
]
]
]
],
"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"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}