[OSM-talk] osmarender SVG in .Net

Dodi dodi at moonbase.sk
Tue Oct 30 13:25:02 GMT 2007


try it again with osmarender from http://www.freemap.sk/osmarender6.zip  :)

Dodi

  ----- Original Message ----- 
  From: Thom Shannon 
  To: talk at openstreetmap.org 
  Sent: Tuesday, October 30, 2007 1:59 PM
  Subject: Re: [OSM-talk] osmarender SVG in .Net


  batik really doesn't want to work, I can render out a small svg with about half a dozen streets on it, but anything bigger and I get IllegalPathStateException from batik-rasterizer.jar, details below. I'm guessing there is an object somewhere near the middle of liverpool that is messed up.

  Converting output.svg to C:\osm\output.png ... java.awt.geom.IllegalPathStateException: missing initial moveto in path definition
          at java.awt.geom.GeneralPath.needRoom(Unknown Source)
          at java.awt.geom.GeneralPath.lineTo(Unknown Source)
          at org.apache.batik.ext.awt.geom.ExtendedGeneralPath.lineTo(Unknown Source)
          at org.apache.batik.parser.AWTPathProducer.linetoAbs(Unknown Source)
          at org.apache.batik.dom.svg.SVGAnimatedPathDataSupport.handlePathSegList(Unknown Source)
          at org.apache.batik.bridge.SVGPathElementBridge.buildShape(Unknown Source)
          at org.apache.batik.bridge.SVGShapeElementBridge.createGraphicsNode(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.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.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)
          at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source)
          at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
          at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)
          at org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unknown Source)
          at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown Source)
          at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)
          at org.apache.batik.apps.rasterizer.Main.main(Unknown Source)
  ... error (SVGConverter.error.while.rasterizing.file)

  Brent Easton wrote: 
Hi Thom,

I can't help you with .NET, but I just wanted to let you know that I have successfully rendered the SVG's using Batik and got the same output as from Inkscape. Just want to reassure you that there is nothing 'funny' about the SVG format.

I have come accross SVG libraries in the past that only render a subset of the SVG operators, which produce strange results when run over SVG's containing the full set. Can't comment on SharpVectors though.

Regards,
Brent.

*********** REPLY SEPARATOR  ***********

On 29/10/2007 at 10:17 PM Thom Shannon  wrote:

  I'm trying to render SVG to raster in .net, I'm using the SharpVectors 
lib but it just can't render the osmarender svgs. Has anyone tried this 
before?

It seems to render various elements as solid black objects. The 
background rectangle fills the page black, if I remove that then ways 
are just solid black shapes.
    
____________________________________________________________
Brent Easton                       
Analyst/Programmer                               
University of Western Sydney                                   
Email: b.easton at uws.edu.au


_______________________________________________
talk mailing list
talk at openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


  



------------------------------------------------------------------------------


  _______________________________________________
  talk mailing list
  talk at openstreetmap.org
  http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20071030/d7718b7c/attachment.html>


More information about the talk mailing list