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/?taxon=1496
{
"features": [
{
"properties": {
"pk": "441105"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5499998.83437418,
1587713.98054329
],
[
-5416665.46218666,
1732051.61513813
],
[
-5249998.7178116,
1732051.61513813
],
[
-5166665.34562408,
1587713.98054329
],
[
-5249998.7178116,
1443376.34594844
],
[
-5416665.46218666,
1443376.34594844
],
[
-5499998.83437418,
1587713.98054329
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441106"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5499998.83437418,
1876389.24973297
],
[
-5416665.46218666,
2020726.88432782
],
[
-5249998.7178116,
2020726.88432782
],
[
-5166665.34562408,
1876389.24973297
],
[
-5249998.7178116,
1732051.61513813
],
[
-5416665.46218666,
1732051.61513813
],
[
-5499998.83437418,
1876389.24973297
]
]
]
],
"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": "441324"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
1299038.7113536
],
[
-4416664.99593633,
1443376.34594844
],
[
-4249998.25156128,
1443376.34594844
],
[
-4166664.87937375,
1299038.7113536
],
[
-4249998.25156128,
1154701.07675875
],
[
-4416664.99593633,
1154701.07675875
],
[
-4499998.36812386,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441489"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3749998.01843611,
1443376.34594844
],
[
-3666664.64624859,
1587713.98054329
],
[
-3499997.90187353,
1587713.98054329
],
[
-3416664.529686,
1443376.34594844
],
[
-3499997.90187353,
1299038.7113536
],
[
-3666664.64624859,
1299038.7113536
],
[
-3749998.01843611,
1443376.34594844
]
]
]
],
"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": "442269"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-249996.386559972,
4330129.03784533
],
[
-166663.014372444,
4474466.67244017
],
[
3.73000261001289,
4474466.67244017
],
[
83337.1021901372,
4330129.03784533
],
[
3.73000261001289,
4185791.40325048
],
[
-166663.014372444,
4185791.40325048
],
[
-249996.386559972,
4330129.03784533
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442293"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-4763141.94162986
],
[
83337.1021901372,
-4618804.30703502
],
[
250003.846565192,
-4618804.30703502
],
[
333337.218752719,
-4763141.94162986
],
[
250003.846565192,
-4907479.5762247
],
[
83337.1021901372,
-4907479.5762247
],
[
3.73000261001289,
-4763141.94162986
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442294"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
-4474466.67244017
],
[
83337.1021901372,
-4330129.03784533
],
[
250003.846565192,
-4330129.03784533
],
[
333337.218752719,
-4474466.67244017
],
[
250003.846565192,
-4618804.30703502
],
[
83337.1021901372,
-4618804.30703502
],
[
3.73000261001289,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442323"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3.73000261001289,
3897116.13406079
],
[
83337.1021901372,
4041453.76865564
],
[
250003.846565192,
4041453.76865564
],
[
333337.218752719,
3897116.13406079
],
[
250003.846565192,
3752778.49946595
],
[
83337.1021901372,
3752778.49946595
],
[
3.73000261001289,
3897116.13406079
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442380"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
250003.846565192,
4618804.30703502
],
[
333337.218752719,
4763141.94162986
],
[
500003.963127773,
4763141.94162986
],
[
583337.3353153,
4618804.30703502
],
[
500003.963127773,
4474466.67244017
],
[
333337.218752719,
4474466.67244017
],
[
250003.846565192,
4618804.30703502
]
]
]
],
"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"
}
},
{
"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": "442601"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
4907479.57622471
],
[
1333337.68500304,
5051817.21081955
],
[
1500004.4293781,
5051817.21081955
],
[
1583337.80156563,
4907479.57622471
],
[
1500004.4293781,
4763141.94162986
],
[
1333337.68500304,
4763141.94162986
],
[
1250004.31281552,
4907479.57622471
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442684"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
-2886752.69189688
],
[
1833337.91812821,
-2742415.05730204
],
[
2000004.66250326,
-2742415.05730204
],
[
2083338.03469079,
-2886752.69189688
],
[
2000004.66250326,
-3031090.32649173
],
[
1833337.91812821,
-3031090.32649173
],
[
1750004.54594068,
-2886752.69189688
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442927"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
3752778.49946595
],
[
2833338.38437853,
3897116.13406079
],
[
3000005.12875359,
3897116.13406079
],
[
3083338.50094112,
3752778.49946595
],
[
3000005.12875359,
3608440.86487111
],
[
2833338.38437853,
3608440.86487111
],
[
2750005.01219101,
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"
}
},
{
"properties": {
"pk": "443145"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3750005.47844133,
3175427.96108657
],
[
3833338.85062886,
3319765.59568142
],
[
4000005.59500391,
3319765.59568142
],
[
4083338.96719144,
3175427.96108657
],
[
4000005.59500391,
3031090.32649173
],
[
3833338.85062886,
3031090.32649173
],
[
3750005.47844133,
3175427.96108657
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443201"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4000005.59500391,
3319765.59568142
],
[
4083338.96719144,
3464103.23027626
],
[
4250005.7115665,
3464103.23027626
],
[
4333339.08375402,
3319765.59568142
],
[
4250005.7115665,
3175427.96108657
],
[
4083338.96719144,
3175427.96108657
],
[
4000005.59500391,
3319765.59568142
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}