@@ -610,7 +610,7 @@ class Translator(val baseURL: Option[java.net.URL]) {
610
610
val zGroups : Seq [((Double , Option [OGCExpression ]), (Rule , Seq [gt.Symbolizer ]))] =
611
611
for {
612
612
rule <- cascading2exclusive(overlays)
613
- (z, syms) <- groupByZ (symbolize(rule))
613
+ (z, syms) <- orderedRuns (symbolize(rule))
614
614
} yield ((z, None ), (rule, syms))
615
615
616
616
// In order to ensure minimal output, the conversion requires that like
@@ -696,18 +696,6 @@ class Translator(val baseURL: Option[java.net.URL]) {
696
696
private def orderedRuns [K : Ordering , V ] (xs : Seq [(K , V )]) : Seq [(K , Seq [V ])] =
697
697
runs(xs sortBy(_._1))
698
698
699
- private def groupByZ (syms : Seq [(Double , Symbolizer )])
700
- : Seq [(Double , Seq [Symbolizer ])] = {
701
- // we make a special case for labels; they will be rendered last anyway, so
702
- // we can fold them into one layer
703
- val (labels, symbols) = syms partition { _.isInstanceOf [TextSymbolizer ] }
704
- val grouped =
705
- for {
706
- (z, syms) <- symbols.groupBy(_._1).toSeq.sortBy(_._1)
707
- } yield (z, syms map (_._2))
708
- grouped ++ Seq ((0d , labels map (_._2)))
709
- }
710
-
711
699
/**
712
700
* Given a list, generate all possible groupings of the contents of that list
713
701
* into two sublists. The sublists preserve the ordering of the original
0 commit comments