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

{
    "features": [
        {
            "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": "443173"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4000005.59500391,
                                -4763141.94162986
                            ],
                            [
                                4083338.96719144,
                                -4618804.30703502
                            ],
                            [
                                4250005.7115665,
                                -4618804.30703502
                            ],
                            [
                                4333339.08375402,
                                -4763141.94162986
                            ],
                            [
                                4250005.7115665,
                                -4907479.5762247
                            ],
                            [
                                4083338.96719144,
                                -4907479.5762247
                            ],
                            [
                                4000005.59500391,
                                -4763141.94162986
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443228"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4250005.7115665,
                                -4618804.30703502
                            ],
                            [
                                4333339.08375402,
                                -4474466.67244017
                            ],
                            [
                                4500005.82812908,
                                -4474466.67244017
                            ],
                            [
                                4583339.2003166,
                                -4618804.30703502
                            ],
                            [
                                4500005.82812908,
                                -4763141.94162986
                            ],
                            [
                                4333339.08375402,
                                -4763141.94162986
                            ],
                            [
                                4250005.7115665,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443509"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5500006.2943794,
                                -3031090.32649173
                            ],
                            [
                                5583339.66656693,
                                -2886752.69189688
                            ],
                            [
                                5750006.41094199,
                                -2886752.69189688
                            ],
                            [
                                5833339.78312951,
                                -3031090.32649173
                            ],
                            [
                                5750006.41094199,
                                -3175427.96108657
                            ],
                            [
                                5583339.66656693,
                                -3175427.96108657
                            ],
                            [
                                5500006.2943794,
                                -3031090.32649173
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}