Hi Ticker,

Am 2026-07-02 10:40, schrieb Ticker Berkin via mkgmap-dev:
Hi Thorsten

I've downloaded land-polygons-complete-4326. Is it correct to use this rather
than the split version?

The split version works for me most of the time better than the split version, you need to try.

About your missing jar files: I run "ant optional" and afterwards you can find them
in lib/optional.
The only jar which cannot be found and produces an error is ivy.jar, I use that from our apache-ivy package.

  Thorsten

I chose geotools-35.0 from http://sourceforge.net/projects/geotools/files/ as it
seems to be the latest.

Adapting your script, I can't find:
  ${geotools}/gt-data.jar
  ${geotools}/gt-opengis.jar
  ${geotools}/vecmath.jar
from the above download - presumably this will cause the failure I see

Using splitter and mkgmap (with optional components) built from recent sources
and OpenJDK 64-bit 21.0.11.0.10-2 I get as far as:

$ java -ea -cp ../mkgmap/mkgmap.jar:../splitter/splitter.jar:geotools-
35.0/lib/gt-api-35.0.jar:geotools-35.0/lib/gt-cql-35.0.jar:geotools-35.0/lib/gt-
data-35.0.jar:geotools-35.0/lib/gt-main-35.0.jar:geotools-35.0/lib/gt-metadata-
35.0.jar:geotools-35.0/lib/gt-opengis-35.0.jar:geotools-35.0/lib/gt-referencing-
35.0.jar:geotools-35.0/lib/gt-shapefile-35.0.jar:geotools-35.0/lib/jsr-
35.0.jar:geotools-35.0/lib/jts-35.0.jar:geotools-35.0/lib/vecmath-35.0.jar
uk.me.parabola.mkgmap.sea.optional.PrecompSeaGenerator land-polygons-complete-
4326/land_polygons.shp WGS84 sea-latest

Error: Unable to initialize main class
uk.me.parabola.mkgmap.sea.optional.PrecompSeaGenerator
Caused by: java.lang.NoClassDefFoundError:
org/opengis/referencing/crs/CoordinateReferenceSystem

Should I start with a different version of geotools

Thanks
Ticker


On Wed, 2026-07-01 at 12:13 +0200, Thorsten Kukuk wrote:

Hi Ticker,

I can track down the OutOfMemoryError to java-1.8.0.

java 1.8.0.492 runs either out of memory or hangs for days in an endless
loop.
java 1.8.0.482 works fine.

Did took some time to me to find out that this is the real culprit,
there were too many variable data in the game.

To reproduce:

Download the shapefile for WGS84 from
https://osmdata.openstreetmap.de/data/land-polygons.html

And run:
mkgmap_sea_generator land-polygons-*/land_polygons.shp WGS84 sea-test

mkgmap_sea_generator is a wrapper script:
/usr/lib64/jvm/jre-1.8.0-openjdk//bin/java -Xmx8192M -cp
/usr/share/java/mkgmap.jar:/usr/share/java/mkgmap-SeaGenerator/splitter-
412.jar:/usr/share/java/mkgmap-SeaGenerator/commons-
pool.jar:/usr/share/java/mkgmap-SeaGenerator/gt-
api.jar:/usr/share/java/mkgmap-SeaGenerator/gt-cql.jar:/usr/share/java/mkgmap-
SeaGenerator/gt-data.jar:/usr/share/java/mkgmap-SeaGenerator/gt-
main.jar:/usr/share/java/mkgmap-SeaGenerator/gt-
metadata.jar:/usr/share/java/mkgmap-SeaGenerator/gt-
opengis.jar:/usr/share/java/mkgmap-SeaGenerator/gt-
referencing.jar:/usr/share/java/mkgmap-SeaGenerator/gt-
shapefile.jar:/usr/share/java/mkgmap-
SeaGenerator/jsr.jar:/usr/share/java/mkgmap-
SeaGenerator/jts.jar:/usr/share/java/mkgmap-SeaGenerator/vecmath.jar
uk.me.parabola.mkgmap.sea.optional.PrecompSeaGenerator "$@"

mkgmap.jar is build with SeaGenerator enabled following the mkgmap
documentation.


For the "land-only tile is flooded" problem: I cannot reproduce that
since I didn't saved the that state of the OSM data and the people
currently break the coastline faster than other can repair them :(
But with the latest land polygons this did not show up, but the land
polygons are not correct due to the broken coastline...

Regards,
Thorsten
_______________________________________________
mkgmap-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo/%(_internal_name)s
_______________________________________________
mkgmap-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo/%(_internal_name)s

Reply via email to