Skip to content

Commit

Permalink
Merge pull request #524 from lat-lon/deegree-3.3-sldParameter
Browse files Browse the repository at this point in the history
Fixed bug in sld_body request parameter
  • Loading branch information
copierrj committed Oct 1, 2015
2 parents 1ddee87 + 1663570 commit 88237ce
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ protected void handleSLD( String sld, String sldBody )
}
}

this.layers.clear();
this.styles.clear();

this.filters = new LinkedList<OperatorFilter>();

LinkedList<LayerRef> tmpLayers = new LinkedList<LayerRef>();

// to get the order right, in case it's different from the SLD order
for ( LayerRef lRef : layers ) {
LinkedList<Triple<LayerRef, StyleRef, OperatorFilter>> l = lays.get( lRef.getName() );
Expand All @@ -163,10 +163,12 @@ protected void handleSLD( String sld, String sldBody )
}

Triple<ArrayList<LayerRef>, ArrayList<StyleRef>, ArrayList<OperatorFilter>> t = unzip( l );
this.layers.addAll( t.first );
tmpLayers.addAll( t.first );
this.styles.addAll( t.second );
this.filters.addAll( t.third );
}
this.layers.clear();
this.layers.addAll( tmpLayers );
} else {
if ( triple != null ) {
this.layers = triple.first;
Expand Down

0 comments on commit 88237ce

Please sign in to comment.