Re: [mkgmap-dev] [PATCH v1] sea polygons

2009-08-02 Thread Dermot McNally
This exhausted the 2G of heap space I had allocated when I tried it on a map of Ireland. Are there known practical limits I should try to stay within? Dermot 2009/8/1 Christian Gawron christian.gaw...@gmx.de: Hi, the attached patch adds a sea polygon  (based on the bounding box of the map)

Re: [mkgmap-dev] [PATCH v1] sea polygons

2009-08-02 Thread maning sambale
1 GB of heap size could not compile 62 MB osm file time java -Xmx1012m -jar /home/maning/osm/routable_garmin/mkgmap/trunk/dist/mkgmap.jar --code-page=1252 --tdbfile --latin1 --country-abbr=PHI --country-name=PHILIPPINES --remove-short-arcs --route --road-name-pois --add-pois-to-areas

Re: [mkgmap-dev] [PATCH v1] sea polygons

2009-08-02 Thread Christian Gawron
Dermot McNally schrieb: This exhausted the 2G of heap space I had allocated when I tried it on a map of Ireland. Are there known practical limits I should try to stay within? Dermot I'm afraid the reason is the code which joins the shoreline segments. The code constructs a new way when

Re: [mkgmap-dev] [PATCH v1] sea polygons

2009-08-02 Thread Christian Gawron
Thanks for posting this! The output suggests that the code repeatedly concatenates a (closed) way with itself - this surely will exhaust the heap space quickly. I'will post an improved patch later. Best wishes Christian maning sambale schrieb: 1 GB of heap size could not compile 62 MB osm

Re: [mkgmap-dev] [PATCH v1] sea polygons

2009-08-02 Thread Clinton Gladstone
On Aug 2, 2009, at 11:03, Christian Gawron wrote: The output suggests that the code repeatedly concatenates a (closed) way with itself - this surely will exhaust the heap space quickly. I'will post an improved patch later. Hi Christian, I also received heap overflows similar to what was

[mkgmap-dev] [PATCH v1] sea polygons

2009-08-01 Thread Christian Gawron
Hi, the attached patch adds a sea polygon (based on the bounding box of the map) and a multipolygon relation with all lines tagged as natural=coastline as inner elements. The code merges coastline components as far as possible. The patch also contains the multipolygon patch by Rudi which

Re: [mkgmap-dev] [PATCH v1] sea polygons

2009-08-01 Thread Christian Gawron
I forgot to mention that you have to add --generate-sea if you want to have the sea polygon added. Best wishes Christian ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev