logo separator

[mkgmap-dev] [Patch v1] reduce line distortion

From Gerd Petermann gpetermann_muenchen at hotmail.com on Mon Jan 25 08:22:09 GMT 2016

Hi all,

I am a bit desolated reg. this problem, maybe you have new ideas for me.
I try to describe what happens:
1) The style adds a road and one or more overlay lines 
2) Before housenumber processing the roads are processed by the so called
RoadMerger which may connect two or more roads with similar attributes,
after that there is no easy way to find the corresponding overlay lines for
a road.
3) When the housenumber functions add new nodes to the road to improve the
address search,
these nodes may be > 1m away from the overlay line.

My first approach was to change the housenumber code so that it adds only
nodes which
are very close to the overlay line, but that turned out to be impossible in
some cases, means,
we either have bad results in address search or visible line distortions.

Another approach would be to add the nodes also to the overlay ways, but as
I said I see
no easy and performant way to find the corresponding overlay lines, as they
also may have 
a reverse order of points. 

My experience tells me that I should better try to find a completely
different approach for the 
housenumbers, but up to now there was no "heureka" .

If the img format would allow to say "use this point only for address
search, but not for rendering"
all would be easy, but I don't think that this is possible ?

So, I'll try again to fix the overlay lines using a brute search algo, maybe
the performance doesn't matter 
as there are not so many added nodes .

Gerd


Gerd Petermann wrote
> Hi Minko,
> 
> thanks for the picture. I think the fix is not yet catching all cases, 
> so I'll continue working on it.
> 
> Gerd
> 
> ________________________________________
> Von: 

> mkgmap-dev-bounces at .org

>  <

> mkgmap-dev-bounces at .org

> > im Auftrag von Minko <

> ligfietser@

> >
> Gesendet: Mittwoch, 20. Januar 2016 17:22
> An: Development list for mkgmap
> Betreff: Re: [mkgmap-dev] [Patch v1] reduce line distortion
> 
> Thanks for the fix Gerd!
> 
> For an example of this fixed issue,
> see http://www.dropbox.com/s/ny2c769np3zq40k/bug_fixed.jpg?raw=1
> 
> 
> Gerd wrote:
>> I think a distance of less than 0.4 m is not visible, and nearly all
>> calculated points are
>> now closer than that.
>> A binary based on r3658 is here:
>> http://files.mkgmap.org.uk/download/287/mkgmap.jar
> _______________________________________________
> mkgmap-dev mailing list

> mkgmap-dev at .org

> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> _______________________________________________
> mkgmap-dev mailing list

> mkgmap-dev at .org

> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev





--
View this message in context: http://gis.19327.n5.nabble.com/Patch-v1-reduce-line-distortion-tp5865262p5865675.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.


More information about the mkgmap-dev mailing list