def test_reproject_multi_point(): feature = { "type": "Feature", "geometry": { "type": "MultiPoint", "coordinates": [[100.0, 0.0], [101.0, 1.0]] } } assert etl2osm.reproject(feature, epsg, epsg) == feature assert etl2osm.reproject(feature, wkt, epsg) == feature assert etl2osm.reproject(feature, wkt, wkt) == feature assert etl2osm.reproject(feature, epsg, wkt) == feature
def test_reproject_linestring(): feature = { "type": "Feature", "geometry": { "type": "LineString", "coordinates": [[100.0, 0.0], [101.0, 1.0]] } } assert etl2osm.reproject(feature, epsg, epsg) == feature assert etl2osm.reproject(feature, wkt, epsg) == feature assert etl2osm.reproject(feature, wkt, wkt) == feature assert etl2osm.reproject(feature, epsg, wkt) == feature
def test_reproject_polygon(): feature = { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]] ] } } assert etl2osm.reproject(feature, epsg, epsg) == feature assert etl2osm.reproject(feature, wkt, epsg) == feature assert etl2osm.reproject(feature, wkt, wkt) == feature assert etl2osm.reproject(feature, epsg, wkt) == feature
def test_reproject_point(): feature = { "type": "Feature", "geometry": { "type": "Point", "coordinates": [100.0, 0.5] } } assert etl2osm.reproject(feature, epsg, epsg) == feature assert etl2osm.reproject(feature, wkt, epsg) == feature assert etl2osm.reproject(feature, wkt, wkt) == feature assert etl2osm.reproject(feature, epsg, wkt) == feature assert etl2osm.reproject(feature, crs, epsg) == feature assert etl2osm.reproject(feature, crs, wkt) == feature assert etl2osm.reproject(feature, crs, crs) == feature