logo separator

[mkgmap-dev] [PATCH v1] garmin_area() style function

From WanMil wmgcnfg at web.de on Thu Jul 11 22:08:56 BST 2013

A build including the patch can be obtained here: 
http://files.mkgmap.org.uk/detail/146

WanMil

> 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
>
>
>
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>



More information about the mkgmap-dev mailing list