File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
main/scala/org/geoscript/geocss
scala/org/geoscript/geocss Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,13 @@ class Translator(val baseURL: Option[java.net.URL]) {
55
55
56
56
val gtPolygonVendorOpts = Seq (
57
57
" -gt-graphic-margin" -> " graphic-margin" ,
58
- " -gt-fill-label-obstacle" -> " labelObstacle"
58
+ " -gt-fill-label-obstacle" -> " labelObstacle" ,
59
+ " -gt-fill-random" -> " random" ,
60
+ " -gt-fill-random-seed" -> " random-seed" ,
61
+ " -gt-fill-random-tile-size" -> " random-tile-size" ,
62
+ " -gt-fill-random-symbol-count" -> " random-symbol-count" ,
63
+ " -gt-fill-random-space-around" -> " random-space-around" ,
64
+ " -gt-fill-random-rotation" -> " random-rotation"
59
65
)
60
66
61
67
val gtPointVendorOpts = Seq (
Original file line number Diff line number Diff line change 5
5
fill : red;
6
6
-gt-fill-label-obstacle : true;
7
7
-gt-graphic-margin : 10 20 40 30 ;
8
+ -gt-fill-random : grid;
9
+ -gt-fill-random-seed : 125 ;
10
+ -gt-fill-random-tile-size : 128 ;
11
+ -gt-fill-random-symbol-count : 15 ;
12
+ -gt-fill-random-space-around : 3 ;
13
+ -gt-fill-random-rotation : free;
14
+
8
15
}
Original file line number Diff line number Diff line change @@ -202,6 +202,11 @@ class SLDTest extends FunSuite with ShouldMatchers {
202
202
val vendor = getVendorOption(vendorOptions)_;
203
203
vendor(" labelObstacle" ) should be(Some (" true" ))
204
204
vendor(" graphic-margin" ) should be(Some (" 10 20 40 30" ))
205
+ vendor(" random" ) should be(Some (" grid" ))
206
+ vendor(" random-seed" ) should be(Some (" 125" ))
207
+ vendor(" random-tile-size" ) should be(Some (" 128" ))
208
+ vendor(" random-space-around" ) should be(Some (" 3" ))
209
+ vendor(" random-rotation" ) should be(Some (" free" ))
205
210
}
206
211
207
212
test(" GeoTools point vendor options should be passed through" ) {
You can’t perform that action at this time.
0 commit comments