[OSM-dev] Need to convert OSM XML map data to SVG TINY

George Sgouros sgouros at anro.gr
Thu Feb 1 07:33:03 GMT 2007


----- Original Message ----- 
From: "Jochen Topf" <jochen at remote.org>
To: "George Sgouros" <sgouros at anro.gr>
Cc: <dev at openstreetmap.org>
Sent: Wednesday, January 31, 2007 4:48 PM
Subject: Re: [OSM-dev] Need to convert OSM XML map data to SVG TINY


> On Sun, Jan 28, 2007 at 12:09:54PM +0200, George Sgouros wrote:
>> I am on my way on creating a map-based app for mobile phones using J2ME 
>> and JSR226 (svg). After discovering openstreetmaps sometime ago, I cannot 
>> think of anything else but osm to use as a map source for my app.
>>
>> However I do have a problem. Osmarender currently only supports XML to 
>> SVG FULL conversion. It would be really nice if it could directly produce 
>> an SVG TINY file.
>>
>> I thought about tweeking osmarender.xsl in order to make it output an 
>> SVG-TINY file instead of SVG-FULL, however I found it a bit overwhelming.
>> I COULD of course use Adobe Illustrator or a similar app to make the 
>> conversion from svg full to svg tiny. However, what I think as the best 
>> approach is a command line tool which could directly produce SVG-TINY 
>> files using the osm xml files.
>>
>> So I was wondering if anybody could help me locate (or maybe easily 
>> create) an XSL file for Osmarender which will produce an SVG TINY file.
>> A command line converter from SVG Full to SVG tiny would also be useful. 
>> Does anybody happen to know such a tool?
>
> Looking at the spec it seems that SVG tiny does not support masking,
> clipping, and markers which are all used in Osmarender4. So we are
> definitly loosing something there. We could probably have a switch in
> Osmarender to produce SVG tiny files instead of normal SVG and just have
> to live without those features then. Would you be able to test SVG tiny
> files on your phone, if I send them to you? I don't have any SVG tiny
> applications to test with.

After converting SVG Full (using Illustrator) and trying the resulting SVG 
Tiny on my mobile phone it looked pretty ok.
The only remark is that the navigation keys on the left of the map were not 
functional (which is a feature of minor importance for mobile phones 
according to my opinion)
However, I totally agree that we should verify the resulting SVG Tiny more 
thoroughly.
So if you have any Tiny SVGs that you could send me for testing, please do 
so. I will be able to inform you on anything you need.

George


>
> Jochen
> -- 
> Jochen Topf  jochen at remote.org  http://www.remote.org/jochen/ 
> +49-721-388298
> 





More information about the dev mailing list