[OSM-talk] Mapping Reading, some impressions

Etienne 80n80n at gmail.com
Sun Sep 10 15:04:54 BST 2006


Tom
I think you made your edits locally and have not yet uploaded them to the
server.  Until you upload, the .OSM file will contain both the old way (with
an action='delete' attribute) and the new way.

What you are now seeing is both ways being rendered one on top of the
other.  So the street name is now show twice; Once correctly and once with
the names in the wrong order.

Upload your changes to the database, re-save the .OSM file locally and then
try rendering again.  It should come out OK.

Here are a couple of JOSM tips:

1) If you have a way that contains a segment that is pointing in the wrong
direction you can flip the segment by selecting it using Alt+click and then
Ctrl+Shift+R to flip it.

2) If the segments are in the wrong order, rather than delete the way which
means you have to re-enter all the attributes, you can remove all the
segments from the way, except the first one, and then add all the rest of
the segments in the correct order.  Type W to go into Way mode, click on the
way to select it, then click on each highlighted segment in turn to remove
it from the way, until the only segment left is the one that you want be at
the start of the way.  Then add all the other segments again in the order
that you want them.

And a couple of Osmarender tips:
1) If a name is rendered upside down you can invert it by adding a tag to
the way called name_direction with a value of -1.  It's better to reverse
the direction of the segments if you can, but if its a one-way street then
you'll need to use the name_direction tag  otherwise you'd be altering the
traffic flow.

2) If a street name is too large to fit on a road, you can override the
font-size by adding a tag to the way called svg:font-size with a value like
0.5 (most streets are rendered with a font-size of 1, major roads with a
font-size of 1.5).  You can actually override many of the svg style
attributes like this.  For example: svg:fill=red could be used to colour a
street name in red to highlight it for some purpose.


Etienne


On 9/10/06, Tom Chance <tom at acrewoods.net> wrote:
>
> Ahoy,
>
> On Sunday 10 September 2006 09:38, Etienne wrote:
> > On 9/5/06, Tom Chance <tom at acrewoods.net> wrote:
> > > With pub names it's not too much of a bother, but I've attached a
> > > screenshot
> > > with a collection of errors and nitpicks that are really a huge hassle
> to
> > > correct over a large map. I don't know what can be done about them,
> but I
> > > thought I should flag them up:
> > >
> > > * small bendy roads have completely hopeless labels
> > > * labels on short roads get cut off
> > > * neither the corner on Selva Court nor slight bends in Mount Pleasant
> > > worked
> > > * the Mount Pleasant label starts at one end and finishes at the
> other?!
> > > * the many residential abutters look a bit messy
> > >
> > > With the Mount Pleasant label, I've found a similar effect happening
> when
> > > I
> > > edit pub names. Open an osmarender SVG and try editing a name, perhaps
> > > hitting enter to make the label cascade vertically to fit better.
> Weird
> > > things happen!
> >
> > For things to look right when rendered with Osmarender it requires that
> all
> > segments in a way are ordered correctly and all pointing in the same
> > direction.  The order and direction of segments is used to define the
> path
> > along which the road labels are drawn.
>
> In the new screenshot attached I deleted the 'Mount Pleasant' way, checked
> that the segments are indeed all pointing in the same direction (they
> were),
> recreated the way by clicking on the segments in order, put in the
> metadata,
> saved and osmarendered the area. You can see the result... now am I doing
> something wrong, or is this a bug in osmarender?
>
> The same applies to short roads and bendy roads, where the labels never
> fit in
> properly and sometimes go a bit nuts. It's not, so far as I can see, a
> problem with the way the data is entered, but maybe I'm wrong?
>
> Kind regards,
> Tom
>
> --
> The task of critique is not to denounce the ideals, but to show their
> transformation into ideologies, and to challenge the ideology in the
> name of the betrayed ideal (Fromm – Beyond The Chains Of Illusion)
>
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20060910/42065ed5/attachment.html>


More information about the talk mailing list