private List <CompleteWay> MergeWaysInRelations(IEnumerable <CompleteRelation> relations, ICollection <CompleteWay> ways) { var waysToKeep = ways.ToList(); foreach (var relation in relations) { foreach (var way in OsmGeoJsonConverter.GetAllWays(relation)) { var wayToRemove = waysToKeep.FirstOrDefault(w => w.Id == way.Id); if (wayToRemove == null) { continue; } MergeTags(way, relation); waysToKeep.Remove(wayToRemove); } } return(waysToKeep); }
public void TestInitialize() { _converter = new OsmGeoJsonConverter(new GeometryFactory()); }
public void TestInitialize() { _converter = new OsmGeoJsonConverter(); }