Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] svg in udig

Ok, added the needed jars to the libs, thanks.
SVG is now rendering great. I am still wondering why the relative path
doesn't work in the sld. With absolute it renders ok, when putting
relative to the sld (even in same folder), nothing renders and nothing
gives error. Going to test on the geotools side.

Andrea



On Tue, Jul 6, 2010 at 3:37 PM, Andrea Aime <aaime@xxxxxxxxxxx> wrote:
> andrea antonello ha scritto:
>>
>> On Tue, Jul 6, 2010 at 10:36 AM, Andrea Aime <aaime@xxxxxxxxxxx> wrote:
>>>
>>> andrea antonello ha scritto:
>>>>
>>>> Hi Jody, I remember you talking about some dependency problems from
>>>> apache.
>>>>
>>>> In the RC3 when loading an a shape with svg point symbolizer I get:
>>>>
>>>> java.lang.NoClassDefFoundError:
>>>> org/apache/batik/util/XMLResourceDescriptor
>>>>       at
>>>>
>>>> org.geotools.renderer.style.SVGGraphicFactory.getIcon(SVGGraphicFactory.java:94)
>>>>       at
>>>>
>>>> org.geotools.renderer.style.SLDStyleFactory.getIcon(SLDStyleFactory.java:1096)
>>>>       at
>>>>
>>>> org.geotools.renderer.style.SLDStyleFactory.getImage(SLDStyleFactory.java:1054)
>>>>       at
>>>>
>>>> org.geotools.renderer.style.SLDStyleFactory.createPointStyle(SLDStyleFactory.java:525)
>>>>       at
>>>>
>>>> org.geotools.renderer.style.SLDStyleFactory.createPointStyle(SLDStyleFactory.java:442)
>>>>       at
>>>>
>>>> org.geotools.renderer.style.SLDStyleFactory.createStyleInternal(SLDStyleFactory.java:325)
>>>>       at
>>>>
>>>> org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:286)
>>>>       at net.refractions.udig.ui.Drawing.paint(Drawing.java:325)
>>>
>>> Btw, that class is in apache-batik-util-1.7.jar (so if you don't have
>>> that
>>> jar around or the package is not exported, you won't be able to u
>>> use it... ;-) )
>>
>> :) I guess so. Shouldn't that come down with gt-svg? Perhaps we do not
>> have gt-svg in the libs? That would be a pity since it is supported.
>> Will check that later.
>
> It's definitely among the transitive dependencies for gt-svg,
> as reported by mvn dependency:tree
> [INFO] org.geotools:gt-svg:jar:2.7-SNAPSHOT
> [INFO] +- org.geotools:gt-render:jar:2.7-SNAPSHOT:compile
> [INFO] |  +- org.geotools:gt-main:jar:2.7-SNAPSHOT:compile
> [INFO] |  |  +- org.geotools:gt-api:jar:2.7-SNAPSHOT:compile
> [INFO] |  |  +- com.vividsolutions:jts:jar:1.11:compile
> [INFO] |  |  |  \- xerces:xercesImpl:jar:2.7.1:compile (version managed from
> 2.4.0)
> [INFO] |  |  \- jdom:jdom:jar:1.0:compile
> [INFO] |  +- org.geotools:gt-coverage:jar:2.7-SNAPSHOT:compile
> [INFO] |  |  \- org.geotools:gt-referencing:jar:2.7-SNAPSHOT:compile
> [INFO] |  |     +- java3d:vecmath:jar:1.3.2:compile
> [INFO] |  |     +- commons-pool:commons-pool:jar:1.5.4:compile
> [INFO] |  |     \- org.geotools:gt-metadata:jar:2.7-SNAPSHOT:compile
> [INFO] |  |        +- org.opengis:geoapi:jar:2.3-M1:compile
> [INFO] |  |        +- org.opengis:geoapi-pending:jar:2.3-M1:compile
> [INFO] |  |        \- net.java.dev.jsr-275:jsr-275:jar:1.0-beta-2:compile
> [INFO] |  \- org.geotools:gt-cql:jar:2.7-SNAPSHOT:compile
> [INFO] +- org.apache.xmlgraphics:batik-transcoder:jar:1.7:compile
> [INFO] |  +- org.apache.xmlgraphics:fop:jar:0.94:compile
> [INFO] |  |  +- org.apache.xmlgraphics:xmlgraphics-commons:jar:1.2:compile
> [INFO] |  |  +- commons-logging:commons-logging:jar:1.1.1:compile (version
> managed from 1.0.4)
> [INFO] |  |  +- commons-io:commons-io:jar:1.2:compile
> [INFO] |  |  +-
> org.apache.avalon.framework:avalon-framework-api:jar:4.3.1:compile
> [INFO] |  |  \-
> org.apache.avalon.framework:avalon-framework-impl:jar:4.3.1:compile
> [INFO] |  +- org.apache.xmlgraphics:batik-awt-util:jar:1.7:compile
> [INFO] |  +- org.apache.xmlgraphics:batik-bridge:jar:1.7:compile
> [INFO] |  |  +- org.apache.xmlgraphics:batik-anim:jar:1.7:compile
> [INFO] |  |  +- org.apache.xmlgraphics:batik-css:jar:1.7:compile
> [INFO] |  |  +- org.apache.xmlgraphics:batik-ext:jar:1.7:compile
> [INFO] |  |  +- org.apache.xmlgraphics:batik-parser:jar:1.7:compile
> [INFO] |  |  +- org.apache.xmlgraphics:batik-script:jar:1.7:compile
> [INFO] |  |  \- xalan:xalan:jar:2.6.0:compile
> [INFO] |  +- org.apache.xmlgraphics:batik-dom:jar:1.7:compile
> [INFO] |  +- org.apache.xmlgraphics:batik-gvt:jar:1.7:compile
> [INFO] |  +- org.apache.xmlgraphics:batik-svg-dom:jar:1.7:compile
> [INFO] |  +- org.apache.xmlgraphics:batik-svggen:jar:1.7:compile
> [INFO] |  +- org.apache.xmlgraphics:batik-util:jar:1.7:compile
> [INFO] |  +- org.apache.xmlgraphics:batik-xml:jar:1.7:compile
> [INFO] |  +- xml-apis:xml-apis:jar:1.3.04:compile
> [INFO] |  \- xml-apis:xml-apis-ext:jar:1.3.04:compile
> [INFO] +- org.geotools:gt-epsg-hsql:jar:2.7-SNAPSHOT:test
> [INFO] |  \- hsqldb:hsqldb:jar:1.8.0.7:test
> [INFO] +- org.geotools:gt-sample-data:jar:2.7-SNAPSHOT:test
> [INFO] +- org.geotools:gt-property:jar:2.7-SNAPSHOT:test
> [INFO] +- org.geotools:gt-render:jar:tests:2.7-SNAPSHOT:test
> [INFO] +- javax.media:jai_core:jar:1.1.3:provided
> [INFO] \- junit:junit:jar:4.4:test
>
> Cheers
> Andrea
>
> --
> Andrea Aime
> OpenGeo - http://opengeo.org
> Expert service straight from the developers.
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>


Back to the top