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=4847291
{
"features": [
{
"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": "442458"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
750004.079690354,
-4618804.30703502
],
[
833337.451877881,
-4474466.67244017
],
[
1000004.19625294,
-4474466.67244017
],
[
1083337.56844046,
-4618804.30703502
],
[
1000004.19625294,
-4763141.94162986
],
[
833337.451877881,
-4763141.94162986
],
[
750004.079690354,
-4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442514"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
-4474466.67244017
],
[
1083337.56844046,
-4330129.03784533
],
[
1250004.31281552,
-4330129.03784533
],
[
1333337.68500304,
-4474466.67244017
],
[
1250004.31281552,
-4618804.30703502
],
[
1083337.56844046,
-4618804.30703502
],
[
1000004.19625294,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442516"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
1000004.19625294,
-3897116.13406079
],
[
1083337.56844046,
-3752778.49946595
],
[
1250004.31281552,
-3752778.49946595
],
[
1333337.68500304,
-3897116.13406079
],
[
1250004.31281552,
-4041453.76865564
],
[
1083337.56844046,
-4041453.76865564
],
[
1000004.19625294,
-3897116.13406079
]
]
]
],
"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": "442954"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
-4474466.67244017
],
[
3083338.50094112,
-4330129.03784533
],
[
3250005.24531617,
-4330129.03784533
],
[
3333338.6175037,
-4474466.67244017
],
[
3250005.24531617,
-4618804.30703502
],
[
3083338.50094112,
-4618804.30703502
],
[
3000005.12875359,
-4474466.67244017
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442956"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
-3897116.13406079
],
[
3083338.50094112,
-3752778.49946595
],
[
3250005.24531617,
-3752778.49946595
],
[
3333338.6175037,
-3897116.13406079
],
[
3250005.24531617,
-4041453.76865564
],
[
3083338.50094112,
-4041453.76865564
],
[
3000005.12875359,
-3897116.13406079
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "442957"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3000005.12875359,
-3608440.86487111
],
[
3083338.50094112,
-3464103.23027626
],
[
3250005.24531617,
-3464103.23027626
],
[
3333338.6175037,
-3608440.86487111
],
[
3250005.24531617,
-3752778.49946595
],
[
3083338.50094112,
-3752778.49946595
],
[
3000005.12875359,
-3608440.86487111
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443008"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3250005.24531617,
-4618804.30703502
],
[
3333338.6175037,
-4474466.67244017
],
[
3500005.36187875,
-4474466.67244017
],
[
3583338.73406628,
-4618804.30703502
],
[
3500005.36187875,
-4763141.94162986
],
[
3333338.6175037,
-4763141.94162986
],
[
3250005.24531617,
-4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443063"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3500005.36187875,
-4763141.94162986
],
[
3583338.73406628,
-4618804.30703502
],
[
3750005.47844133,
-4618804.30703502
],
[
3833338.85062886,
-4763141.94162986
],
[
3750005.47844133,
-4907479.5762247
],
[
3583338.73406628,
-4907479.5762247
],
[
3500005.36187875,
-4763141.94162986
]
]
]
],
"type": "MultiPolygon"
}
},
{
"properties": {
"pk": "443118"
},
"type": "Feature",
"geometry": {
"coordinates": [
[
[
[
3750005.47844133,
-4618804.30703502
],
[
3833338.85062886,
-4474466.67244017
],
[
4000005.59500391,
-4474466.67244017
],
[
4083338.96719144,
-4618804.30703502
],
[
4000005.59500391,
-4763141.94162986
],
[
3833338.85062886,
-4763141.94162986
],
[
3750005.47844133,
-4618804.30703502
]
]
]
],
"type": "MultiPolygon"
}
}
],
"crs": {
"type": "name",
"properties": {
"name": "EPSG:3031"
}
},
"type": "FeatureCollection"
}