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=3362
{
"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": "441983"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1499996.96937288,
1010363.44216391
],
[
-1416663.59718535,
1154701.07675875
],
[
-1249996.8528103,
1154701.07675875
],
[
-1166663.48062277,
1010363.44216391
],
[
-1249996.8528103,
866025.807569066
],
[
-1416663.59718535,
866025.807569066
],
[
-1499996.96937288,
1010363.44216391
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442248"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-1732051.61513813
],
[
-166663.014372444,
-1587713.98054329
],
[
3.73000261001289,
-1587713.98054329
],
[
83337.1021901372,
-1732051.61513813
],
[
3.73000261001289,
-1876389.24973297
],
[
-166663.014372444,
-1876389.24973297
],
[
-249996.386559972,
-1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442312"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
721688.172974221
],
[
83337.1021901372,
866025.807569066
],
[
250003.846565192,
866025.807569066
],
[
333337.218752719,
721688.172974221
],
[
250003.846565192,
577350.538379378
],
[
83337.1021901372,
577350.538379378
],
[
3.73000261001289,
721688.172974221
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442313"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
1010363.44216391
],
[
83337.1021901372,
1154701.07675875
],
[
250003.846565192,
1154701.07675875
],
[
333337.218752719,
1010363.44216391
],
[
250003.846565192,
866025.807569066
],
[
83337.1021901372,
866025.807569066
],
[
3.73000261001289,
1010363.44216391
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442514"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
-4474466.67244017
],
[
1083337.56844046,
-4330129.03784533
],
[
1250004.31281552,
-4330129.03784533
],
[
1333337.68500304,
-4474466.67244017
],
[
1250004.31281552,
-4618804.30703502
],
[
1083337.56844046,
-4618804.30703502
],
[
1000004.19625294,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}