def test_format_coordinates():
    '\n    Asserts that coordinates of a MultiPolygon are concerted correctly\n    :return:\n    '
    bpolys = geojson.FeatureCollection([{'type': 'Feature', 'geometry': {'coordinates': [[[[13, 51], [13, 51.1], [13.1, 51.1], [13.1, 51], [13, 51]], [[13, 51], [14, 51.1], [14.1, 51.1], [14.1, 51], [14, 51]]]], 'type': 'MultiPolygon'}}])
    time = '2018-01-01'
    keys = ['landuse']
    values = ['grass']
    client = ohsome.OhsomeClient()
    response = client.elements.geometry.post(bpolys=ohsome.format_coordinates(bpolys), time=time, keys=keys, values=values)
    result = response.as_geodataframe()
    del client
    assert (len(result.geometry) == 74)
Asserts that coordinates of a MultiPolygon are concerted correctly
:return:
def test_format_coordinates():
    '\n    Asserts that coordinates of a MultiPolygon are concerted correctly\n    :return:\n    '
    bpolys = geojson.FeatureCollection([{'type': 'Feature', 'geometry': {'coordinates': [[[[13, 51], [13, 51.1], [13.1, 51.1], [13.1, 51], [13, 51]], [[13, 51], [14, 51.1], [14.1, 51.1], [14.1, 51], [14, 51]]]], 'type': 'MultiPolygon'}}])
    time = '2018-01-01'
    keys = ['landuse']
    values = ['grass']
    client = ohsome.OhsomeClient()
    response = client.elements.geometry.post(bpolys=ohsome.format_coordinates(bpolys), time=time, keys=keys, values=values)
    result = response.as_geodataframe()
    del client
    assert (len(result.geometry) == 74)