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=2216983
{
"features": [
{
"properties": {
"pk": "440933"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-6249999.18406193,
-288675.269189688
],
[
-6166665.8118744,
-144337.634594844
],
[
-5999999.06749935,
-144337.634594844
],
[
-5916665.69531182,
-288675.269189688
],
[
-5999999.06749935,
-433012.903784532
],
[
-6166665.8118744,
-433012.903784532
],
[
-6249999.18406193,
-288675.269189688
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "440984"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5999999.06749935,
-1587713.98054329
],
[
-5916665.69531182,
-1443376.34594844
],
[
-5749998.95093677,
-1443376.34594844
],
[
-5666665.57874924,
-1587713.98054329
],
[
-5749998.95093677,
-1732051.61513813
],
[
-5916665.69531182,
-1732051.61513813
],
[
-5999999.06749935,
-1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441608"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
4041453.76865564
],
[
-3166664.41312342,
4185791.40325048
],
[
-2999997.66874837,
4185791.40325048
],
[
-2916664.29656084,
4041453.76865564
],
[
-2999997.66874837,
3897116.13406079
],
[
-3166664.41312342,
3897116.13406079
],
[
-3249997.78531095,
4041453.76865564
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441709"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
1443376.34594844
],
[
-2666664.17999826,
1587713.98054329
],
[
-2499997.43562321,
1587713.98054329
],
[
-2416664.06343568,
1443376.34594844
],
[
-2499997.43562321,
1299038.7113536
],
[
-2666664.17999826,
1299038.7113536
],
[
-2749997.55218579,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441710"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
1732051.61513813
],
[
-2666664.17999826,
1876389.24973297
],
[
-2499997.43562321,
1876389.24973297
],
[
-2416664.06343568,
1732051.61513813
],
[
-2499997.43562321,
1587713.98054329
],
[
-2666664.17999826,
1587713.98054329
],
[
-2749997.55218579,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441771"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
3319765.59568142
],
[
-2416664.06343568,
3464103.23027626
],
[
-2249997.31906062,
3464103.23027626
],
[
-2166663.9468731,
3319765.59568142
],
[
-2249997.31906062,
3175427.96108657
],
[
-2416664.06343568,
3175427.96108657
],
[
-2499997.43562321,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442150"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-749996.619685135,
1732051.61513813
],
[
-666663.247497608,
1876389.24973297
],
[
-499996.503122553,
1876389.24973297
],
[
-416663.130935026,
1732051.61513813
],
[
-499996.503122553,
1587713.98054329
],
[
-666663.247497608,
1587713.98054329
],
[
-749996.619685135,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442207"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-499996.503122553,
2165064.51892266
],
[
-416663.130935026,
2309402.15351751
],
[
-249996.386559972,
2309402.15351751
],
[
-166663.014372444,
2165064.51892266
],
[
-249996.386559972,
2020726.88432782
],
[
-416663.130935026,
2020726.88432782
],
[
-499996.503122553,
2165064.51892266
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442751"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
433012.903784533
],
[
2083338.03469079,
577350.538379378
],
[
2250004.77906584,
577350.538379378
],
[
2333338.15125337,
433012.903784533
],
[
2250004.77906584,
288675.269189689
],
[
2083338.03469079,
288675.269189689
],
[
2000004.66250326,
433012.903784533
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442752"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
721688.172974221
],
[
2083338.03469079,
866025.807569066
],
[
2250004.77906584,
866025.807569066
],
[
2333338.15125337,
721688.172974221
],
[
2250004.77906584,
577350.538379378
],
[
2083338.03469079,
577350.538379378
],
[
2000004.66250326,
721688.172974221
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442806"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
577350.538379378
],
[
2333338.15125337,
721688.172974221
],
[
2500004.89562843,
721688.172974221
],
[
2583338.26781595,
577350.538379378
],
[
2500004.89562843,
433012.903784533
],
[
2333338.15125337,
433012.903784533
],
[
2250004.77906584,
577350.538379378
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442807"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
866025.807569066
],
[
2333338.15125337,
1010363.44216391
],
[
2500004.89562843,
1010363.44216391
],
[
2583338.26781595,
866025.807569066
],
[
2500004.89562843,
721688.172974221
],
[
2333338.15125337,
721688.172974221
],
[
2250004.77906584,
866025.807569066
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442808"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
1154701.07675875
],
[
2333338.15125337,
1299038.7113536
],
[
2500004.89562843,
1299038.7113536
],
[
2583338.26781595,
1154701.07675875
],
[
2500004.89562843,
1010363.44216391
],
[
2333338.15125337,
1010363.44216391
],
[
2250004.77906584,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442815"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
3175427.96108657
],
[
2333338.15125337,
3319765.59568142
],
[
2500004.89562843,
3319765.59568142
],
[
2583338.26781595,
3175427.96108657
],
[
2500004.89562843,
3031090.32649173
],
[
2333338.15125337,
3031090.32649173
],
[
2250004.77906584,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}