[OSM-talk] Mapnik handling of highways that are also landuse...

Thomas Wood grand.edgemaster at gmail.com
Thu Aug 28 11:23:11 BST 2008


2008/8/28 robin paulson <robin.paulson at gmail.com>:
> Steve Chilton wrote:
>> Dermot
>>
>> There are two reasons why your "tag combination ought to be able to
>> render correctly as is" statement is not valid.
>> Firstly - as Thomas pointed out - mapnik likes one feature per way.
>> Secondly - landuse=grass is not rendered at the moment (because of the
>> vast disagreement on the whole landuse/natural/grass thing).
>> What I am guessing you have on the ground is a residential square with a
>> road round the outside and a grassy bit in the middle. There is no way I
>> know of for mapnik to interpret this correctly from a double-tagged
>> single way like this. It would have to be able to draw a line, a road
>> fill, a second line, and then the grass fill.
>
> Dermot,
>
> this sounds a lot like you're using the same way to form the centre of
> the road, and the boundary of the grass. wouldn't it be easier to use a
> separate way to represent each?
>
> i can't imagine the grass extends to the middle of the road
>
> or am i getting the wrong end of the stick?
>

It's the right end of the stick, since I do it myself.
It is my personal view that ways in OSM represent the whole feature,
and although they are usually placed along the centreline of that
feature, the way does not represent merely the centre line of the
feature.
Until OSM moves to a very high accuracy method of using areas to
define road surfaces, etc, I'll continue using overlapping ways to
represent landuse areas contained by roads.

-- 
Regards,
Thomas Wood
(Edgemaster)




More information about the talk mailing list