[OSM-talk] colour fills in osmarender

Etienne 80n80n at gmail.com
Thu Jun 8 22:21:07 BST 2006


On 6/8/06, Dean Earley <dean at earlsoft.co.uk> wrote:
> >> To render an area, would the segments in the way all have to be in
> >> order and all going in the same direction? If so, what would be really
> >> useful, in JOSM say, would be a tool that ordered and aligned all the
> >> segments in a common direction.
> >
> > Yes, the path that defines the boundary of the area should be
> > contiguous - this means that the to node of each segment should also
> > be from node of the next segment.  SVG will try to draw something even
> > if this condition is not satisfied, but the results are not pretty.
> >
> > It would be useful if JOSM could change the direction of segments.  It
> > would also be useful if the order of segments in a way could be seen
> > and adjusted (as in the applet).
>
> How about doing away with using segments as the bounding area for an
> area (erm?) and use nodes?
> They'd still need to be in order but directionality is no longer an
> issue. I think this would simplify things a bit.
>

Yes.  In fact, I'm sure the current model is wrong.

A way should be made up of an ordered list of nodes, not segments.
This would remove all the problems with segment directionality and
would speed up processing as well.

Etienne




More information about the talk mailing list