def test_geotile_grid_aggregation():
    a = aggs.GeotileGrid(**{"field": "centroid", "precision": 3})

    assert {
        "geotile_grid": {
            "field": "centroid",
            "precision": 3
        }
    } == a.to_dict()
示例#2
0
def test_geotile_grid_aggregation():
    a = aggs.GeotileGrid(**{'field': 'centroid', 'precision': 3})

    assert {
        'geotile_grid': {
            'field': 'centroid',
            'precision': 3
        }
    } == a.to_dict()