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=609
{
"features": [
{
"properties": {
"pk": "442236"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-5196154.84541439
],
[
-166663.014372444,
-5051817.21081955
],
[
3.73000261001289,
-5051817.21081955
],
[
83337.1021901372,
-5196154.84541439
],
[
3.73000261001289,
-5340492.48000924
],
[
-166663.014372444,
-5340492.48000924
],
[
-249996.386559972,
-5196154.84541439
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442458"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-4618804.30703502
],
[
833337.451877881,
-4474466.67244017
],
[
1000004.19625294,
-4474466.67244017
],
[
1083337.56844046,
-4618804.30703502
],
[
1000004.19625294,
-4763141.94162986
],
[
833337.451877881,
-4763141.94162986
],
[
750004.079690354,
-4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442571"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
-3752778.49946595
],
[
1333337.68500304,
-3608440.86487111
],
[
1500004.4293781,
-3608440.86487111
],
[
1583337.80156563,
-3752778.49946595
],
[
1500004.4293781,
-3897116.13406079
],
[
1333337.68500304,
-3897116.13406079
],
[
1250004.31281552,
-3752778.49946595
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442898"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-4618804.30703502
],
[
2833338.38437853,
-4474466.67244017
],
[
3000005.12875359,
-4474466.67244017
],
[
3083338.50094112,
-4618804.30703502
],
[
3000005.12875359,
-4763141.94162986
],
[
2833338.38437853,
-4763141.94162986
],
[
2750005.01219101,
-4618804.30703502
]
]
]
],
"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"
}