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

{
    "features": [
        {
            "properties": {
                "pk": "441802"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2249997.31906062,
                                -3464103.23027626
                            ],
                            [
                                -2166663.9468731,
                                -3319765.59568142
                            ],
                            [
                                -1999997.20249804,
                                -3319765.59568142
                            ],
                            [
                                -1916663.83031052,
                                -3464103.23027626
                            ],
                            [
                                -1999997.20249804,
                                -3608440.86487111
                            ],
                            [
                                -2166663.9468731,
                                -3608440.86487111
                            ],
                            [
                                -2249997.31906062,
                                -3464103.23027626
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441810"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2249997.31906062,
                                -1154701.07675875
                            ],
                            [
                                -2166663.9468731,
                                -1010363.44216391
                            ],
                            [
                                -1999997.20249804,
                                -1010363.44216391
                            ],
                            [
                                -1916663.83031052,
                                -1154701.07675875
                            ],
                            [
                                -1999997.20249804,
                                -1299038.7113536
                            ],
                            [
                                -2166663.9468731,
                                -1299038.7113536
                            ],
                            [
                                -2249997.31906062,
                                -1154701.07675875
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442095"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -999996.736247716,
                                1587713.98054329
                            ],
                            [
                                -916663.364060189,
                                1732051.61513813
                            ],
                            [
                                -749996.619685135,
                                1732051.61513813
                            ],
                            [
                                -666663.247497608,
                                1587713.98054329
                            ],
                            [
                                -749996.619685135,
                                1443376.34594844
                            ],
                            [
                                -916663.364060189,
                                1443376.34594844
                            ],
                            [
                                -999996.736247716,
                                1587713.98054329
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442151"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -749996.619685135,
                                2020726.88432782
                            ],
                            [
                                -666663.247497608,
                                2165064.51892266
                            ],
                            [
                                -499996.503122553,
                                2165064.51892266
                            ],
                            [
                                -416663.130935026,
                                2020726.88432782
                            ],
                            [
                                -499996.503122553,
                                1876389.24973297
                            ],
                            [
                                -666663.247497608,
                                1876389.24973297
                            ],
                            [
                                -749996.619685135,
                                2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442519"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                -3031090.32649173
                            ],
                            [
                                1083337.56844046,
                                -2886752.69189688
                            ],
                            [
                                1250004.31281552,
                                -2886752.69189688
                            ],
                            [
                                1333337.68500304,
                                -3031090.32649173
                            ],
                            [
                                1250004.31281552,
                                -3175427.96108657
                            ],
                            [
                                1083337.56844046,
                                -3175427.96108657
                            ],
                            [
                                1000004.19625294,
                                -3031090.32649173
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442860"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                144337.634594845
                            ],
                            [
                                2583338.26781595,
                                288675.269189689
                            ],
                            [
                                2750005.01219101,
                                288675.269189689
                            ],
                            [
                                2833338.38437853,
                                144337.634594845
                            ],
                            [
                                2750005.01219101,
                                0.0
                            ],
                            [
                                2583338.26781595,
                                0.0
                            ],
                            [
                                2500004.89562843,
                                144337.634594845
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443071"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3500005.36187875,
                                -2453739.78811235
                            ],
                            [
                                3583338.73406628,
                                -2309402.15351751
                            ],
                            [
                                3750005.47844133,
                                -2309402.15351751
                            ],
                            [
                                3833338.85062886,
                                -2453739.78811235
                            ],
                            [
                                3750005.47844133,
                                -2598077.4227072
                            ],
                            [
                                3583338.73406628,
                                -2598077.4227072
                            ],
                            [
                                3500005.36187875,
                                -2453739.78811235
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443091"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3500005.36187875,
                                3319765.59568142
                            ],
                            [
                                3583338.73406628,
                                3464103.23027626
                            ],
                            [
                                3750005.47844133,
                                3464103.23027626
                            ],
                            [
                                3833338.85062886,
                                3319765.59568142
                            ],
                            [
                                3750005.47844133,
                                3175427.96108657
                            ],
                            [
                                3583338.73406628,
                                3175427.96108657
                            ],
                            [
                                3500005.36187875,
                                3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}