@@ -34,4 +34,48 @@ void busStop() {
34
34
0
35
35
)));
36
36
}
37
+
38
+ @ Test
39
+ void allotments () {
40
+ // this test shows two list elements because we're running against the whole profile, which means we're getting
41
+ // results form multiple layer classes. This may mean the test breaks when other layer classes are changed.
42
+ assertFeatures (15 ,
43
+ List .of (Map .of ("pmap:kind" , "allotments" ),
44
+ Map .of ("pmap:kind" , "allotments" , "pmap:min_zoom" , 16 , "name" , "Kleingartenverein Kartoffel" )),
45
+ process (SimpleFeature .create (
46
+ newPolygon (0 , 0 , 0 , 1 , 1 , 1 , 1 , 0 , 0 , 0 ),
47
+ new HashMap <>(Map .of ("landuse" , "allotments" , "name" , "Kleingartenverein Kartoffel" )),
48
+ "osm" ,
49
+ null ,
50
+ 0
51
+ )));
52
+ }
53
+
54
+ @ Test
55
+ void villageGreen () {
56
+ assertFeatures (15 ,
57
+ List .of (Map .of ("pmap:kind" , "village_green" ),
58
+ Map .of ("pmap:kind" , "village_green" , "pmap:min_zoom" , 8 , "name" , "Stadtpark Eiche" )),
59
+ process (SimpleFeature .create (
60
+ newPolygon (0 , 0 , 0 , 1 , 1 , 1 , 1 , 0 , 0 , 0 ),
61
+ new HashMap <>(Map .of ("landuse" , "village_green" , "name" , "Stadtpark Eiche" )),
62
+ "osm" ,
63
+ null ,
64
+ 0
65
+ )));
66
+ }
67
+
68
+ @ Test
69
+ void playground () {
70
+ assertFeatures (15 ,
71
+ List .of (Map .of ("pmap:kind" , "playground" ),
72
+ Map .of ("pmap:kind" , "playground" , "pmap:min_zoom" , 18 , "name" , "Spielwiese" )),
73
+ process (SimpleFeature .create (
74
+ newPolygon (0 , 0 , 0 , 1 , 1 , 1 , 1 , 0 , 0 , 0 ),
75
+ new HashMap <>(Map .of ("leisure" , "playground" , "name" , "Spielwiese" )),
76
+ "osm" ,
77
+ null ,
78
+ 0
79
+ )));
80
+ }
37
81
}
0 commit comments