public Geometry Transform(Geometry geometry) { geometry = WayFilterWithNodeCleanup.Transform(geometry, w => !(w.Tags.ContainsKey("boundary") && w.Tags["boundary"] == "administrative")); var newRelations = geometry.Relations.Where(w => !(w.Tags.ContainsKey("boundary") && w.Tags["boundary"] == "administrative")); return(new Geometry(geometry.Nodes, geometry.Ways, newRelations.ToArray())); }
public Geometry Transform(Geometry geometry) { bool f(Way w) => (w.FootTraffic() || w.Tags.ContainsKey("highway") || w.IsParkingLot()) && !(w.Tags.ContainsKey("service") && w.Tags["service"] == "parking_aisle") || w.Id == "42108700"; var g = _reverse ? w => !f(w) : (Func <Way, bool>)f; return(WayFilterWithNodeCleanup.Transform(geometry, g)); }
public Geometry Transform(Geometry geometry) { return(WayFilterWithNodeCleanup.Transform(geometry, w => !(w.Tags.ContainsKey("building") || (w.Tags.ContainsKey("amenity") && w.Tags["amenity"] == "school")))); }
public Geometry Transform(Geometry geometry) { Func <Way, bool> f = w => !(w.Tags.ContainsKey("service") && w.Tags["service"] == "driveway" && w.Tags.ContainsKey("access") && w.Tags["access"] == "private"); return(WayFilterWithNodeCleanup.Transform(geometry, f)); }
public Geometry Transform(Geometry geometry) { return(WayFilterWithNodeCleanup.Transform(geometry, w => !(w.Tags.ContainsKey("location") && w.Tags["location"] == "underground"))); }
public Geometry Transform(Geometry geometry) { return(WayFilterWithNodeCleanup.Transform(geometry, w => !w.IsParkingAisle())); }