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

{
    "features": [
        {
            "properties": {
                "pk": "442235"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                -5484830.11460408
                            ],
                            [
                                -166663.014372444,
                                -5340492.48000924
                            ],
                            [
                                3.73000261001289,
                                -5340492.48000924
                            ],
                            [
                                83337.1021901372,
                                -5484830.11460408
                            ],
                            [
                                3.73000261001289,
                                -5629167.74919892
                            ],
                            [
                                -166663.014372444,
                                -5629167.74919892
                            ],
                            [
                                -249996.386559972,
                                -5484830.11460408
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442236"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                -5196154.84541439
                            ],
                            [
                                -166663.014372444,
                                -5051817.21081955
                            ],
                            [
                                3.73000261001289,
                                -5051817.21081955
                            ],
                            [
                                83337.1021901372,
                                -5196154.84541439
                            ],
                            [
                                3.73000261001289,
                                -5340492.48000924
                            ],
                            [
                                -166663.014372444,
                                -5340492.48000924
                            ],
                            [
                                -249996.386559972,
                                -5196154.84541439
                            ]
                        ]
                    ]
                ],
                "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": "442238"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                -4618804.30703502
                            ],
                            [
                                -166663.014372444,
                                -4474466.67244017
                            ],
                            [
                                3.73000261001289,
                                -4474466.67244017
                            ],
                            [
                                83337.1021901372,
                                -4618804.30703502
                            ],
                            [
                                3.73000261001289,
                                -4763141.94162986
                            ],
                            [
                                -166663.014372444,
                                -4763141.94162986
                            ],
                            [
                                -249996.386559972,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442294"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                -4474466.67244017
                            ],
                            [
                                83337.1021901372,
                                -4330129.03784533
                            ],
                            [
                                250003.846565192,
                                -4330129.03784533
                            ],
                            [
                                333337.218752719,
                                -4474466.67244017
                            ],
                            [
                                250003.846565192,
                                -4618804.30703502
                            ],
                            [
                                83337.1021901372,
                                -4618804.30703502
                            ],
                            [
                                3.73000261001289,
                                -4474466.67244017
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442403"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                500003.963127773,
                                -4763141.94162986
                            ],
                            [
                                583337.3353153,
                                -4618804.30703502
                            ],
                            [
                                750004.079690354,
                                -4618804.30703502
                            ],
                            [
                                833337.451877881,
                                -4763141.94162986
                            ],
                            [
                                750004.079690354,
                                -4907479.5762247
                            ],
                            [
                                583337.3353153,
                                -4907479.5762247
                            ],
                            [
                                500003.963127773,
                                -4763141.94162986
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442459"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                750004.079690354,
                                -4330129.03784533
                            ],
                            [
                                833337.451877881,
                                -4185791.40325048
                            ],
                            [
                                1000004.19625294,
                                -4185791.40325048
                            ],
                            [
                                1083337.56844046,
                                -4330129.03784533
                            ],
                            [
                                1000004.19625294,
                                -4474466.67244017
                            ],
                            [
                                833337.451877881,
                                -4474466.67244017
                            ],
                            [
                                750004.079690354,
                                -4330129.03784533
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442509"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                -5917843.01838861
                            ],
                            [
                                1083337.56844046,
                                -5773505.38379377
                            ],
                            [
                                1250004.31281552,
                                -5773505.38379377
                            ],
                            [
                                1333337.68500304,
                                -5917843.01838861
                            ],
                            [
                                1250004.31281552,
                                -6062180.65298346
                            ],
                            [
                                1083337.56844046,
                                -6062180.65298346
                            ],
                            [
                                1000004.19625294,
                                -5917843.01838861
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442571"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                -3752778.49946595
                            ],
                            [
                                1333337.68500304,
                                -3608440.86487111
                            ],
                            [
                                1500004.4293781,
                                -3608440.86487111
                            ],
                            [
                                1583337.80156563,
                                -3752778.49946595
                            ],
                            [
                                1500004.4293781,
                                -3897116.13406079
                            ],
                            [
                                1333337.68500304,
                                -3897116.13406079
                            ],
                            [
                                1250004.31281552,
                                -3752778.49946595
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442927"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                3752778.49946595
                            ],
                            [
                                2833338.38437853,
                                3897116.13406079
                            ],
                            [
                                3000005.12875359,
                                3897116.13406079
                            ],
                            [
                                3083338.50094112,
                                3752778.49946595
                            ],
                            [
                                3000005.12875359,
                                3608440.86487111
                            ],
                            [
                                2833338.38437853,
                                3608440.86487111
                            ],
                            [
                                2750005.01219101,
                                3752778.49946595
                            ]
                        ]
                    ]
                ],
                "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"
            }
        },
        {
            "properties": {
                "pk": "443092"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3500005.36187875,
                                3608440.86487111
                            ],
                            [
                                3583338.73406628,
                                3752778.49946595
                            ],
                            [
                                3750005.47844133,
                                3752778.49946595
                            ],
                            [
                                3833338.85062886,
                                3608440.86487111
                            ],
                            [
                                3750005.47844133,
                                3464103.23027626
                            ],
                            [
                                3583338.73406628,
                                3464103.23027626
                            ],
                            [
                                3500005.36187875,
                                3608440.86487111
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443145"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3750005.47844133,
                                3175427.96108657
                            ],
                            [
                                3833338.85062886,
                                3319765.59568142
                            ],
                            [
                                4000005.59500391,
                                3319765.59568142
                            ],
                            [
                                4083338.96719144,
                                3175427.96108657
                            ],
                            [
                                4000005.59500391,
                                3031090.32649173
                            ],
                            [
                                3833338.85062886,
                                3031090.32649173
                            ],
                            [
                                3750005.47844133,
                                3175427.96108657
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443196"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4000005.59500391,
                                1876389.24973297
                            ],
                            [
                                4083338.96719144,
                                2020726.88432782
                            ],
                            [
                                4250005.7115665,
                                2020726.88432782
                            ],
                            [
                                4333339.08375402,
                                1876389.24973297
                            ],
                            [
                                4250005.7115665,
                                1732051.61513813
                            ],
                            [
                                4083338.96719144,
                                1732051.61513813
                            ],
                            [
                                4000005.59500391,
                                1876389.24973297
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443251"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4250005.7115665,
                                2020726.88432782
                            ],
                            [
                                4333339.08375402,
                                2165064.51892266
                            ],
                            [
                                4500005.82812908,
                                2165064.51892266
                            ],
                            [
                                4583339.2003166,
                                2020726.88432782
                            ],
                            [
                                4500005.82812908,
                                1876389.24973297
                            ],
                            [
                                4333339.08375402,
                                1876389.24973297
                            ],
                            [
                                4250005.7115665,
                                2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}