Dave F. wrote:
> Hi
>
> I'm new to the joys of creating my custom styles & renderings.
> Using -r1505. WinXp
>
> I have a landuse=farmyard polygon with, a barrier=wall additional tag.
> This barrier wasn't an additional way drawn around the perimeter of the
> polygon, but with the barrier=wall key added as an extra tag.
>
> The problem is it only renders the barrier, the polygon being transparent.
>
> I have other landuse=farmyard polygons without the barrier tag & they
> render correctly.
>
> Using this command:
> java -Xmx512M -ea -jar mkgmap.jar --remove-short-arcs --gmapsupp
> "Contours.img" --transparent --style-file="c:\dwgs\Programs\GPS
> All\Garmin Profile" --family-id=42 M000002.TYP Barrier_test.osm
>
> In my line style: barrier=wall
>
> In my polygon style:
> landuse=farmyard & barrier=wall
> landuse=farmyard
>
> What do I need to do to get it to render?
>
> Thanks for your help
>
> Cheers
> Dave F.
>
Torsten has explained what's going on here. For future reference,
mkgmap processes the style files in a strict order, which is:
1. version
2. info
3. options
4. relations
5. points
6. lines
7. polygons
8. overlays
Thus your landuse=farmyard & barrier=wall object is being matched by the
lines style file at 6 first and then further rule matching is
terminated, meaning that whatever applicable rules you have in your
polygons file at 7 are never applied.
Charlie
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev