-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GEOS-8823: SLDservice improvements for the classify service, also fix…
…ed unit tests and inclusion in the community build
- Loading branch information
Showing
11 changed files
with
1,096 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...nity/sldService/src/main/java/org/geoserver/sldservice/rest/BaseSLDServiceController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.geoserver.sldservice.rest; | ||
|
||
import javax.xml.transform.TransformerException; | ||
import org.geoserver.catalog.Catalog; | ||
import org.geoserver.rest.catalog.AbstractCatalogController; | ||
import org.geotools.factory.CommonFactoryFinder; | ||
import org.geotools.styling.SLDTransformer; | ||
import org.geotools.styling.StyleFactory; | ||
import org.geotools.styling.StyledLayerDescriptor; | ||
|
||
public abstract class BaseSLDServiceController extends AbstractCatalogController { | ||
protected static final StyleFactory SF = CommonFactoryFinder.getStyleFactory(); | ||
|
||
public BaseSLDServiceController(Catalog catalog) { | ||
super(catalog); | ||
} | ||
|
||
protected String sldAsString(StyledLayerDescriptor sld) throws TransformerException { | ||
SLDTransformer transform = new SLDTransformer(); | ||
transform.setIndentation(2); | ||
return transform.transform(sld); | ||
} | ||
} |
398 changes: 312 additions & 86 deletions
398
...ommunity/sldService/src/main/java/org/geoserver/sldservice/rest/ClassifierController.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.