Changing the import to

import org.apache.batik.anim.dom.SAXSVGDocumentFactory;

in

org.geotools.renderer.style.SVGGraphicFactory

solved the issue for me. I am not sure whether it is the right way to do it.
I have to check whether it has some other impacts.

---

Sunish



On Thu, Mar 9, 2017 at 9:53 AM, sunish <sunish.ku...@gmail.com> wrote:

> I think they have changed the packages but not yet documented.
>
> http://stackoverflow.com/questions/30092651/where-has-
> org-apache-batik-dom-svg-svgdomimplementation-gone
>
>
> -
> Sunish.
>
> On Thu, Mar 9, 2017 at 1:17 AM, Jody Garnett <jody.garn...@gmail.com>
> wrote:
>
>> I see that class in the latest:
>>
>> * https://xmlgraphics.apache.org/batik/javadoc/org/apache/ba
>> tik/dom/svg/SAXSVGDocumentFactory.html
>>
>> I expect that the dependencies have changed or something in the 1.8
>> release? The website does not provide any upgrade instructions.
>>
>> --
>> Jody Garnett
>>
>> On 8 March 2017 at 03:03, sunish <sunish.ku...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I wanted to use batik 1.8 libraries along with geotools. Geotools is
>>> dependent on batik 1.7. Replacing 1.7 jar files with 1.8 is not a solution
>>> because some of the classes are missing or package has changed in Batik 1.8.
>>>
>>> I am getting error logged below.
>>> Can I expect a resolution in upcoming versions of geotools?
>>>
>>> Thanks in advance,
>>> Sunish
>>>
>>> org.geotools.renderer.lite.StreamingRenderer fireErrorEvent
>>> SEVERE: org/apache/batik/dom/svg/SAXSVGDocumentFactory
>>> java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/SAXSV
>>> GDocumentFactory
>>>     at org.geotools.renderer.style.SVGGraphicFactory.getIcon(SVGGra
>>> phicFactory.java:93)
>>>     at org.geotools.renderer.lite.MetaBufferEstimator.visit(MetaBuf
>>> ferEstimator.java:355)
>>>     at org.geotools.styling.GraphicImpl.accept(GraphicImpl.java:349)
>>>     at org.geotools.renderer.lite.MetaBufferEstimator.visit(MetaBuf
>>> ferEstimator.java:239)
>>>     at org.geotools.styling.PointSymbolizerImpl.accept(PointSymboli
>>> zerImpl.java:93)
>>>     at org.geotools.renderer.lite.MetaBufferEstimator.visit(MetaBuf
>>> ferEstimator.java:142)
>>>     at org.geotools.renderer.lite.StreamingRenderer.findRenderingBu
>>> ffer(StreamingRenderer.java:1479)
>>>     at org.geotools.renderer.lite.StreamingRenderer.getStyleQuery(S
>>> treamingRenderer.java:996)
>>>     at org.geotools.renderer.lite.StreamingRenderer.processStylers(
>>> StreamingRenderer.java:1981)
>>>     at org.geotools.renderer.lite.StreamingRenderer.paint(Streaming
>>> Renderer.java:820)
>>>     at org.geotools.renderer.lite.StreamingRenderer.paint(Streaming
>>> Renderer.java:616)
>>>
>>> ------------------------------------------------------------
>>> ------------------
>>> Announcing the Oxford Dictionaries API! The API offers world-renowned
>>> dictionary content that is easy and intuitive to access. Sign up for an
>>> account today to start using our lexical data to power your apps and
>>> projects. Get started today and enter our developer competition.
>>> http://sdm.link/oxford
>>> _______________________________________________
>>> GeoTools-GT2-Users mailing list
>>> GeoTools-GT2-Users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>>
>>>
>>
>
------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to