logo separator

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

From WanMil wmgcnfg at web.de on Thu Jul 11 22:04:41 BST 2013

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.
type=multipolygon & building=yes & garmin_area() > 20000
{ apply
     set mkgmap:bigbuilding=yes;

Have fun!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: garmin_area_v1.patch
Type: application/x-download
Size: 1801 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20130711/5af74285/attachment-0001.bin 

More information about the mkgmap-dev mailing list