<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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 http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <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
 moz-do-not-send="true" href="http://www.freemap.sk/osmarender6.zip">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="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
    <div
 style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
    <a moz-do-not-send="true" title="thom@glow-internet.com"
 href="mailto:thom@glow-internet.com">Thom Shannon</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
    <a moz-do-not-send="true" title="talk@openstreetmap.org"
 href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Tuesday, October 30, 2007 1:59 PM</div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; 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 moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:b.easton@uws.edu.au">b.easton@uws.edu.au</a>


_______________________________________________
talk mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a>
<a moz-do-not-send="true" 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>


  </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>
</body>
</html>