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=2440605
{
"features": [
{
"properties": {
"pk": "440798"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-6749999.41718709,
-7505556.9989319
],
[
-6666666.04499956,
-7361219.36433706
],
[
-6499999.30062451,
-7361219.36433706
],
[
-6416665.92843698,
-7505556.9989319
],
[
-6499999.30062451,
-7649894.63352674
],
[
-6666666.04499956,
-7649894.63352674
],
[
-6749999.41718709,
-7505556.9989319
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441073"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5499998.83437418,
-7649894.63352674
],
[
-5416665.46218666,
-7505556.9989319
],
[
-5249998.7178116,
-7505556.9989319
],
[
-5166665.34562408,
-7649894.63352674
],
[
-5249998.7178116,
-7794232.26812159
],
[
-5416665.46218666,
-7794232.26812159
],
[
-5499998.83437418,
-7649894.63352674
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441074"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5499998.83437418,
-7361219.36433706
],
[
-5416665.46218666,
-7216881.72974221
],
[
-5249998.7178116,
-7216881.72974221
],
[
-5166665.34562408,
-7361219.36433706
],
[
-5249998.7178116,
-7505556.9989319
],
[
-5416665.46218666,
-7505556.9989319
],
[
-5499998.83437418,
-7361219.36433706
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441075"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5499998.83437418,
-7072544.09514737
],
[
-5416665.46218666,
-6928206.46055252
],
[
-5249998.7178116,
-6928206.46055252
],
[
-5166665.34562408,
-7072544.09514737
],
[
-5249998.7178116,
-7216881.72974221
],
[
-5416665.46218666,
-7216881.72974221
],
[
-5499998.83437418,
-7072544.09514737
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441076"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-5499998.83437418,
-6783868.82595768
],
[
-5416665.46218666,
-6639531.19136284
],
[
-5249998.7178116,
-6639531.19136284
],
[
-5166665.34562408,
-6783868.82595768
],
[
-5249998.7178116,
-6928206.46055252
],
[
-5416665.46218666,
-6928206.46055252
],
[
-5499998.83437418,
-6783868.82595768
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "441293"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
-4499998.36812386,
-7649894.63352674
],
[
-4416664.99593633,
-7505556.9989319
],
[
-4249998.25156128,
-7505556.9989319
],
[
-4166664.87937375,
-7649894.63352674
],
[
-4249998.25156128,
-7794232.26812159
],
[
-4416664.99593633,
-7794232.26812159
],
[
-4499998.36812386,
-7649894.63352674
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443431"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
5000006.06125424,
6206518.2875783
],
[
5083339.43344177,
6350855.92217315
],
[
5250006.17781682,
6350855.92217315
],
[
5333339.55000435,
6206518.2875783
],
[
5250006.17781682,
6062180.65298346
],
[
5083339.43344177,
6062180.65298346
],
[
5000006.06125424,
6206518.2875783
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443597"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
5750006.41094199,
6639531.19136284
],
[
5833339.78312951,
6783868.82595768
],
[
6000006.52750457,
6783868.82595768
],
[
6083339.89969209,
6639531.19136284
],
[
6000006.52750457,
6495193.55676799
],
[
5833339.78312951,
6495193.55676799
],
[
5750006.41094199,
6639531.19136284
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443652"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
6000006.52750457,
6495193.55676799
],
[
6083339.89969209,
6639531.19136284
],
[
6250006.64406715,
6639531.19136284
],
[
6333340.01625468,
6495193.55676799
],
[
6250006.64406715,
6350855.92217315
],
[
6083339.89969209,
6350855.92217315
],
[
6000006.52750457,
6495193.55676799
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443653"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
6000006.52750457,
6783868.82595768
],
[
6083339.89969209,
6928206.46055252
],
[
6250006.64406715,
6928206.46055252
],
[
6333340.01625468,
6783868.82595768
],
[
6250006.64406715,
6639531.19136284
],
[
6083339.89969209,
6639531.19136284
],
[
6000006.52750457,
6783868.82595768
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443810"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
6750006.87719231,
4618804.30703502
],
[
6833340.24937984,
4763141.94162986
],
[
7000006.99375489,
4763141.94162986
],
[
7083340.36594242,
4618804.30703502
],
[
7000006.99375489,
4474466.67244017
],
[
6833340.24937984,
4474466.67244017
],
[
6750006.87719231,
4618804.30703502
]
]
]
],
"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"
}
},
{
"properties": {
"pk": "443818"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
6750006.87719231,
6928206.46055252
],
[
6833340.24937984,
7072544.09514737
],
[
7000006.99375489,
7072544.09514737
],
[
7083340.36594242,
6928206.46055252
],
[
7000006.99375489,
6783868.82595768
],
[
6833340.24937984,
6783868.82595768
],
[
6750006.87719231,
6928206.46055252
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443866"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
7000006.99375489,
4763141.94162986
],
[
7083340.36594242,
4907479.57622471
],
[
7250007.11031748,
4907479.57622471
],
[
7333340.482505,
4763141.94162986
],
[
7250007.11031748,
4618804.30703502
],
[
7083340.36594242,
4618804.30703502
],
[
7000006.99375489,
4763141.94162986
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443868"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
7000006.99375489,
5340492.48000924
],
[
7083340.36594242,
5484830.11460408
],
[
7250007.11031748,
5484830.11460408
],
[
7333340.482505,
5340492.48000924
],
[
7250007.11031748,
5196154.84541439
],
[
7083340.36594242,
5196154.84541439
],
[
7000006.99375489,
5340492.48000924
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}