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

{
    "features": [
        {
            "properties": {
                "pk": "442344"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -5773505.38379377
                            ],
                            [
                                333337.218752719,
                                -5629167.74919892
                            ],
                            [
                                500003.963127773,
                                -5629167.74919892
                            ],
                            [
                                583337.3353153,
                                -5773505.38379377
                            ],
                            [
                                500003.963127773,
                                -5917843.01838861
                            ],
                            [
                                333337.218752719,
                                -5917843.01838861
                            ],
                            [
                                250003.846565192,
                                -5773505.38379377
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442728"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2000004.66250326,
                                -6206518.2875783
                            ],
                            [
                                2083338.03469079,
                                -6062180.65298346
                            ],
                            [
                                2250004.77906584,
                                -6062180.65298346
                            ],
                            [
                                2333338.15125337,
                                -6206518.2875783
                            ],
                            [
                                2250004.77906584,
                                -6350855.92217315
                            ],
                            [
                                2083338.03469079,
                                -6350855.92217315
                            ],
                            [
                                2000004.66250326,
                                -6206518.2875783
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442898"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                -4618804.30703502
                            ],
                            [
                                2833338.38437853,
                                -4474466.67244017
                            ],
                            [
                                3000005.12875359,
                                -4474466.67244017
                            ],
                            [
                                3083338.50094112,
                                -4618804.30703502
                            ],
                            [
                                3000005.12875359,
                                -4763141.94162986
                            ],
                            [
                                2833338.38437853,
                                -4763141.94162986
                            ],
                            [
                                2750005.01219101,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442949"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3000005.12875359,
                                -5917843.01838861
                            ],
                            [
                                3083338.50094112,
                                -5773505.38379377
                            ],
                            [
                                3250005.24531617,
                                -5773505.38379377
                            ],
                            [
                                3333338.6175037,
                                -5917843.01838861
                            ],
                            [
                                3250005.24531617,
                                -6062180.65298346
                            ],
                            [
                                3083338.50094112,
                                -6062180.65298346
                            ],
                            [
                                3000005.12875359,
                                -5917843.01838861
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443001"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3250005.24531617,
                                -6639531.19136284
                            ],
                            [
                                3333338.6175037,
                                -6495193.55676799
                            ],
                            [
                                3500005.36187875,
                                -6495193.55676799
                            ],
                            [
                                3583338.73406628,
                                -6639531.19136284
                            ],
                            [
                                3500005.36187875,
                                -6783868.82595768
                            ],
                            [
                                3333338.6175037,
                                -6783868.82595768
                            ],
                            [
                                3250005.24531617,
                                -6639531.19136284
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443006"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3250005.24531617,
                                -5196154.84541439
                            ],
                            [
                                3333338.6175037,
                                -5051817.21081955
                            ],
                            [
                                3500005.36187875,
                                -5051817.21081955
                            ],
                            [
                                3583338.73406628,
                                -5196154.84541439
                            ],
                            [
                                3500005.36187875,
                                -5340492.48000924
                            ],
                            [
                                3333338.6175037,
                                -5340492.48000924
                            ],
                            [
                                3250005.24531617,
                                -5196154.84541439
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443060"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3500005.36187875,
                                -5629167.74919892
                            ],
                            [
                                3583338.73406628,
                                -5484830.11460408
                            ],
                            [
                                3750005.47844133,
                                -5484830.11460408
                            ],
                            [
                                3833338.85062886,
                                -5629167.74919892
                            ],
                            [
                                3750005.47844133,
                                -5773505.38379377
                            ],
                            [
                                3583338.73406628,
                                -5773505.38379377
                            ],
                            [
                                3500005.36187875,
                                -5629167.74919892
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443062"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3500005.36187875,
                                -5051817.21081955
                            ],
                            [
                                3583338.73406628,
                                -4907479.5762247
                            ],
                            [
                                3750005.47844133,
                                -4907479.5762247
                            ],
                            [
                                3833338.85062886,
                                -5051817.21081955
                            ],
                            [
                                3750005.47844133,
                                -5196154.84541439
                            ],
                            [
                                3583338.73406628,
                                -5196154.84541439
                            ],
                            [
                                3500005.36187875,
                                -5051817.21081955
                            ]
                        ]
                    ]
                ],
                "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": "443392"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5000006.06125424,
                                -5051817.21081955
                            ],
                            [
                                5083339.43344177,
                                -4907479.5762247
                            ],
                            [
                                5250006.17781682,
                                -4907479.5762247
                            ],
                            [
                                5333339.55000435,
                                -5051817.21081955
                            ],
                            [
                                5250006.17781682,
                                -5196154.84541439
                            ],
                            [
                                5083339.43344177,
                                -5196154.84541439
                            ],
                            [
                                5000006.06125424,
                                -5051817.21081955
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443564"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5750006.41094199,
                                -2886752.69189688
                            ],
                            [
                                5833339.78312951,
                                -2742415.05730204
                            ],
                            [
                                6000006.52750457,
                                -2742415.05730204
                            ],
                            [
                                6083339.89969209,
                                -2886752.69189688
                            ],
                            [
                                6000006.52750457,
                                -3031090.32649173
                            ],
                            [
                                5833339.78312951,
                                -3031090.32649173
                            ],
                            [
                                5750006.41094199,
                                -2886752.69189688
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443664"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6250006.64406715,
                                -5773505.38379377
                            ],
                            [
                                6333340.01625468,
                                -5629167.74919892
                            ],
                            [
                                6500006.76062973,
                                -5629167.74919892
                            ],
                            [
                                6583340.13281726,
                                -5773505.38379377
                            ],
                            [
                                6500006.76062973,
                                -5917843.01838861
                            ],
                            [
                                6333340.01625468,
                                -5917843.01838861
                            ],
                            [
                                6250006.64406715,
                                -5773505.38379377
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443720"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6500006.76062973,
                                -5629167.74919892
                            ],
                            [
                                6583340.13281726,
                                -5484830.11460408
                            ],
                            [
                                6750006.87719231,
                                -5484830.11460408
                            ],
                            [
                                6833340.24937984,
                                -5629167.74919892
                            ],
                            [
                                6750006.87719231,
                                -5773505.38379377
                            ],
                            [
                                6583340.13281726,
                                -5773505.38379377
                            ],
                            [
                                6500006.76062973,
                                -5629167.74919892
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}