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

{
    "features": [
        {
            "properties": {
                "pk": "442080"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -999996.736247716,
                                -2742415.05730204
                            ],
                            [
                                -916663.364060189,
                                -2598077.4227072
                            ],
                            [
                                -749996.619685135,
                                -2598077.4227072
                            ],
                            [
                                -666663.247497608,
                                -2742415.05730204
                            ],
                            [
                                -749996.619685135,
                                -2886752.69189688
                            ],
                            [
                                -916663.364060189,
                                -2886752.69189688
                            ],
                            [
                                -999996.736247716,
                                -2742415.05730204
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442239"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                -4330129.03784533
                            ],
                            [
                                -166663.014372444,
                                -4185791.40325048
                            ],
                            [
                                3.73000261001289,
                                -4185791.40325048
                            ],
                            [
                                83337.1021901372,
                                -4330129.03784533
                            ],
                            [
                                3.73000261001289,
                                -4474466.67244017
                            ],
                            [
                                -166663.014372444,
                                -4474466.67244017
                            ],
                            [
                                -249996.386559972,
                                -4330129.03784533
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442408"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                500003.963127773,
                                -3319765.59568142
                            ],
                            [
                                583337.3353153,
                                -3175427.96108657
                            ],
                            [
                                750004.079690354,
                                -3175427.96108657
                            ],
                            [
                                833337.451877881,
                                -3319765.59568142
                            ],
                            [
                                750004.079690354,
                                -3464103.23027626
                            ],
                            [
                                583337.3353153,
                                -3464103.23027626
                            ],
                            [
                                500003.963127773,
                                -3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442514"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                -4474466.67244017
                            ],
                            [
                                1083337.56844046,
                                -4330129.03784533
                            ],
                            [
                                1250004.31281552,
                                -4330129.03784533
                            ],
                            [
                                1333337.68500304,
                                -4474466.67244017
                            ],
                            [
                                1250004.31281552,
                                -4618804.30703502
                            ],
                            [
                                1083337.56844046,
                                -4618804.30703502
                            ],
                            [
                                1000004.19625294,
                                -4474466.67244017
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442517"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                -3608440.86487111
                            ],
                            [
                                1083337.56844046,
                                -3464103.23027626
                            ],
                            [
                                1250004.31281552,
                                -3464103.23027626
                            ],
                            [
                                1333337.68500304,
                                -3608440.86487111
                            ],
                            [
                                1250004.31281552,
                                -3752778.49946595
                            ],
                            [
                                1083337.56844046,
                                -3752778.49946595
                            ],
                            [
                                1000004.19625294,
                                -3608440.86487111
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442540"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                3031090.32649173
                            ],
                            [
                                1083337.56844046,
                                3175427.96108657
                            ],
                            [
                                1250004.31281552,
                                3175427.96108657
                            ],
                            [
                                1333337.68500304,
                                3031090.32649173
                            ],
                            [
                                1250004.31281552,
                                2886752.69189689
                            ],
                            [
                                1083337.56844046,
                                2886752.69189689
                            ],
                            [
                                1000004.19625294,
                                3031090.32649173
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442597"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                3752778.49946595
                            ],
                            [
                                1333337.68500304,
                                3897116.13406079
                            ],
                            [
                                1500004.4293781,
                                3897116.13406079
                            ],
                            [
                                1583337.80156563,
                                3752778.49946595
                            ],
                            [
                                1500004.4293781,
                                3608440.86487111
                            ],
                            [
                                1333337.68500304,
                                3608440.86487111
                            ],
                            [
                                1250004.31281552,
                                3752778.49946595
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442926"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                3464103.23027626
                            ],
                            [
                                2833338.38437853,
                                3608440.86487111
                            ],
                            [
                                3000005.12875359,
                                3608440.86487111
                            ],
                            [
                                3083338.50094112,
                                3464103.23027626
                            ],
                            [
                                3000005.12875359,
                                3319765.59568142
                            ],
                            [
                                2833338.38437853,
                                3319765.59568142
                            ],
                            [
                                2750005.01219101,
                                3464103.23027626
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442972"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3000005.12875359,
                                721688.172974221
                            ],
                            [
                                3083338.50094112,
                                866025.807569066
                            ],
                            [
                                3250005.24531617,
                                866025.807569066
                            ],
                            [
                                3333338.6175037,
                                721688.172974221
                            ],
                            [
                                3250005.24531617,
                                577350.538379378
                            ],
                            [
                                3083338.50094112,
                                577350.538379378
                            ],
                            [
                                3000005.12875359,
                                721688.172974221
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442979"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3000005.12875359,
                                2742415.05730204
                            ],
                            [
                                3083338.50094112,
                                2886752.69189689
                            ],
                            [
                                3250005.24531617,
                                2886752.69189689
                            ],
                            [
                                3333338.6175037,
                                2742415.05730204
                            ],
                            [
                                3250005.24531617,
                                2598077.4227072
                            ],
                            [
                                3083338.50094112,
                                2598077.4227072
                            ],
                            [
                                3000005.12875359,
                                2742415.05730204
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443078"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3500005.36187875,
                                -433012.903784532
                            ],
                            [
                                3583338.73406628,
                                -288675.269189688
                            ],
                            [
                                3750005.47844133,
                                -288675.269189688
                            ],
                            [
                                3833338.85062886,
                                -433012.903784532
                            ],
                            [
                                3750005.47844133,
                                -577350.538379377
                            ],
                            [
                                3583338.73406628,
                                -577350.538379377
                            ],
                            [
                                3500005.36187875,
                                -433012.903784532
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443083"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3500005.36187875,
                                1010363.44216391
                            ],
                            [
                                3583338.73406628,
                                1154701.07675875
                            ],
                            [
                                3750005.47844133,
                                1154701.07675875
                            ],
                            [
                                3833338.85062886,
                                1010363.44216391
                            ],
                            [
                                3750005.47844133,
                                866025.807569066
                            ],
                            [
                                3583338.73406628,
                                866025.807569066
                            ],
                            [
                                3500005.36187875,
                                1010363.44216391
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443087"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3500005.36187875,
                                2165064.51892266
                            ],
                            [
                                3583338.73406628,
                                2309402.15351751
                            ],
                            [
                                3750005.47844133,
                                2309402.15351751
                            ],
                            [
                                3833338.85062886,
                                2165064.51892266
                            ],
                            [
                                3750005.47844133,
                                2020726.88432782
                            ],
                            [
                                3583338.73406628,
                                2020726.88432782
                            ],
                            [
                                3500005.36187875,
                                2165064.51892266
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443137"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3750005.47844133,
                                866025.807569066
                            ],
                            [
                                3833338.85062886,
                                1010363.44216391
                            ],
                            [
                                4000005.59500391,
                                1010363.44216391
                            ],
                            [
                                4083338.96719144,
                                866025.807569066
                            ],
                            [
                                4000005.59500391,
                                721688.172974221
                            ],
                            [
                                3833338.85062886,
                                721688.172974221
                            ],
                            [
                                3750005.47844133,
                                866025.807569066
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443242"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4250005.7115665,
                                -577350.538379377
                            ],
                            [
                                4333339.08375402,
                                -433012.903784532
                            ],
                            [
                                4500005.82812908,
                                -433012.903784532
                            ],
                            [
                                4583339.2003166,
                                -577350.538379377
                            ],
                            [
                                4500005.82812908,
                                -721688.17297422
                            ],
                            [
                                4333339.08375402,
                                -721688.17297422
                            ],
                            [
                                4250005.7115665,
                                -577350.538379377
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}