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