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()));
        }
Example #2
0
        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));
        }
Example #3
0
 public Geometry Transform(Geometry geometry)
 {
     return(WayFilterWithNodeCleanup.Transform(geometry, w => !(w.Tags.ContainsKey("building") || (w.Tags.ContainsKey("amenity") && w.Tags["amenity"] == "school"))));
 }
Example #4
0
        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));
        }
Example #5
0
 public Geometry Transform(Geometry geometry)
 {
     return(WayFilterWithNodeCleanup.Transform(geometry, w => !(w.Tags.ContainsKey("location") && w.Tags["location"] == "underground")));
 }
Example #6
0
 public Geometry Transform(Geometry geometry)
 {
     return(WayFilterWithNodeCleanup.Transform(geometry, w => !w.IsParkingAisle()));
 }