<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV>Hi Thom,</DIV>
<DIV> </DIV>
<DIV>The standard version of batik-reasterizer.jar has no error handling 
whatsoever. If it encounters an error in the generated SVG, it just throws an 
exception and fails.</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Brent.</DIV>
<DIV><BR><FONT face=Arial size=2>*********** REPLY SEPARATOR 
***********<BR><BR>On 30/10/2007 at 3:27 PM Thom Shannon wrote:</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid">brilliant! 
  thank you!!<BR><BR>How come that isn't in the main repository? Did they not 
  accept your patches?<BR><BR>Dodi wrote: 
  <BLOCKQUOTE cite=mid:002301c81af8$4e085680$0d00a8c0@involute.local 
type="cite">
    <META content="MSHTML 6.00.6000.16544" name=GENERATOR>
    <STYLE></STYLE>

    <DIV>
    <DIV><FONT face=Arial size=2>try it again with osmarender from <A 
    href="http://www.freemap.sk/osmarender6.zip" 
    moz-do-not-send="true">http://www.freemap.sk/osmarender6.zip</A> 
     :)</FONT></DIV>
    <DIV> </DIV>
    <DIV><FONT face=Arial size=2>Dodi</FONT></DIV>
    <DIV> </DIV></DIV>
    <BLOCKQUOTE 
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">----- 
      Original Message ----- </DIV>
      <DIV 
      style="BACKGROUND: rgb(228,228,228) 0% 50%; FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><B>From:</B> 
      <A title=thom@glow-internet.com href="mailto:thom@glow-internet.com" 
      moz-do-not-send="true">Thom Shannon</A> </DIV>
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>To:</B> 
      <A title=talk@openstreetmap.org href="mailto:talk@openstreetmap.org" 
      moz-do-not-send="true">talk@openstreetmap.org</A> </DIV>
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B> 
      Tuesday, October 30, 2007 1:59 PM</DIV>
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Subject:</B> 
      Re: [OSM-talk] osmarender SVG in .Net</DIV>
      <DIV><BR></DIV>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.<BR><BR>Converting output.svg to C:\osm\output.png ... 
      java.awt.geom.IllegalPathStateException: missing initial moveto in path 
      definition<BR>        at 
      java.awt.geom.GeneralPath.needRoom(Unknown 
      Source)<BR>        at 
      java.awt.geom.GeneralPath.lineTo(Unknown 
      Source)<BR>        at 
      org.apache.batik.ext.awt.geom.ExtendedGeneralPath.lineTo(Unknown 
      Source)<BR>        at 
      org.apache.batik.parser.AWTPathProducer.linetoAbs(Unknown 
      Source)<BR>        at 
      org.apache.batik.dom.svg.SVGAnimatedPathDataSupport.handlePathSegList(Unknown 
      Source)<BR>        at 
      org.apache.batik.bridge.SVGPathElementBridge.buildShape(Unknown 
      Source)<BR>        at 
      org.apache.batik.bridge.SVGShapeElementBridge.createGraphicsNode(Unknown 
      Source)<BR>        at 
      org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown 
      Source)<BR>        at 
      org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown 
      Source)<BR>        at 
      org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown 
      Source)<BR>        at 
      org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown 
      Source)<BR>        at 
      org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown 
      Source)<BR>        at 
      org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown 
      Source)<BR>        at 
      org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown 
      Source)<BR>        at 
      org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown 
      Source)<BR>        at 
      org.apache.batik.bridge.GVTBuilder.build(Unknown 
      Source)<BR>        at 
      org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown 
      Source)<BR>        at 
      org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown 
      Source)<BR>        at 
      org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown 
      Source)<BR>        at 
      org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown 
      Source)<BR>        at 
      org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unknown 
      Source)<BR>        at 
      org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown 
      Source)<BR>        at 
      org.apache.batik.apps.rasterizer.Main.execute(Unknown 
      Source)<BR>        at 
      org.apache.batik.apps.rasterizer.Main.main(Unknown Source)<BR>.... error 
      (SVGConverter.error.while.rasterizing.file)<BR><BR>Brent Easton wrote: 
      <BLOCKQUOTE cite=mid:200710300953400687.0390B552@smtp.nsw.exemail.com.au 
      type="cite"><PRE wrap="">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:

  </PRE>
        <BLOCKQUOTE type="cite"><PRE wrap="">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.
    </PRE></BLOCKQUOTE><PRE wrap=""><!---->
____________________________________________________________
Brent Easton                       
Analyst/Programmer                               
University of Western Sydney                                   
Email: <A class=moz-txt-link-abbreviated href="mailto:b.easton@uws.edu.au" moz-do-not-send="true">b.easton@uws.edu.au</A>


_______________________________________________
talk mailing list
<A class=moz-txt-link-abbreviated href="mailto:talk@openstreetmap.org" moz-do-not-send="true">talk@openstreetmap.org</A>
<A class=moz-txt-link-freetext href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk" moz-do-not-send="true">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk</A>


  </PRE></BLOCKQUOTE><BR>
      <P></P>
      <HR>
      _______________________________________________<BR>talk mailing list<BR><A 
      class=moz-txt-link-abbreviated 
      href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</A><BR><A 
      class=moz-txt-link-freetext 
      href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk</A><BR></BLOCKQUOTE></BLOCKQUOTE><BR>
  <DIV class=moz-signature>-- <BR>*** OPEN COFFEE 6 - with FACT - <A 
  class=moz-txt-link-freetext 
  href="http://upcoming.yahoo.com/event/307022">http://upcoming.yahoo.com/event/307022</A> 
  ***<BR><BR>Glow New Media<BR>t: 0151 707 9770<BR>m: 07730 987 574<BR><A 
  class=moz-txt-link-abbreviated 
  href="http://www.glow-internet.com">www.glow-internet.com</A><BR><BR>Suite 712 
  Gostins Building<BR>32-36 Hanover Street<BR>Liverpool<BR>L1 4LN<BR><BR>Map: <A 
  class=moz-txt-link-freetext 
  href="http://tinyurl.com/2f5nxd">http://tinyurl.com/2f5nxd</A> </DIV><FONT 
  size=2 Arial></BLOCKQUOTE></FONT></BODY></HTML>

<BR>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY style="FONT-FAMILY: Arial" text=#000000 bgColor=#ffffff><FONT 
face="Courier New">____________________________________________________________<BR>Brent 
Easton                       
<BR>Analyst/Programmer                               
<BR>University of Western 
Sydney                                   
<BR>Email: </FONT><A href="mailto:b.easton@uws.edu.au"><FONT 
face="Courier New">b.easton@uws.edu.au</FONT></A><BR></BODY></HTML>