Occurrence Grid
Process queries for HexGrid objects. Will be deprecated in future version :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=2228027
{
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"features": [
{
"type": "Feature",
"properties": {
"pk": "441122"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-5499998.83437418,
6495193.55676799
],
[
-5416665.46218666,
6639531.19136284
],
[
-5249998.7178116,
6639531.19136284
],
[
-5166665.34562408,
6495193.55676799
],
[
-5249998.7178116,
6350855.92217315
],
[
-5416665.46218666,
6350855.92217315
],
[
-5499998.83437418,
6495193.55676799
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "441123"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-5499998.83437418,
6783868.82595768
],
[
-5416665.46218666,
6928206.46055252
],
[
-5249998.7178116,
6928206.46055252
],
[
-5166665.34562408,
6783868.82595768
],
[
-5249998.7178116,
6639531.19136284
],
[
-5416665.46218666,
6639531.19136284
],
[
-5499998.83437418,
6783868.82595768
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "441178"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-5249998.7178116,
6928206.46055252
],
[
-5166665.34562408,
7072544.09514737
],
[
-4999998.60124902,
7072544.09514737
],
[
-4916665.22906149,
6928206.46055252
],
[
-4999998.60124902,
6783868.82595768
],
[
-5166665.34562408,
6783868.82595768
],
[
-5249998.7178116,
6928206.46055252
]
]
]
]
}
},
{
"type": "Feature",
"properties": {
"pk": "441235"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-4999998.60124902,
7361219.36433706
],
[
-4916665.22906149,
7505556.9989319
],
[
-4749998.48468644,
7505556.9989319
],
[
-4666665.11249891,
7361219.36433706
],
[
-4749998.48468644,
7216881.72974221
],
[
-4916665.22906149,
7216881.72974221
],
[
-4999998.60124902,
7361219.36433706
]
]
]
]
}
}
]
}