The patch adds a new style function called garmin_area().garmin_area() returns the size of an area in garmin-units ^2. It works for polygons only. Unclosed ways return 0.
Please test it and let me know: * Do you have a better name?* What to do with multipolygons? Should garmin_area() return the multipolygon size for all splitted parts of the mp? or: Should it be possible to use garmin_area() in the relations file? In this case it would be possible to add tags to all members which can then be used in the polygons file.
Example:
type=multipolygon & building=yes & garmin_area() > 20000
{ apply
{
set mkgmap:bigbuilding=yes;
}
}
Have fun!
WanMil
garmin_area_v1.patch
Description: application/download
_______________________________________________ mkgmap-dev mailing list [email protected] http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
