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=3395
{
"features": [
{
"properties": {
"pk": "441822"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2249997.31906062,
2309402.15351751
],
[
-2166663.9468731,
2453739.78811235
],
[
-1999997.20249804,
2453739.78811235
],
[
-1916663.83031052,
2309402.15351751
],
[
-1999997.20249804,
2165064.51892266
],
[
-2166663.9468731,
2165064.51892266
],
[
-2249997.31906062,
2309402.15351751
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441881"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1999997.20249804,
3319765.59568142
],
[
-1916663.83031052,
3464103.23027626
],
[
-1749997.08593546,
3464103.23027626
],
[
-1666663.71374793,
3319765.59568142
],
[
-1749997.08593546,
3175427.96108657
],
[
-1916663.83031052,
3175427.96108657
],
[
-1999997.20249804,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441936"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-1749997.08593546,
3464103.23027626
],
[
-1666663.71374793,
3608440.86487111
],
[
-1499996.96937288,
3608440.86487111
],
[
-1416663.59718535,
3464103.23027626
],
[
-1499996.96937288,
3319765.59568142
],
[
-1666663.71374793,
3319765.59568142
],
[
-1749997.08593546,
3464103.23027626
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442151"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-749996.619685135,
2020726.88432782
],
[
-666663.247497608,
2165064.51892266
],
[
-499996.503122553,
2165064.51892266
],
[
-416663.130935026,
2020726.88432782
],
[
-499996.503122553,
1876389.24973297
],
[
-666663.247497608,
1876389.24973297
],
[
-749996.619685135,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442302"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-2165064.51892266
],
[
83337.1021901372,
-2020726.88432782
],
[
250003.846565192,
-2020726.88432782
],
[
333337.218752719,
-2165064.51892266
],
[
250003.846565192,
-2309402.15351751
],
[
83337.1021901372,
-2309402.15351751
],
[
3.73000261001289,
-2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442303"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-1876389.24973297
],
[
83337.1021901372,
-1732051.61513813
],
[
250003.846565192,
-1732051.61513813
],
[
333337.218752719,
-1876389.24973297
],
[
250003.846565192,
-2020726.88432782
],
[
83337.1021901372,
-2020726.88432782
],
[
3.73000261001289,
-1876389.24973297
]
]
]
],
"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": "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"
}