logo separator

[mkgmap-dev] Commit: r1294: Added duplicate() method.

From Johann Gail johann.gail at gmx.de on Mon Oct 19 17:37:33 BST 2009


Torsten Leistikow schrieb:
> svn commit schrieb:
>   
>> Added duplicate() method.
>>
>> Makes a new way that has the same values (id, name, tags, points) but
>> differs in that the points list is a shallow copy of the original so that
>> subsequent changes to the structure of the original points list don't
>> cause the points list in the duplicate to change (of course, the points
>> themselves could be changed).
>>     
>
> Do you have an example, how this feature can be used?
>
> What use do you see for it? (This was propably answered in another
> thread, but I have missed the reasoning.)
>
>
>   
An possible use will be in the douglas peucker filter, previously I had 
to copy the list of points by hand, before I modify it.



More information about the mkgmap-dev mailing list