Re: [mkgmap-dev] [PATCH v1] preserve edges introduced by clipping and splitting

2010-01-17 Thread Mark Burton
Hello Johann, > I have not tested this patch. I expect it to work, but I think it is a > suboptimal solution. I make no claims that it is optimal. Merely, that it's "cheap and cheerful". It achieves the desired aim with very little computational overhead. > You set the preserve bit on all lin

Re: [mkgmap-dev] [PATCH v1] preserve edges introduced by clipping and splitting

2010-01-17 Thread Johann Gail
Hi Mark, I have not tested this patch. I expect it to work, but I think it is a suboptimal solution. You set the preserve bit on all lines which are exactly horizontal or vertical. Wouldn't it be cleaner way, to set the preserved bit at the place, where the new nodes are generated, i.e. in the

[mkgmap-dev] [PATCH v1] preserve edges introduced by clipping and splitting

2010-01-16 Thread Mark Burton
This patch stops the DP filter from discarding points at either end of a horizontal or vertical line segment (such segments are created by the clipper and also by the polygon splitter and, of course, could occur naturally in the OSM data but I'd guess they are relatively rare). The benefit is tha