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

{
    "features": [
        {
            "properties": {
                "pk": "441073"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5499998.83437418,
                                -7649894.63352674
                            ],
                            [
                                -5416665.46218666,
                                -7505556.9989319
                            ],
                            [
                                -5249998.7178116,
                                -7505556.9989319
                            ],
                            [
                                -5166665.34562408,
                                -7649894.63352674
                            ],
                            [
                                -5249998.7178116,
                                -7794232.26812159
                            ],
                            [
                                -5416665.46218666,
                                -7794232.26812159
                            ],
                            [
                                -5499998.83437418,
                                -7649894.63352674
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441183"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4999998.60124902,
                                -7649894.63352674
                            ],
                            [
                                -4916665.22906149,
                                -7505556.9989319
                            ],
                            [
                                -4749998.48468644,
                                -7505556.9989319
                            ],
                            [
                                -4666665.11249891,
                                -7649894.63352674
                            ],
                            [
                                -4749998.48468644,
                                -7794232.26812159
                            ],
                            [
                                -4916665.22906149,
                                -7794232.26812159
                            ],
                            [
                                -4999998.60124902,
                                -7649894.63352674
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443486"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5250006.17781682,
                                6350855.92217315
                            ],
                            [
                                5333339.55000435,
                                6495193.55676799
                            ],
                            [
                                5500006.2943794,
                                6495193.55676799
                            ],
                            [
                                5583339.66656693,
                                6350855.92217315
                            ],
                            [
                                5500006.2943794,
                                6206518.2875783
                            ],
                            [
                                5333339.55000435,
                                6206518.2875783
                            ],
                            [
                                5250006.17781682,
                                6350855.92217315
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443542"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5500006.2943794,
                                6495193.55676799
                            ],
                            [
                                5583339.66656693,
                                6639531.19136284
                            ],
                            [
                                5750006.41094199,
                                6639531.19136284
                            ],
                            [
                                5833339.78312951,
                                6495193.55676799
                            ],
                            [
                                5750006.41094199,
                                6350855.92217315
                            ],
                            [
                                5583339.66656693,
                                6350855.92217315
                            ],
                            [
                                5500006.2943794,
                                6495193.55676799
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443597"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5750006.41094199,
                                6639531.19136284
                            ],
                            [
                                5833339.78312951,
                                6783868.82595768
                            ],
                            [
                                6000006.52750457,
                                6783868.82595768
                            ],
                            [
                                6083339.89969209,
                                6639531.19136284
                            ],
                            [
                                6000006.52750457,
                                6495193.55676799
                            ],
                            [
                                5833339.78312951,
                                6495193.55676799
                            ],
                            [
                                5750006.41094199,
                                6639531.19136284
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443653"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6000006.52750457,
                                6783868.82595768
                            ],
                            [
                                6083339.89969209,
                                6928206.46055252
                            ],
                            [
                                6250006.64406715,
                                6928206.46055252
                            ],
                            [
                                6333340.01625468,
                                6783868.82595768
                            ],
                            [
                                6250006.64406715,
                                6639531.19136284
                            ],
                            [
                                6083339.89969209,
                                6639531.19136284
                            ],
                            [
                                6000006.52750457,
                                6783868.82595768
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443756"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6500006.76062973,
                                4763141.94162986
                            ],
                            [
                                6583340.13281726,
                                4907479.57622471
                            ],
                            [
                                6750006.87719231,
                                4907479.57622471
                            ],
                            [
                                6833340.24937984,
                                4763141.94162986
                            ],
                            [
                                6750006.87719231,
                                4618804.30703502
                            ],
                            [
                                6583340.13281726,
                                4618804.30703502
                            ],
                            [
                                6500006.76062973,
                                4763141.94162986
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443764"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6500006.76062973,
                                7072544.09514737
                            ],
                            [
                                6583340.13281726,
                                7216881.72974221
                            ],
                            [
                                6750006.87719231,
                                7216881.72974221
                            ],
                            [
                                6833340.24937984,
                                7072544.09514737
                            ],
                            [
                                6750006.87719231,
                                6928206.46055252
                            ],
                            [
                                6583340.13281726,
                                6928206.46055252
                            ],
                            [
                                6500006.76062973,
                                7072544.09514737
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443809"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6750006.87719231,
                                4330129.03784533
                            ],
                            [
                                6833340.24937984,
                                4474466.67244017
                            ],
                            [
                                7000006.99375489,
                                4474466.67244017
                            ],
                            [
                                7083340.36594242,
                                4330129.03784533
                            ],
                            [
                                7000006.99375489,
                                4185791.40325048
                            ],
                            [
                                6833340.24937984,
                                4185791.40325048
                            ],
                            [
                                6750006.87719231,
                                4330129.03784533
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443810"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6750006.87719231,
                                4618804.30703502
                            ],
                            [
                                6833340.24937984,
                                4763141.94162986
                            ],
                            [
                                7000006.99375489,
                                4763141.94162986
                            ],
                            [
                                7083340.36594242,
                                4618804.30703502
                            ],
                            [
                                7000006.99375489,
                                4474466.67244017
                            ],
                            [
                                6833340.24937984,
                                4474466.67244017
                            ],
                            [
                                6750006.87719231,
                                4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443811"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6750006.87719231,
                                4907479.57622471
                            ],
                            [
                                6833340.24937984,
                                5051817.21081955
                            ],
                            [
                                7000006.99375489,
                                5051817.21081955
                            ],
                            [
                                7083340.36594242,
                                4907479.57622471
                            ],
                            [
                                7000006.99375489,
                                4763141.94162986
                            ],
                            [
                                6833340.24937984,
                                4763141.94162986
                            ],
                            [
                                6750006.87719231,
                                4907479.57622471
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443817"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6750006.87719231,
                                6639531.19136284
                            ],
                            [
                                6833340.24937984,
                                6783868.82595768
                            ],
                            [
                                7000006.99375489,
                                6783868.82595768
                            ],
                            [
                                7083340.36594242,
                                6639531.19136284
                            ],
                            [
                                7000006.99375489,
                                6495193.55676799
                            ],
                            [
                                6833340.24937984,
                                6495193.55676799
                            ],
                            [
                                6750006.87719231,
                                6639531.19136284
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443818"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6750006.87719231,
                                6928206.46055252
                            ],
                            [
                                6833340.24937984,
                                7072544.09514737
                            ],
                            [
                                7000006.99375489,
                                7072544.09514737
                            ],
                            [
                                7083340.36594242,
                                6928206.46055252
                            ],
                            [
                                7000006.99375489,
                                6783868.82595768
                            ],
                            [
                                6833340.24937984,
                                6783868.82595768
                            ],
                            [
                                6750006.87719231,
                                6928206.46055252
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443866"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                7000006.99375489,
                                4763141.94162986
                            ],
                            [
                                7083340.36594242,
                                4907479.57622471
                            ],
                            [
                                7250007.11031748,
                                4907479.57622471
                            ],
                            [
                                7333340.482505,
                                4763141.94162986
                            ],
                            [
                                7250007.11031748,
                                4618804.30703502
                            ],
                            [
                                7083340.36594242,
                                4618804.30703502
                            ],
                            [
                                7000006.99375489,
                                4763141.94162986
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443873"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                7000006.99375489,
                                6783868.82595768
                            ],
                            [
                                7083340.36594242,
                                6928206.46055252
                            ],
                            [
                                7250007.11031748,
                                6928206.46055252
                            ],
                            [
                                7333340.482505,
                                6783868.82595768
                            ],
                            [
                                7250007.11031748,
                                6639531.19136284
                            ],
                            [
                                7083340.36594242,
                                6639531.19136284
                            ],
                            [
                                7000006.99375489,
                                6783868.82595768
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443874"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                7000006.99375489,
                                7072544.09514737
                            ],
                            [
                                7083340.36594242,
                                7216881.72974221
                            ],
                            [
                                7250007.11031748,
                                7216881.72974221
                            ],
                            [
                                7333340.482505,
                                7072544.09514737
                            ],
                            [
                                7250007.11031748,
                                6928206.46055252
                            ],
                            [
                                7083340.36594242,
                                6928206.46055252
                            ],
                            [
                                7000006.99375489,
                                7072544.09514737
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}