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=2433471
{
"features": [
{
"properties": {
"pk": "441715"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-2749997.55218579,
3175427.96108657
],
[
-2666664.17999826,
3319765.59568142
],
[
-2499997.43562321,
3319765.59568142
],
[
-2416664.06343568,
3175427.96108657
],
[
-2499997.43562321,
3031090.32649173
],
[
-2666664.17999826,
3031090.32649173
],
[
-2749997.55218579,
3175427.96108657
]
]
]
],
"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": "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": "442513"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
-4763141.94162986
],
[
1083337.56844046,
-4618804.30703502
],
[
1250004.31281552,
-4618804.30703502
],
[
1333337.68500304,
-4763141.94162986
],
[
1250004.31281552,
-4907479.5762247
],
[
1083337.56844046,
-4907479.5762247
],
[
1000004.19625294,
-4763141.94162986
]
]
]
],
"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": "442738"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
-3319765.59568142
],
[
2083338.03469079,
-3175427.96108657
],
[
2250004.77906584,
-3175427.96108657
],
[
2333338.15125337,
-3319765.59568142
],
[
2250004.77906584,
-3464103.23027626
],
[
2083338.03469079,
-3464103.23027626
],
[
2000004.66250326,
-3319765.59568142
]
]
]
],
"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"
}
},
{
"properties": {
"pk": "443249"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
4250005.7115665,
1443376.34594844
],
[
4333339.08375402,
1587713.98054329
],
[
4500005.82812908,
1587713.98054329
],
[
4583339.2003166,
1443376.34594844
],
[
4500005.82812908,
1299038.7113536
],
[
4333339.08375402,
1299038.7113536
],
[
4250005.7115665,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443524"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
5500006.2943794,
1299038.7113536
],
[
5583339.66656693,
1443376.34594844
],
[
5750006.41094199,
1443376.34594844
],
[
5833339.78312951,
1299038.7113536
],
[
5750006.41094199,
1154701.07675875
],
[
5583339.66656693,
1154701.07675875
],
[
5500006.2943794,
1299038.7113536
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443578"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
5750006.41094199,
1154701.07675875
],
[
5833339.78312951,
1299038.7113536
],
[
6000006.52750457,
1299038.7113536
],
[
6083339.89969209,
1154701.07675875
],
[
6000006.52750457,
1010363.44216391
],
[
5833339.78312951,
1010363.44216391
],
[
5750006.41094199,
1154701.07675875
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443579"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
5750006.41094199,
1443376.34594844
],
[
5833339.78312951,
1587713.98054329
],
[
6000006.52750457,
1587713.98054329
],
[
6083339.89969209,
1443376.34594844
],
[
6000006.52750457,
1299038.7113536
],
[
5833339.78312951,
1299038.7113536
],
[
5750006.41094199,
1443376.34594844
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443811"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
6750006.87719231,
4907479.57622471
],
[
6833340.24937984,
5051817.21081955
],
[
7000006.99375489,
5051817.21081955
],
[
7083340.36594242,
4907479.57622471
],
[
7000006.99375489,
4763141.94162986
],
[
6833340.24937984,
4763141.94162986
],
[
6750006.87719231,
4907479.57622471
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}