Skip to content

Commit 262e153

Browse files
committed
Upate examples for API changes
1 parent 707595d commit 262e153

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/src/main/scala/example/ColorRamp.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ object ColorRamp extends org.geoscript.feature.GeoCrunch {
3737
filter = "%s BETWEEN %f AND %f".format(propertyName, min, max)
3838
} yield
3939
Fill(hex(color)) where cql(filter)
40-
rules reduce (_ and _)
40+
(rules reduce (_ and _)).underlying
4141
}
4242
}

examples/src/main/scala/example/Render.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.geoscript.example
22

33
object Render extends App {
4-
import org.geoscript._, render.{ Content, draw, png }
4+
import org.geoscript._, render._
55

66
def reference(e: org.geoscript.geometry.Envelope, p: projection.Projection) =
77
new org.geotools.geometry.jts.ReferencedEnvelope(e, p)
@@ -15,7 +15,7 @@ object Render extends App {
1515
val theme = style.CSS.fromFile(styleFile)
1616
val bounds = reference(states.envelope, projection.Projection("EPSG:4326"))
1717
val win = new org.geoscript.render.Window
18-
draw(Content(states, theme), bounds, win)
18+
draw(Content(states, theme), Stretch(bounds), win)
1919

2020
val watcher = new actors.DaemonActor {
2121
val styleFile = new java.io.File("../geocss/src/test/resources/states.css")
@@ -26,7 +26,7 @@ object Render extends App {
2626
if (updated < lastModified) {
2727
try {
2828
val theme = style.CSS.fromFile("../geocss/src/test/resources/states.css")
29-
draw(Content(states, theme), bounds, win)
29+
draw(Content(states, theme), Stretch(bounds), win)
3030
} catch {
3131
case _ => ()
3232
}

0 commit comments

Comments
 (0)