Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion geocss/src/main/scala/org/geoscript/geocss/Translator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ class Translator(val baseURL: Option[java.net.URL]) {

val gtPolygonVendorOpts = Seq(
"-gt-graphic-margin" -> "graphic-margin",
"-gt-fill-label-obstacle" -> "labelObstacle"
"-gt-fill-label-obstacle" -> "labelObstacle",
"-gt-fill-random" -> "random",
"-gt-fill-random-seed" -> "random-seed",
"-gt-fill-random-tile-size" -> "random-tile-size",
"-gt-fill-random-symbol-count" -> "random-symbol-count",
"-gt-fill-random-space-around" -> "random-space-around",
"-gt-fill-random-rotation" -> "random-rotation"
)

val gtPointVendorOpts = Seq(
Expand Down
7 changes: 7 additions & 0 deletions geocss/src/test/resources/gt-poly-opts.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@
fill: red;
-gt-fill-label-obstacle: true;
-gt-graphic-margin: 10 20 40 30;
-gt-fill-random: grid;
-gt-fill-random-seed: 125;
-gt-fill-random-tile-size: 128;
-gt-fill-random-symbol-count: 15;
-gt-fill-random-space-around: 3;
-gt-fill-random-rotation: free;

}
5 changes: 5 additions & 0 deletions geocss/src/test/scala/org/geoscript/geocss/SLDTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ class SLDTest extends FunSuite with ShouldMatchers {
val vendor = getVendorOption(vendorOptions)_;
vendor("labelObstacle") should be(Some("true"))
vendor("graphic-margin") should be(Some("10 20 40 30"))
vendor("random") should be(Some("grid"))
vendor("random-seed") should be(Some("125"))
vendor("random-tile-size") should be(Some("128"))
vendor("random-space-around") should be(Some("3"))
vendor("random-rotation") should be(Some("free"))
}

test("GeoTools point vendor options should be passed through") {
Expand Down