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

{
    "features": [
        {
            "properties": {
                "pk": "441114"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5499998.83437418,
                                4185791.40325048
                            ],
                            [
                                -5416665.46218666,
                                4330129.03784533
                            ],
                            [
                                -5249998.7178116,
                                4330129.03784533
                            ],
                            [
                                -5166665.34562408,
                                4185791.40325048
                            ],
                            [
                                -5249998.7178116,
                                4041453.76865564
                            ],
                            [
                                -5416665.46218666,
                                4041453.76865564
                            ],
                            [
                                -5499998.83437418,
                                4185791.40325048
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441328"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4499998.36812386,
                                2453739.78811235
                            ],
                            [
                                -4416664.99593633,
                                2598077.4227072
                            ],
                            [
                                -4249998.25156128,
                                2598077.4227072
                            ],
                            [
                                -4166664.87937375,
                                2453739.78811235
                            ],
                            [
                                -4249998.25156128,
                                2309402.15351751
                            ],
                            [
                                -4416664.99593633,
                                2309402.15351751
                            ],
                            [
                                -4499998.36812386,
                                2453739.78811235
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441491"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3749998.01843611,
                                2020726.88432782
                            ],
                            [
                                -3666664.64624859,
                                2165064.51892266
                            ],
                            [
                                -3499997.90187353,
                                2165064.51892266
                            ],
                            [
                                -3416664.529686,
                                2020726.88432782
                            ],
                            [
                                -3499997.90187353,
                                1876389.24973297
                            ],
                            [
                                -3666664.64624859,
                                1876389.24973297
                            ],
                            [
                                -3749998.01843611,
                                2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441492"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3749998.01843611,
                                2309402.15351751
                            ],
                            [
                                -3666664.64624859,
                                2453739.78811235
                            ],
                            [
                                -3499997.90187353,
                                2453739.78811235
                            ],
                            [
                                -3416664.529686,
                                2309402.15351751
                            ],
                            [
                                -3499997.90187353,
                                2165064.51892266
                            ],
                            [
                                -3666664.64624859,
                                2165064.51892266
                            ],
                            [
                                -3749998.01843611,
                                2309402.15351751
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441494"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3749998.01843611,
                                2886752.69189689
                            ],
                            [
                                -3666664.64624859,
                                3031090.32649173
                            ],
                            [
                                -3499997.90187353,
                                3031090.32649173
                            ],
                            [
                                -3416664.529686,
                                2886752.69189689
                            ],
                            [
                                -3499997.90187353,
                                2742415.05730204
                            ],
                            [
                                -3666664.64624859,
                                2742415.05730204
                            ],
                            [
                                -3749998.01843611,
                                2886752.69189689
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442237"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                -4907479.5762247
                            ],
                            [
                                -166663.014372444,
                                -4763141.94162986
                            ],
                            [
                                3.73000261001289,
                                -4763141.94162986
                            ],
                            [
                                83337.1021901372,
                                -4907479.5762247
                            ],
                            [
                                3.73000261001289,
                                -5051817.21081955
                            ],
                            [
                                -166663.014372444,
                                -5051817.21081955
                            ],
                            [
                                -249996.386559972,
                                -4907479.5762247
                            ]
                        ]
                    ]
                ],
                "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": "442397"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                500003.963127773,
                                -6495193.55676799
                            ],
                            [
                                583337.3353153,
                                -6350855.92217315
                            ],
                            [
                                750004.079690354,
                                -6350855.92217315
                            ],
                            [
                                833337.451877881,
                                -6495193.55676799
                            ],
                            [
                                750004.079690354,
                                -6639531.19136284
                            ],
                            [
                                583337.3353153,
                                -6639531.19136284
                            ],
                            [
                                500003.963127773,
                                -6495193.55676799
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}