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=4875866
HTTP 200 OK
Allow: OPTIONS, GET
Content-Type: application/json
Vary: Accept

{
    "features": [
        {
            "properties": {
                "pk": "441634"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2999997.66874837,
                                -4474466.67244017
                            ],
                            [
                                -2916664.29656084,
                                -4330129.03784533
                            ],
                            [
                                -2749997.55218579,
                                -4330129.03784533
                            ],
                            [
                                -2666664.17999826,
                                -4474466.67244017
                            ],
                            [
                                -2749997.55218579,
                                -4618804.30703502
                            ],
                            [
                                -2916664.29656084,
                                -4618804.30703502
                            ],
                            [
                                -2999997.66874837,
                                -4474466.67244017
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441798"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2249997.31906062,
                                -4618804.30703502
                            ],
                            [
                                -2166663.9468731,
                                -4474466.67244017
                            ],
                            [
                                -1999997.20249804,
                                -4474466.67244017
                            ],
                            [
                                -1916663.83031052,
                                -4618804.30703502
                            ],
                            [
                                -1999997.20249804,
                                -4763141.94162986
                            ],
                            [
                                -2166663.9468731,
                                -4763141.94162986
                            ],
                            [
                                -2249997.31906062,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442288"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                -6206518.2875783
                            ],
                            [
                                83337.1021901372,
                                -6062180.65298346
                            ],
                            [
                                250003.846565192,
                                -6062180.65298346
                            ],
                            [
                                333337.218752719,
                                -6206518.2875783
                            ],
                            [
                                250003.846565192,
                                -6350855.92217315
                            ],
                            [
                                83337.1021901372,
                                -6350855.92217315
                            ],
                            [
                                3.73000261001289,
                                -6206518.2875783
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442289"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                -5917843.01838861
                            ],
                            [
                                83337.1021901372,
                                -5773505.38379377
                            ],
                            [
                                250003.846565192,
                                -5773505.38379377
                            ],
                            [
                                333337.218752719,
                                -5917843.01838861
                            ],
                            [
                                250003.846565192,
                                -6062180.65298346
                            ],
                            [
                                83337.1021901372,
                                -6062180.65298346
                            ],
                            [
                                3.73000261001289,
                                -5917843.01838861
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442291"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                -5340492.48000924
                            ],
                            [
                                83337.1021901372,
                                -5196154.84541439
                            ],
                            [
                                250003.846565192,
                                -5196154.84541439
                            ],
                            [
                                333337.218752719,
                                -5340492.48000924
                            ],
                            [
                                250003.846565192,
                                -5484830.11460408
                            ],
                            [
                                83337.1021901372,
                                -5484830.11460408
                            ],
                            [
                                3.73000261001289,
                                -5340492.48000924
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442342"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -6350855.92217315
                            ],
                            [
                                333337.218752719,
                                -6206518.2875783
                            ],
                            [
                                500003.963127773,
                                -6206518.2875783
                            ],
                            [
                                583337.3353153,
                                -6350855.92217315
                            ],
                            [
                                500003.963127773,
                                -6495193.55676799
                            ],
                            [
                                333337.218752719,
                                -6495193.55676799
                            ],
                            [
                                250003.846565192,
                                -6350855.92217315
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442343"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -6062180.65298346
                            ],
                            [
                                333337.218752719,
                                -5917843.01838861
                            ],
                            [
                                500003.963127773,
                                -5917843.01838861
                            ],
                            [
                                583337.3353153,
                                -6062180.65298346
                            ],
                            [
                                500003.963127773,
                                -6206518.2875783
                            ],
                            [
                                333337.218752719,
                                -6206518.2875783
                            ],
                            [
                                250003.846565192,
                                -6062180.65298346
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442349"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -4330129.03784533
                            ],
                            [
                                333337.218752719,
                                -4185791.40325048
                            ],
                            [
                                500003.963127773,
                                -4185791.40325048
                            ],
                            [
                                583337.3353153,
                                -4330129.03784533
                            ],
                            [
                                500003.963127773,
                                -4474466.67244017
                            ],
                            [
                                333337.218752719,
                                -4474466.67244017
                            ],
                            [
                                250003.846565192,
                                -4330129.03784533
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442406"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                500003.963127773,
                                -3897116.13406079
                            ],
                            [
                                583337.3353153,
                                -3752778.49946595
                            ],
                            [
                                750004.079690354,
                                -3752778.49946595
                            ],
                            [
                                833337.451877881,
                                -3897116.13406079
                            ],
                            [
                                750004.079690354,
                                -4041453.76865564
                            ],
                            [
                                583337.3353153,
                                -4041453.76865564
                            ],
                            [
                                500003.963127773,
                                -3897116.13406079
                            ]
                        ]
                    ]
                ],
                "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": "442563"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                -6062180.65298346
                            ],
                            [
                                1333337.68500304,
                                -5917843.01838861
                            ],
                            [
                                1500004.4293781,
                                -5917843.01838861
                            ],
                            [
                                1583337.80156563,
                                -6062180.65298346
                            ],
                            [
                                1500004.4293781,
                                -6206518.2875783
                            ],
                            [
                                1333337.68500304,
                                -6206518.2875783
                            ],
                            [
                                1250004.31281552,
                                -6062180.65298346
                            ]
                        ]
                    ]
                ],
                "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": "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": "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": "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": "442951"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3000005.12875359,
                                -5340492.48000924
                            ],
                            [
                                3083338.50094112,
                                -5196154.84541439
                            ],
                            [
                                3250005.24531617,
                                -5196154.84541439
                            ],
                            [
                                3333338.6175037,
                                -5340492.48000924
                            ],
                            [
                                3250005.24531617,
                                -5484830.11460408
                            ],
                            [
                                3083338.50094112,
                                -5484830.11460408
                            ],
                            [
                                3000005.12875359,
                                -5340492.48000924
                            ]
                        ]
                    ]
                ],
                "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"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}