From 170304f2311fb3c8ca7d19fc1dd7c4cebb1abc72 Mon Sep 17 00:00:00 2001 From: Stephan Reichhelm Date: Thu, 9 Sep 2021 14:17:02 +0200 Subject: [PATCH] #7692 (PR#197) - add ScgImageTranscoder to be able to use svg for graphic fills --- .../se/parser/GraphicSymbologyParser.java | 15 +++ .../style/utils/SvgImageTranscoder.java | 111 ++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100644 deegree-core/deegree-core-style/src/main/java/org/deegree/style/utils/SvgImageTranscoder.java diff --git a/deegree-core/deegree-core-style/src/main/java/org/deegree/style/se/parser/GraphicSymbologyParser.java b/deegree-core/deegree-core-style/src/main/java/org/deegree/style/se/parser/GraphicSymbologyParser.java index 31579bd5fc..6e4c575ffd 100644 --- a/deegree-core/deegree-core-style/src/main/java/org/deegree/style/se/parser/GraphicSymbologyParser.java +++ b/deegree-core/deegree-core-style/src/main/java/org/deegree/style/se/parser/GraphicSymbologyParser.java @@ -70,7 +70,9 @@ Occam Labs UG (haftungsbeschränkt) import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; +import org.apache.batik.transcoder.TranscoderException; import org.apache.commons.codec.binary.Base64; +import org.apache.xerces.parsers.SAXParser; import org.deegree.commons.utils.Pair; import org.deegree.commons.utils.Triple; import org.deegree.feature.Feature; @@ -83,6 +85,8 @@ Occam Labs UG (haftungsbeschränkt) import org.deegree.style.styling.components.Mark.SimpleMark; import org.deegree.style.styling.components.Stroke; import org.deegree.style.utils.ShapeHelper; +import org.deegree.style.utils.SvgImageTranscoder; +import org.deegree.style.utils.SvgImageTranscoder.SvgImageOutput; import org.slf4j.Logger; /** @@ -372,6 +376,17 @@ private Triple