Hi !

I have an svg file that works fine if I open it with the squiggle browser,
but when I try to read it into a test application that use the example code
for using the JSCGCanvas it refuse to display the image with:

org.apache.batik.bridge.BridgeException:
file:C:/project/netbeans/system/client/workspace/RTU002_test.svg:78
An I/O error occured while processing the URI:
"file:C:/project/netbeans/system/client/workspace/RTU002_test.svg#BlendWater
"
specified on the element <polygon>

 at org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown
Source)
 at org.apache.batik.bridge.PaintServer.convertURIPaint(Unknown Source)
 at org.apache.batik.bridge.PaintServer.convertPaint(Unknown Source)
 at org.apache.batik.bridge.PaintServer.convertFillPaint(Unknown Source)
 at org.apache.batik.bridge.PaintServer.convertFillAndStroke(Unknown Source)
 at org.apache.batik.bridge.SVGShapeElementBridge.createShapePainter(Unknown
Source)
 at
org.apache.batik.bridge.SVGDecoratedShapeElementBridge.createShapePainter(Un
known Source)
 at org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unknown
Source)
 at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
 at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
 at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
 at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
 at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
 at org.apache.batik.swing.svg.GVTTreeBuilder.run(Unknown Source)

Line 78 looks like:
 <polygon class="MatWater" points="130,100 130,200, 150,220 250,220 270,200
270,100"/>

And MatWater is declared at the top as:
 ...
 .MatWater{stroke:none; fill:url(#BlendWater); }
 ...
  <linearGradient id="BlendWater" gradientUnits="userSpaceOnUse" x1="200"
y1="100" x2="200" y2="220">
    <stop offset="0%" style="stop-color:#0010A0"/>
    <stop offset="100%" style="stop-color:#000520"/>
  </linearGradient>

As it works in squiggle I am of course doing something wacky, but I cannot
figure out what, any ideas ?

Mikael


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to