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=5739275
{
"features": [
{
"properties": {
"pk": "441274"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4749998.48468644,
2886752.69189689
],
[
-4666665.11249891,
3031090.32649173
],
[
-4499998.36812386,
3031090.32649173
],
[
-4416664.99593633,
2886752.69189689
],
[
-4499998.36812386,
2742415.05730204
],
[
-4666665.11249891,
2742415.05730204
],
[
-4749998.48468644,
2886752.69189689
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441438"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-3999998.13499869,
2453739.78811235
],
[
-3916664.76281117,
2598077.4227072
],
[
-3749998.01843611,
2598077.4227072
],
[
-3666664.64624859,
2453739.78811235
],
[
-3749998.01843611,
2309402.15351751
],
[
-3916664.76281117,
2309402.15351751
],
[
-3999998.13499869,
2453739.78811235
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442548"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
5340492.48000924
],
[
1083337.56844046,
5484830.11460408
],
[
1250004.31281552,
5484830.11460408
],
[
1333337.68500304,
5340492.48000924
],
[
1250004.31281552,
5196154.84541439
],
[
1083337.56844046,
5196154.84541439
],
[
1000004.19625294,
5340492.48000924
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442604"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1250004.31281552,
5773505.38379377
],
[
1333337.68500304,
5917843.01838861
],
[
1500004.4293781,
5917843.01838861
],
[
1583337.80156563,
5773505.38379377
],
[
1500004.4293781,
5629167.74919893
],
[
1333337.68500304,
5629167.74919893
],
[
1250004.31281552,
5773505.38379377
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442708"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1750004.54594068,
4041453.76865564
],
[
1833337.91812821,
4185791.40325048
],
[
2000004.66250326,
4185791.40325048
],
[
2083338.03469079,
4041453.76865564
],
[
2000004.66250326,
3897116.13406079
],
[
1833337.91812821,
3897116.13406079
],
[
1750004.54594068,
4041453.76865564
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442734"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
-4474466.67244017
],
[
2083338.03469079,
-4330129.03784533
],
[
2250004.77906584,
-4330129.03784533
],
[
2333338.15125337,
-4474466.67244017
],
[
2250004.77906584,
-4618804.30703502
],
[
2083338.03469079,
-4618804.30703502
],
[
2000004.66250326,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442735"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2000004.66250326,
-4185791.40325048
],
[
2083338.03469079,
-4041453.76865564
],
[
2250004.77906584,
-4041453.76865564
],
[
2333338.15125337,
-4185791.40325048
],
[
2250004.77906584,
-4330129.03784533
],
[
2083338.03469079,
-4330129.03784533
],
[
2000004.66250326,
-4185791.40325048
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442788"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-4618804.30703502
],
[
2333338.15125337,
-4474466.67244017
],
[
2500004.89562843,
-4474466.67244017
],
[
2583338.26781595,
-4618804.30703502
],
[
2500004.89562843,
-4763141.94162986
],
[
2333338.15125337,
-4763141.94162986
],
[
2250004.77906584,
-4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442789"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-4330129.03784533
],
[
2333338.15125337,
-4185791.40325048
],
[
2500004.89562843,
-4185791.40325048
],
[
2583338.26781595,
-4330129.03784533
],
[
2500004.89562843,
-4474466.67244017
],
[
2333338.15125337,
-4474466.67244017
],
[
2250004.77906584,
-4330129.03784533
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442790"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2250004.77906584,
-4041453.76865564
],
[
2333338.15125337,
-3897116.13406079
],
[
2500004.89562843,
-3897116.13406079
],
[
2583338.26781595,
-4041453.76865564
],
[
2500004.89562843,
-4185791.40325048
],
[
2333338.15125337,
-4185791.40325048
],
[
2250004.77906584,
-4041453.76865564
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442843"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-4763141.94162986
],
[
2583338.26781595,
-4618804.30703502
],
[
2750005.01219101,
-4618804.30703502
],
[
2833338.38437853,
-4763141.94162986
],
[
2750005.01219101,
-4907479.5762247
],
[
2583338.26781595,
-4907479.5762247
],
[
2500004.89562843,
-4763141.94162986
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442844"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2500004.89562843,
-4474466.67244017
],
[
2583338.26781595,
-4330129.03784533
],
[
2750005.01219101,
-4330129.03784533
],
[
2833338.38437853,
-4474466.67244017
],
[
2750005.01219101,
-4618804.30703502
],
[
2583338.26781595,
-4618804.30703502
],
[
2500004.89562843,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442895"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-5484830.11460408
],
[
2833338.38437853,
-5340492.48000924
],
[
3000005.12875359,
-5340492.48000924
],
[
3083338.50094112,
-5484830.11460408
],
[
3000005.12875359,
-5629167.74919892
],
[
2833338.38437853,
-5629167.74919892
],
[
2750005.01219101,
-5484830.11460408
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442896"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-5196154.84541439
],
[
2833338.38437853,
-5051817.21081955
],
[
3000005.12875359,
-5051817.21081955
],
[
3083338.50094112,
-5196154.84541439
],
[
3000005.12875359,
-5340492.48000924
],
[
2833338.38437853,
-5340492.48000924
],
[
2750005.01219101,
-5196154.84541439
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442897"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-4907479.5762247
],
[
2833338.38437853,
-4763141.94162986
],
[
3000005.12875359,
-4763141.94162986
],
[
3083338.50094112,
-4907479.5762247
],
[
3000005.12875359,
-5051817.21081955
],
[
2833338.38437853,
-5051817.21081955
],
[
2750005.01219101,
-4907479.5762247
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442898"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-4618804.30703502
],
[
2833338.38437853,
-4474466.67244017
],
[
3000005.12875359,
-4474466.67244017
],
[
3083338.50094112,
-4618804.30703502
],
[
3000005.12875359,
-4763141.94162986
],
[
2833338.38437853,
-4763141.94162986
],
[
2750005.01219101,
-4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442899"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-4330129.03784533
],
[
2833338.38437853,
-4185791.40325048
],
[
3000005.12875359,
-4185791.40325048
],
[
3083338.50094112,
-4330129.03784533
],
[
3000005.12875359,
-4474466.67244017
],
[
2833338.38437853,
-4474466.67244017
],
[
2750005.01219101,
-4330129.03784533
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442900"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
2750005.01219101,
-4041453.76865564
],
[
2833338.38437853,
-3897116.13406079
],
[
3000005.12875359,
-3897116.13406079
],
[
3083338.50094112,
-4041453.76865564
],
[
3000005.12875359,
-4185791.40325048
],
[
2833338.38437853,
-4185791.40325048
],
[
2750005.01219101,
-4041453.76865564
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442950"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
-5629167.74919892
],
[
3083338.50094112,
-5484830.11460408
],
[
3250005.24531617,
-5484830.11460408
],
[
3333338.6175037,
-5629167.74919892
],
[
3250005.24531617,
-5773505.38379377
],
[
3083338.50094112,
-5773505.38379377
],
[
3000005.12875359,
-5629167.74919892
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442952"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
-5051817.21081955
],
[
3083338.50094112,
-4907479.5762247
],
[
3250005.24531617,
-4907479.5762247
],
[
3333338.6175037,
-5051817.21081955
],
[
3250005.24531617,
-5196154.84541439
],
[
3083338.50094112,
-5196154.84541439
],
[
3000005.12875359,
-5051817.21081955
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443007"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
-4907479.5762247
],
[
3333338.6175037,
-4763141.94162986
],
[
3500005.36187875,
-4763141.94162986
],
[
3583338.73406628,
-4907479.5762247
],
[
3500005.36187875,
-5051817.21081955
],
[
3333338.6175037,
-5051817.21081955
],
[
3250005.24531617,
-4907479.5762247
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443009"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
-4330129.03784533
],
[
3333338.6175037,
-4185791.40325048
],
[
3500005.36187875,
-4185791.40325048
],
[
3583338.73406628,
-4330129.03784533
],
[
3500005.36187875,
-4474466.67244017
],
[
3333338.6175037,
-4474466.67244017
],
[
3250005.24531617,
-4330129.03784533
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}