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=9471
{
"features": [
{
"properties": {
"pk": "440940"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-6249999.18406193,
1732051.61513813
],
[
-6166665.8118744,
1876389.24973297
],
[
-5999999.06749935,
1876389.24973297
],
[
-5916665.69531182,
1732051.61513813
],
[
-5999999.06749935,
1587713.98054329
],
[
-6166665.8118744,
1587713.98054329
],
[
-6249999.18406193,
1732051.61513813
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "440941"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-6249999.18406193,
2020726.88432782
],
[
-6166665.8118744,
2165064.51892266
],
[
-5999999.06749935,
2165064.51892266
],
[
-5916665.69531182,
2020726.88432782
],
[
-5999999.06749935,
1876389.24973297
],
[
-6166665.8118744,
1876389.24973297
],
[
-6249999.18406193,
2020726.88432782
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "440995"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5999999.06749935,
1587713.98054329
],
[
-5916665.69531182,
1732051.61513813
],
[
-5749998.95093677,
1732051.61513813
],
[
-5666665.57874924,
1587713.98054329
],
[
-5749998.95093677,
1443376.34594844
],
[
-5916665.69531182,
1443376.34594844
],
[
-5999999.06749935,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441049"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5749998.95093677,
1443376.34594844
],
[
-5666665.57874924,
1587713.98054329
],
[
-5499998.83437418,
1587713.98054329
],
[
-5416665.46218666,
1443376.34594844
],
[
-5499998.83437418,
1299038.7113536
],
[
-5666665.57874924,
1299038.7113536
],
[
-5749998.95093677,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441104"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5499998.83437418,
1299038.7113536
],
[
-5416665.46218666,
1443376.34594844
],
[
-5249998.7178116,
1443376.34594844
],
[
-5166665.34562408,
1299038.7113536
],
[
-5249998.7178116,
1154701.07675875
],
[
-5416665.46218666,
1154701.07675875
],
[
-5499998.83437418,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441214"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4999998.60124902,
1299038.7113536
],
[
-4916665.22906149,
1443376.34594844
],
[
-4749998.48468644,
1443376.34594844
],
[
-4666665.11249891,
1299038.7113536
],
[
-4749998.48468644,
1154701.07675875
],
[
-4916665.22906149,
1154701.07675875
],
[
-4999998.60124902,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441268"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4749998.48468644,
1154701.07675875
],
[
-4666665.11249891,
1299038.7113536
],
[
-4499998.36812386,
1299038.7113536
],
[
-4416664.99593633,
1154701.07675875
],
[
-4499998.36812386,
1010363.44216391
],
[
-4666665.11249891,
1010363.44216391
],
[
-4749998.48468644,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"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": "441605"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3249997.78531095,
3175427.96108657
],
[
-3166664.41312342,
3319765.59568142
],
[
-2999997.66874837,
3319765.59568142
],
[
-2916664.29656084,
3175427.96108657
],
[
-2999997.66874837,
3031090.32649173
],
[
-3166664.41312342,
3031090.32649173
],
[
-3249997.78531095,
3175427.96108657
]
]
]
],
"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": "441765"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2499997.43562321,
1587713.98054329
],
[
-2416664.06343568,
1732051.61513813
],
[
-2249997.31906062,
1732051.61513813
],
[
-2166663.9468731,
1587713.98054329
],
[
-2249997.31906062,
1443376.34594844
],
[
-2416664.06343568,
1443376.34594844
],
[
-2499997.43562321,
1587713.98054329
]
]
]
],
"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": "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": "442304"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-1587713.98054329
],
[
83337.1021901372,
-1443376.34594844
],
[
250003.846565192,
-1443376.34594844
],
[
333337.218752719,
-1587713.98054329
],
[
250003.846565192,
-1732051.61513813
],
[
83337.1021901372,
-1732051.61513813
],
[
3.73000261001289,
-1587713.98054329
]
]
]
],
"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": "442459"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-4330129.03784533
],
[
833337.451877881,
-4185791.40325048
],
[
1000004.19625294,
-4185791.40325048
],
[
1083337.56844046,
-4330129.03784533
],
[
1000004.19625294,
-4474466.67244017
],
[
833337.451877881,
-4474466.67244017
],
[
750004.079690354,
-4330129.03784533
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}