[PATCH v1] Precompiled sea generator

Hi, attached is the generator for precompiled sea data. Additionally you need some geotools libs (they are not downloaded by ivy). You can download it from http://sourceforge.net/projects/geotools/files/ The required libs are: commons-pool-1.5.4.jar gt-api-2.7.5.jar gt-cql-2.7.5.jar gt-data-2.7.5.jar gt-main-2.7.5.jar gt-metadata-2.7.5.jar gt-opengis-2.7.5.jar gt-referencing-2.7.5.jar gt-shapefile-2.7.5.jar jsr-275-1.0-beta-2.jar jts-1.11.jar vecmath-1.3.2.jar The generator can be started with java -cp <mkgmap classes dir> uk.me.parabola.mkgmap.sea.optional.PrecompSeaGenerator <shapefilename> <projection> <outputdir> shapefilename: the filename of the .shp file projection: WGS84 or any EPSG:xxxx outputdir: the directory to store the precompiled files The generator is not included in the mkgmap.jar file because the geotools libs are not automatically downloaded by ivy. If anyone can give an ivy dependency for the libs it is possible to change that. There are some performance settings that might be changed on your computer to better meet the memory/CPU settings of your computer. Have a look at the PrecompSeaGenerator constructor. The defined settings are ok for 3gb memory (-Xmx3g). WanMil

Hi,
attached is the generator for precompiled sea data.
Additionally you need some geotools libs (they are not downloaded by ivy). You can download it from http://sourceforge.net/projects/geotools/files/ The required libs are: commons-pool-1.5.4.jar gt-api-2.7.5.jar gt-cql-2.7.5.jar gt-data-2.7.5.jar gt-main-2.7.5.jar gt-metadata-2.7.5.jar gt-opengis-2.7.5.jar gt-referencing-2.7.5.jar gt-shapefile-2.7.5.jar jsr-275-1.0-beta-2.jar jts-1.11.jar vecmath-1.3.2.jar
The generator can be started with java -cp <mkgmap classes dir> uk.me.parabola.mkgmap.sea.optional.PrecompSeaGenerator <shapefilename> <projection> <outputdir>
shapefilename: the filename of the .shp file projection: WGS84 or any EPSG:xxxx outputdir: the directory to store the precompiled files
The generator is not included in the mkgmap.jar file because the geotools libs are not automatically downloaded by ivy. If anyone can give an ivy dependency for the libs it is possible to change that.
There are some performance settings that might be changed on your computer to better meet the memory/CPU settings of your computer. Have a look at the PrecompSeaGenerator constructor. The defined settings are ok for 3gb memory (-Xmx3g).
WanMil
I forgot to add one important fact: The shapefile must contain the land polygons and not the sea polygons!! You can download them from http://openstreetmapdata.com/data/land-polygons. WanMil

Hi
Additionally you need some geotools libs (they are not downloaded by ivy). You can download it from http://sourceforge.net/projects/geotools/files/
After a lot of trial and error, I came up with the attached patch that downloads the required libs. It may be necessary to delete your ivy cache for it to work - I don't know for sure but I did several times while getting it to work. This still leaves the splitter dependancy to do... ..Steve

Hi
Additionally you need some geotools libs (they are not downloaded by ivy). You can download it from http://sourceforge.net/projects/geotools/files/
After a lot of trial and error, I came up with the attached patch that downloads the required libs.
Great!!
It may be necessary to delete your ivy cache for it to work - I don't know for sure but I did several times while getting it to work.
It works like a charm.
This still leaves the splitter dependancy to do...
The osm and pbf writer are used from the splitter project and I didn't want to rewrite it. We could create a separate lib for them and put the lib to splitter and mkgmap but I am not sure if that's worthy of.
..Steve
Thanks! WanMil

Hi
Additionally you need some geotools libs (they are not downloaded by ivy). You can download it from http://sourceforge.net/projects/geotools/files/
After a lot of trial and error, I came up with the attached patch that downloads the required libs.
Great!!
It may be necessary to delete your ivy cache for it to work - I don't know for sure but I did several times while getting it to work.
It works like a charm.
Uuups, I was a little bit too quick. Using the build.xml => clean-cache and resolve four new libs are missing: gt-cql-2.7.5.jar gt-data-2.7.5.jar gt-main-2.7.5.jar gt-shapefile-2.7.5.jar WanMil
This still leaves the splitter dependancy to do...
The osm and pbf writer are used from the splitter project and I didn't want to rewrite it. We could create a separate lib for them and put the lib to splitter and mkgmap but I am not sure if that's worthy of.
..Steve
Thanks! WanMil
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi
Uuups, I was a little bit too quick. Using the build.xml => clean-cache and resolve four new libs are missing: gt-cql-2.7.5.jar gt-data-2.7.5.jar gt-main-2.7.5.jar gt-shapefile-2.7.5.jar
OK new patch attached. I remember adding gt-cql before - but is gt-shapefile really needed? ..Steve

Hi
Uuups, I was a little bit too quick. Using the build.xml => clean-cache and resolve four new libs are missing: gt-cql-2.7.5.jar gt-data-2.7.5.jar gt-main-2.7.5.jar gt-shapefile-2.7.5.jar
OK new patch attached. I remember adding gt-cql before - but is gt-shapefile really needed?
Thanks! gt-shapefile is required. It is not required for compilation becaue there is no direct import. But the shapefile cannot be opened if the lib is not in classpath during runtime. The patch now works for me :-) WanMil
..Steve
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (2)
-
Steve Ratcliffe
-
WanMil