[OSM-talk] osmarender4

Jochen Topf jochen at remote.org
Sun Feb 18 17:36:08 GMT 2007


On Sun, Feb 18, 2007 at 02:48:25PM -0000, David Earl wrote:
> I've just downloaded osmarender4. Firsty, I notice that many of the new
> symbols are in there as standard, even though they aren't on the slippy
> map - thank you! Secondly, could areas fro school, university and college go
> intot eh standard rules as well - I did these as 'fill: #B9ACD8; stroke:
> #a18bd8; stroke-width: 0.2px;', which is a light mauvecolour, in my old
> local copy of osmarender.

I have just added this to subversion. There is a "school" tag in map
features, but no "university" or "college". But we can always change
this later if the official tags are different.

> I had a couple of problems. This is using xmlstarlet in Windows:
> (a) using the info here
> http://wiki.openstreetmap.org/index.php/Osmarender/Howto, running
>   xmlstarlet-1.0.1\xml tr osmarender.xsl rules/standard.xml > map.svg 2>
> go.log
> I get 'warning: failed to load external entity "rules/data.osm"'
> 
> I had to move th standard.xml up a level to get it to work

I suggest using the following option when calling xmlstarlet:

  -s osmfile=path-to-your-data-file

That way you don't have to name it data.osm and it doesn't have to be in
a specific position.

> (b) it then renders without symbols and says
> 'warning: failed to load external entity "symbols/airport.svg"' etc.
> 
> This is because the files as downloaded have .xml extensions, not .svg. I
> had to rename the files in order for it to work.

Don't know how that happens. In subversion they have a .svg extension.

> Finally, I was rather dismayed to find that the rendering styles in the
> slippy map change from tile to tile in quite small areas around Cambridge -
> some bits have railways solid, some dashed. Presumably this is because
> tiles at home users haven't updated to osmarender4, as Fred, I think, pointed

tiles at home (as everything in OSM) is work in progress. Even if everybody
has changed to a new rendering code it takes a while to re-render the
whole world. Osmarender is just too slow to re-render everything every
time there is a change. It should grow itself out at some point.

> out before. Is there no way to prevent acceptance of tiles uploaded from old
> installations? And what's to stop me from adding my own favourite renderings
> within tiles at home and causing chaos?

There is nothing to prevent that. Thats in the nature of a distributed
project.

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





More information about the talk mailing list