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=514
{
"features": [
{
"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": "442245"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-2598077.4227072
],
[
-166663.014372444,
-2453739.78811235
],
[
3.73000261001289,
-2453739.78811235
],
[
83337.1021901372,
-2598077.4227072
],
[
3.73000261001289,
-2742415.05730204
],
[
-166663.014372444,
-2742415.05730204
],
[
-249996.386559972,
-2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442246"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
-2309402.15351751
],
[
-166663.014372444,
-2165064.51892266
],
[
3.73000261001289,
-2165064.51892266
],
[
83337.1021901372,
-2309402.15351751
],
[
3.73000261001289,
-2453739.78811235
],
[
-166663.014372444,
-2453739.78811235
],
[
-249996.386559972,
-2309402.15351751
]
]
]
],
"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": "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": "442305"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-1299038.7113536
],
[
83337.1021901372,
-1154701.07675875
],
[
250003.846565192,
-1154701.07675875
],
[
333337.218752719,
-1299038.7113536
],
[
250003.846565192,
-1443376.34594844
],
[
83337.1021901372,
-1443376.34594844
],
[
3.73000261001289,
-1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442355"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-2598077.4227072
],
[
333337.218752719,
-2453739.78811235
],
[
500003.963127773,
-2453739.78811235
],
[
583337.3353153,
-2598077.4227072
],
[
500003.963127773,
-2742415.05730204
],
[
333337.218752719,
-2742415.05730204
],
[
250003.846565192,
-2598077.4227072
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442358"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
-1732051.61513813
],
[
333337.218752719,
-1587713.98054329
],
[
500003.963127773,
-1587713.98054329
],
[
583337.3353153,
-1732051.61513813
],
[
500003.963127773,
-1876389.24973297
],
[
333337.218752719,
-1876389.24973297
],
[
250003.846565192,
-1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442860"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
144337.634594845
],
[
2583338.26781595,
288675.269189689
],
[
2750005.01219101,
288675.269189689
],
[
2833338.38437853,
144337.634594845
],
[
2750005.01219101,
0.0
],
[
2583338.26781595,
0.0
],
[
2500004.89562843,
144337.634594845
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443071"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
-2453739.78811235
],
[
3583338.73406628,
-2309402.15351751
],
[
3750005.47844133,
-2309402.15351751
],
[
3833338.85062886,
-2453739.78811235
],
[
3750005.47844133,
-2598077.4227072
],
[
3583338.73406628,
-2598077.4227072
],
[
3500005.36187875,
-2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443091"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
3319765.59568142
],
[
3583338.73406628,
3464103.23027626
],
[
3750005.47844133,
3464103.23027626
],
[
3833338.85062886,
3319765.59568142
],
[
3750005.47844133,
3175427.96108657
],
[
3583338.73406628,
3175427.96108657
],
[
3500005.36187875,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}