Re: [mkgmap-dev] coastline

2013-01-23 Thread Bartosz Fabianowski
Alternatively, you can use my coastline extracts: http://fabianowski.eu/osm/coastlines/ They are not precompiled coastline files but coastlines extracted from the planet file and the Geofabrik Europe file. You can feed them to mkgmap directly. I update the files as time permits. The most recent

Re: [mkgmap-dev] [PATCH v2] Precompiled sea

2012-05-12 Thread Bartosz Fabianowski
I have never looked at how the precompiled coastlines work. Maybe my extracted coastlines will remain useful in many cases after all. If so, I am happy to keep providing them. One advantage the extracted files definitely have is that I am updating them every day, based on the current Geofabrik

Re: [mkgmap-dev] Flooding in Southern Scotland

2011-12-30 Thread Bartosz Fabianowski
You can always use my daily updated coastlines as well. These are based on the Geofabrik Europe extract respectively the complete planet file, so they will be more complete than the coastlines you get from a single-country extract: http://fabianowski.eu/osm/coastlines/ - Bartosz

Re: [mkgmap-dev] Coastline issues - analysis and possible solution

2011-10-15 Thread Bartosz Fabianowski
Glad I could help. The coastline files will definitely keep getting generated day by day. They will just move to our company site somewhere underneath dobini.com one day. But I will put in a redirect once that happens. - Bartosz ___ mkgmap-dev

Re: [mkgmap-dev] (Fixed by workround) Bizarre flooding in South Wales

2011-10-13 Thread Bartosz Fabianowski
As it is, it *seems* to realise that the coastline file is as I'd flagged it, but then reports that it can't read such a file. Confusing. That is rather silly behavior indeed :). P.S: I can now confirm that Bartosz's fix (specifying a separate coastline file) appears to have completely

Re: [mkgmap-dev] (Fixed by workround) Bizarre flooding in South Wales

2011-10-13 Thread Bartosz Fabianowski
Following the coastline to check whether it enters the current tile again will work in Great Britain but may fail in continental Europe. The Geofabrik Europe extract does not have a closed coastline after all. That would have to go all around Asia and back. So yes, following the coastline out

Re: [mkgmap-dev] (Fixed by workround) Bizarre flooding in South Wales

2011-10-13 Thread Bartosz Fabianowski
Notice that once you've done the miserable tour of Asia once, then it's OK to split the resulting Europe tile Correct. So your idea would work but only if the extracts you begin with have coastlines generated in the same way, by following the parts that extend outside the tile boundaries.

Re: [mkgmap-dev] Commit: r2049: Reimplementation of the add-pois-to-area option

2011-10-13 Thread Bartosz Fabianowski
If more than one point of the same tag exist the first one is used. What if there are multiple entrances with different house numbers? This is common in many countries with those huge communist blocks of flats. - Bartosz ___ mkgmap-dev mailing list

Re: [mkgmap-dev] Bizarre flooding in South Wales

2011-10-10 Thread Bartosz Fabianowski
You can try the following: Download the European coastline file from [1] with the same time stamp as your input pbf and pass it to mkgmap via the --coastlinefile option. If this fixes the flooding, you are suffering from the same problem that I keep running into - the coastline fails to reach

Re: [mkgmap-dev] Bizarre flooding in South Wales

2011-10-10 Thread Bartosz Fabianowski
How did you pass the file to mkgmap? If the file is in the current directory, the parameter should be: --coastlinefile=coastlines_europe-111004.osm.pbf - Bartosz ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk

Re: [mkgmap-dev] Bizarre flooding in South Wales

2011-10-10 Thread Bartosz Fabianowski
Replying to myself, I think I see the problem now. You are specifying paths relative to the current working directory while mkgmap searches relative to its installation directory. Try specifying the coastline file and the boundary directors as absolute paths. - Bartosz

Re: [mkgmap-dev] [PATCH v1] Reimplementation of add-pois-to-areas option

2011-10-04 Thread Bartosz Fabianowski
Therefore, I have been tagging the main entrance with the same tags as the building polygon, replacing building=yes with building=entrance. Is this really tagging for renderers? I would say it is not tagging for the renderer but it is odd tagging nonetheless. A building=entrance should be all

Re: [mkgmap-dev] Coastline issues - analysis and possible solution

2011-10-01 Thread Bartosz Fabianowski
No problem. I have a batch job running that uploads fresh coastlines to [1] every day. I will move this to our company webspace somewhere underneath [2] eventually. - Bartosz [1] http://fabianowski.eu/osm/coastlines/ [2] http://labs.dobini.com/ ___

Re: [mkgmap-dev] Splitter doesn't process pbf data created with osmosis 0.39

2011-09-19 Thread Bartosz Fabianowski
Exact map coverage is (0.0,0.0) to (2.1457672119140625E-5,2.1457672119140625E-5) This bounding box is a whopping 5.7m² in size (in projected map units) and lies at the intersection of zeroth meridian and equator. I suspect there is very little data in that region... hence, osmosis is not

Re: [mkgmap-dev] [PATCH v1] Subdivision splitting

2011-09-14 Thread Bartosz Fabianowski
I was using the patch you had posted on 21st June so far and have tested the new patch now. Both work equally well for me - no area to small errors. - Bartosz ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk

Re: [mkgmap-dev] Coastline issues - analysis and possible solution

2011-08-29 Thread Bartosz Fabianowski
geofabrik extracts are to blame - they're too tight in some places, so the coastline breaks in the extraction process already In a sense, this is true. However, *no* polygon can ever be guaranteed to contain enough data. Even if Geofabrik used a bounding box instead of a bounding polygon so

Re: [mkgmap-dev] Coastline issues - analysis and possible solution

2011-08-29 Thread Bartosz Fabianowski
It still takes a little tweaking to get the coastlines right. I have manually chosen the tile borders so that the coastline will end outside the tile border. Only in the Swedish/Finnish border I am using extend-sea-sectors to make up some coastline in Sweden. This is why I collected the

Re: [mkgmap-dev] Coastline issues - analysis and possible solution

2011-08-29 Thread Bartosz Fabianowski
I use my own polygon file to extract germany from the european extract. It should be sufficient to extract coastlines using that larger polygon only. Of course once you are extracting, you can just use your own extracts throughout. But a combination of the Geofabrik extract for map data and

Re: [mkgmap-dev] [PATCH v1] Check size of polygons to avoid exceeding subdivision size

2011-08-29 Thread Bartosz Fabianowski
2011/08/29 09:46:03 WARNING (Subdivision): 63240010.osm.pbf: Subdivision width is 36627 at 3231057/1236133 I guess it is time to split my tile further. But, this is not the biggest tile: The Subdivision class is complaining about the width of an area in Garmin units. The area may not

Re: [mkgmap-dev] Coastline issues - analysis and possible solution

2011-08-29 Thread Bartosz Fabianowski
fixed tiles may produce better coastlines, but you'll get map too big at some point as the map grows. The way I understand Marko's suggestion, you would give the splitter an initial list of tiles (or just a region) and it would then subdivide that into smaller tiles as it does today. The

Re: [mkgmap-dev] Coastline issues - analysis and possible solution

2011-08-29 Thread Bartosz Fabianowski
i'm starting to wonder if we're talking about 2 separate issues Indeed, it seems so :). 1. they get broken in the extraction process because the poly is too tight You mean the bounding polygon is so tight that it actually clips away the coastlines? If so, the bounding polygon is simply

Re: [mkgmap-dev] [PATCH] Splitter area rounding seems wrong

2011-08-29 Thread Bartosz Fabianowski
Wouldn't this mean that tile boundaries would overlap if they were originally touching but not aligned? Yes, you are right. The splitter code is not sufficiently documented to make it clear what it is trying to achieve. After looking at the code, it seemed to me that the goal was to expand

Re: [mkgmap-dev] Coastline issues - analysis and possible solution

2011-08-29 Thread Bartosz Fabianowski
That's great. With this procedure I can use the german extract from geofabrik without the missing sea near Emden. You will still have to download all of Europe to extract the boundaries for your larger polygon. Or alternatively you can use the extracted boundaries I provided. - Bartosz

Re: [mkgmap-dev] Coastline issues - analysis and possible solution

2011-08-29 Thread Bartosz Fabianowski
First, you will have to download and process much more data than just the country extract. This is why I shared my extracted coastlines. The extraction has to be done only once. Everyone else can just download the (relatively small) coastline files. Second, if the continent extract was

Re: [mkgmap-dev] Coastline issues - analysis and possible solution

2011-08-29 Thread Bartosz Fabianowski
Thanks, that's one person interested in automatically updated coastlines. I will watch the download logs over the next few days to see whether I should start generating coastlines daily. - Bartosz ___ mkgmap-dev mailing list

Re: [mkgmap-dev] Coastline issues - analysis and possible solution

2011-08-29 Thread Bartosz Fabianowski
I have just uploaded today's coastlines_europe.osm.pbf. The time stamp matches the europe.osm.pbf file that this was created from. Right now, I still need to manually upload and fiddle with the timestamps. I am switching to a better hosting setup in a couple of days that will allow me to fully

Re: [mkgmap-dev] Coastline issues - analysis and possible solution

2011-08-29 Thread Bartosz Fabianowski
But: Each time I have created these extracts I have found several country borders that have been broken. So I repaired them before creating the same stuff again and ensured that the boundary extracts were uploaded only if the country information was complete. I am happy to devote server

Re: [mkgmap-dev] Coastline issues - analysis and possible solution

2011-08-29 Thread Bartosz Fabianowski
Maybe the overlap parameter of splitter prevented that because splitter puts all points in the tile that is either contained in the bounding box or contained in a overlap region with width overlap garmin units. If overlap is larger than the expansion you don't see this problem. I investigated

[mkgmap-dev] [PATCH] Splitter area rounding seems wrong

2011-08-28 Thread Bartosz Fabianowski
Hi list I am debugging a coastline/sea generation issue and in the process of this, discovered what I believe to be a splitter bug. There is a method in RoundingUtils.java that rounds the boundaries of an area to multiples of Garmin units. The minimum and maximum longitude are both rounded

Re: [mkgmap-dev] [PATCH v1] Check size of polygons to avoid exceeding subdivision size

2011-08-28 Thread Bartosz Fabianowski
I keep seeing the following warning with current trunk (2018): SEVERE (MapSplitter): 63240001.osm.pbf: Area too small to split at [...] (reduce the density of points, length of lines, etc.) I can confirm that the patch proposed in this thread still applies cleanly and fixes these warnings.

[mkgmap-dev] Coastline issues - analysis and possible solution

2011-08-28 Thread Bartosz Fabianowski
Hi list I spent the last 12 hours debugging sea generation problems in Europe. After digging through a lot of mkgmap and splitter code, I believe I understand the source of the issues now. Since data is processed in tiles, the sea generator will often encounter coastlines clipped at the tile

[mkgmap-dev] LocatorConfig.xml and Spain

2011-05-06 Thread Bartosz Fabianowski
Hi list I just made a map of Spain using the newest Geofabrik spain.osm.pbf and mkgmap trunk. I set the default country to España. After loading the map onto my Vista via MapSource, the following countries show up in address search: Es España France Spain The two in the middle are correct.

Re: [mkgmap-dev] LocatorConfig.xml and Spain

2011-05-06 Thread Bartosz Fabianowski
Since I stopped using is_in and openGeoDb in my style files my problem on Belgium disappeared. I am sure those problematic country name variants are being read from is_in tags. So ignoring is_in will make them disappear. But I do want to use is_in, at least for now, until there is a better

[mkgmap-dev] Did anyone realize cGPSmapper speaks Garmin NT?

2011-04-26 Thread Bartosz Fabianowski
Hi list I remember many discussions and comments about how mkgmap produces Garmin's legacy format only and the NT format is still a mystery. Today, I was pointed at a discussion of the Polish UMP project (similar to OSM, strongly concentrated on Poland and surrounds). As I happen to be Polish

Re: [mkgmap-dev] Did anyone realize cGPSmapper speaks Garmin NT?

2011-04-26 Thread Bartosz Fabianowski
UMP maps do a primitive form of lane assist. The label at the top of the nüvi screen changes from Some Street to Some Street (lane name) in advance of a complex turn. That is all. No pretty pictures of junctions and lanes: http://ump.fuw.edu.pl/wiki/Asystent_Pasa_Ruchu - Bartosz

Re: [mkgmap-dev] Address search issues

2011-04-26 Thread Bartosz Fabianowski
This patch seems to work well, at least as far as Dermot and myself can tell. Before the patch is forgotten and bitrots away, maybe it could be committed? - Bartosz ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk

Re: [mkgmap-dev] [PATCH v1] Prefer multiples of 2048 as cut coordinates in multipolygons

2011-04-04 Thread Bartosz Fabianowski
I just made a jar file with that patch and uploaded it at [1]. This build additionally includes the patch posted by Steve a couple of days ago that should fix address search. - Bartosz [1] http://www.fabianowski.eu/osm/mkgmap/mkgmap.jar ___

Re: [mkgmap-dev] Address search issues

2011-03-30 Thread Bartosz Fabianowski
Yes, your patch works! I just went through the test cases that used to break. All work now. I then rebuilt a map of all of Italy. Address search works in that map as well. It looks like the bug is fixed. Thanks a lot. - Bartosz ___ mkgmap-dev mailing

Re: [mkgmap-dev] Splitter and .pbf

2011-03-30 Thread Bartosz Fabianowski
The advice should probably have been to use 161 or newer. Once pbf support was added, I do not see why it would disappear again in a later version. I am using 170 and it has parsed any pbf I have thrown at it so far. - Bartosz ___ mkgmap-dev mailing

Re: [mkgmap-dev] Address search issues

2011-03-29 Thread Bartosz Fabianowski
Perhaps its because in many countries refs begin with 'A' or 'B' and so sort early anyway. (Not true in the USA though, so can't be the whole reason). I have done a lot of testing to try and isolate the bug as best as possible. I was unable to break routing in Ireland - and there, refs start

Re: [mkgmap-dev] Address search issues

2011-03-29 Thread Bartosz Fabianowski
I have some further data points: 1. Changing ref=S6 to ref=A6 *does* make search work again. So if the ref comes before the street name alphabetically, all is good. 2. I made a corresponding minimal extract of Dublin, Ireland. I found that the same thing happens: If the single street has a ref

Re: [mkgmap-dev] Address search issues

2011-03-29 Thread Bartosz Fabianowski
* If a street has a ref that comes after its name, alphabetically, it can be found * If a street has a ref that comes *before* its name, alphabetically, the street is *not* found. Argh, I got these two the wrong way around :(. The correct statements are: * ref before name works * ref after

Re: [mkgmap-dev] Address search issues

2011-03-28 Thread Bartosz Fabianowski
I have further reduced the problematic map down to a tiny testcase. All that is left is: * A single city node providing location information to mkgmap * A single road with two nodes The road is called Demo Street and has a ref of S6. If I build a map out of this data file and install it on my

Re: [mkgmap-dev] Address search issues

2011-03-23 Thread Bartosz Fabianowski
First of all yes, the Legend is essentially a Vista without a barometer. So they are very similar. I applied your patch and regenerated the map of Italy. Search failed as before. I then started over with a tiny extract of central Turin. For this, search worked. I started increasing the

Re: [mkgmap-dev] Address search issues

2011-03-21 Thread Bartosz Fabianowski
To follow up on my earlier post, I have tried running mkgmap again on a full Geofabrik extract of Italy, split using splitter.jar with default settings. Address search still fails: I can select a country on my Vista and I do get proper behavior when typing a city. But when I start typing a

Re: [mkgmap-dev] Address search issues

2011-03-21 Thread Bartosz Fabianowski
Thanks for the tip. I removed --link-pois-to-ways and after that did not help, tried removing --make-all-cycleways as well. I can see that removing these options does change things as the map file becomes smaller - but search still fails in the exact same way. From what I understand about

Re: [mkgmap-dev] Address search issues

2011-03-21 Thread Bartosz Fabianowski
Thanks for that. I did some further investigation together with Dermot, another OSMer. Your map of Turin and my map of Italy behave in exactly the same way: Address search works on an Oregon but fails on two different Vista HCx devices. So there is something in the maps that mkgmap produces

Re: [mkgmap-dev] Address search issues

2011-03-21 Thread Bartosz Fabianowski
OFFTOPIC: I suggest to download the pbf-files. Yes, of course. The use of osm.bz2 files is a legacy decision. I have some mkgmap-related scripts that I wrote a long time ago and have not updated yet. So to make sure I can use my data files with these, I am sticking with osm.bz2 for now. Now,

[mkgmap-dev] Address search issues

2011-03-19 Thread Bartosz Fabianowski
Hi list I am trying to get address search going. It is almost working but not quite. I have updated mkgmap to the newest trunk and am invoking it with: java -ea -Xmx1536m -jar ../../mkgmap.jar \ --gmapsupp \ --description=Italia 19.03.2011 \ --countryname=Italia \