[OSM-talk] SVG output

Erik Johansson erjohan at gmail.com
Fri May 26 16:53:36 BST 2006


On 5/26/06, Steve Chilton <S.L.Chilton at mdx.ac.uk> wrote:
> I have just got osmarender working (msxml version) and figured out have
> to download data from OSM to JOSM to osmarender and produce output.
> Couple of questions:
> Can anyone point me to a better SVG viewer than Adode through IE, which
> is really inflexible?
> Can anyone suggest a SVG to PNG route? I have tried all applications I
> have to open and save as.

Use
OSM -> Xalan -> SVG -> Batik -> PNG

This works wonderfull here:

wget -O data.osm http://mapURLfromOSM

java -cp ../Distributed-renderer/xalan-j_2_7_0/xalan.jar
org.apache.xalan.xslt.Process -in osm-map-features.xml -out temp.svg

java -jar ../Distributed-renderer/batik-1.6/batik-rasterizer.jar -d out.png

imageview out.png


This produces a transparent png.




More information about the talk mailing list