Changed build.xml for DEM generation

Hi, I'm using Linux and was searching for a way to create contour lines. Therefore I was amazed that Christian Gawron just added the functionality to mkgmap in svn. But then I realized, that it was disabled again. Therefore I would like to propose the changes to the build.xml file and the external.properties (see attached files). This would enable the GeoTIFF class build if JAI is available. By the way I'm still trying to understand the DEM functionality. Can anyone add some more information to the Wiki, e.g. - where to download the needed files, - how to set the required bounding box, - an example of the content of the directory set by --dem-path - etc. Sorry about the questions, but I'm really curious about this functionality. Regards, Jörg ______________________________________________________ GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de

I installed jai: yes Unpacking... Checksumming... 0 0 Extracting... UnZipSFX 5.31 of 31 May 1997, by Info-ZIP (Zip-Bugs@lists.wku.edu). inflating: COPYRIGHT-jai.txt inflating: DISTRIBUTIONREADME-jai.txt inflating: LICENSE-jai.txt inflating: THIRDPARTYLICENSEREADME-jai.txt inflating: UNINSTALL-jai inflating: lib/i386/libmlib_jai.so inflating: lib/ext/jai_core.jar inflating: lib/ext/jai_codec.jar inflating: lib/ext/mlibwrapper_jai.jar Done. maning@cumingi:/usr/lib/jvm/java-6-sun/jre$ And then used this build.xml for mkgmap: maning@cumingi:~/osm/routable_garmin/mkgmap/trunk$ ant dist Buildfile: build.xml prepare: compile: [javac] Compiling 1 source file to /home/maning/osm/routable_garmin/mkgmap/trunk/build/classes [javac] /home/maning/osm/routable_garmin/mkgmap/trunk/src/uk/me/parabola/mkgmap/reader/dem/optional/GeoTiffDEM.java:28: package com.sun.media.jai.codec does not exist [javac] import com.sun.media.jai.codec.*; [javac] ^ [javac] /home/maning/osm/routable_garmin/mkgmap/trunk/src/uk/me/parabola/mkgmap/reader/dem/optional/GeoTiffDEM.java:29: package javax.media.jai does not exist [javac] import javax.media.jai.*; [javac] ^ [javac] /home/maning/osm/routable_garmin/mkgmap/trunk/src/uk/me/parabola/mkgmap/reader/dem/optional/GeoTiffDEM.java:36: cannot find symbol [javac] symbol : class PlanarImage [javac] location: class uk.me.parabola.mkgmap.reader.dem.optional.GeoTiffDEM [javac] PlanarImage image; [javac] ^ [javac] /home/maning/osm/routable_garmin/mkgmap/trunk/src/uk/me/parabola/mkgmap/reader/dem/optional/GeoTiffDEM.java:42: cannot find symbol [javac] symbol : class SeekableStream [javac] location: class uk.me.parabola.mkgmap.reader.dem.optional.GeoTiffDEM [javac] SeekableStream s = new FileSeekableStream(fileName); [javac] ^ [javac] /home/maning/osm/routable_garmin/mkgmap/trunk/src/uk/me/parabola/mkgmap/reader/dem/optional/GeoTiffDEM.java:42: cannot find symbol [javac] symbol : class FileSeekableStream [javac] location: class uk.me.parabola.mkgmap.reader.dem.optional.GeoTiffDEM [javac] SeekableStream s = new FileSeekableStream(fileName); [javac] ^ [javac] /home/maning/osm/routable_garmin/mkgmap/trunk/src/uk/me/parabola/mkgmap/reader/dem/optional/GeoTiffDEM.java:46: cannot find symbol [javac] symbol : class TIFFDecodeParam [javac] location: class uk.me.parabola.mkgmap.reader.dem.optional.GeoTiffDEM [javac] TIFFDecodeParam param = new TIFFDecodeParam(); [javac] ^ [javac] /home/maning/osm/routable_garmin/mkgmap/trunk/src/uk/me/parabola/mkgmap/reader/dem/optional/GeoTiffDEM.java:46: cannot find symbol [javac] symbol : class TIFFDecodeParam [javac] location: class uk.me.parabola.mkgmap.reader.dem.optional.GeoTiffDEM [javac] TIFFDecodeParam param = new TIFFDecodeParam(); [javac] ^ [javac] /home/maning/osm/routable_garmin/mkgmap/trunk/src/uk/me/parabola/mkgmap/reader/dem/optional/GeoTiffDEM.java:49: cannot find symbol [javac] symbol : class RenderedOp [javac] location: class uk.me.parabola.mkgmap.reader.dem.optional.GeoTiffDEM [javac] RenderedOp op = JAI.create("tiff", pb); [javac] ^ [javac] /home/maning/osm/routable_garmin/mkgmap/trunk/src/uk/me/parabola/mkgmap/reader/dem/optional/GeoTiffDEM.java:49: cannot find symbol [javac] symbol : variable JAI [javac] location: class uk.me.parabola.mkgmap.reader.dem.optional.GeoTiffDEM [javac] RenderedOp op = JAI.create("tiff", pb); [javac] ^ [javac] 9 errors BUILD FAILED /home/maning/osm/routable_garmin/mkgmap/trunk/build.xml:74: Compile failed; see the compiler error output for details. Total time: 4 seconds Any ideas? On Wed, Aug 12, 2009 at 6:50 AM, <jspanke@web.de> wrote:
Hi, I'm using Linux and was searching for a way to create contour lines. Therefore I was amazed that Christian Gawron just added the functionality to mkgmap in svn. But then I realized, that it was disabled again. Therefore I would like to propose the changes to the build.xml file and the external.properties (see attached files). This would enable the GeoTIFF class build if JAI is available.
By the way I'm still trying to understand the DEM functionality. Can anyone add some more information to the Wiki, e.g. - where to download the needed files, - how to set the required bounding box, - an example of the content of the directory set by --dem-path - etc.
Sorry about the questions, but I'm really curious about this functionality.
Regards, Jörg ______________________________________________________ GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

On Aug 15, 2009, at 7:54, maning sambale wrote:
package com.sun.media.jai.codec does not exist [javac] import com.sun.media.jai.codec.*;
Hm... this sounds a lot like javac cannot find the jai jar files. Are you sure you put the jai stuff in a directory which javac can find? (I've installed jai on Windows and Mac OS, but never on Linux, so I am not familiar with the directory structure, but are you sure your javac is using the classes under /usr/lib/jvm/java-6-sun/jre?) Cheers.

On Aug 15, 2009, at 7:54, maning sambale wrote:
And then used this build.xml for mkgmap:
maning@cumingi:~/osm/routable_garmin/mkgmap/trunk$ ant dist Buildfile: build.xml
It also occurs to me that if you are using the build.xml file from Jörg, I assume you have to adjust the path to the jai classes in the external properties file which Jörg also provided. Cheers

I followed these steps: cd /usr/lib/jvm/java-6-sun sudo wget http://timphillips.net/jai_files/jai_imageio-1_1-lib-linux-i586-jdk.tar.gz sudo tar -zxvf ./jai_imageio-1_1-lib-linux-i586-jdk.tar.gz sudo rm jai_imageio-1_1-lib-linux-i586-jdk.tar.gz On Sat, Aug 15, 2009 at 5:05 PM, Clinton Gladstone<clinton.gladstone@googlemail.com> wrote:
On Aug 15, 2009, at 7:54, maning sambale wrote:
And then used this build.xml for mkgmap:
maning@cumingi:~/osm/routable_garmin/mkgmap/trunk$ ant dist Buildfile: build.xml
It also occurs to me that if you are using the build.xml file from Jörg, I assume you have to adjust the path to the jai classes in the external properties file which Jörg also provided.
Cheers _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

Hi Maning, I don't think you will need jai_imageio. You only need jai itself from java.net. https://jai.dev.java.net/binary-builds.html But I guess you can also install it with your preferred linux distribution package manager. But as remarked beforehand, you will need to adjust your classpath accordingly: java -Xmx3092M -classpath /usr/share/sun-jai- bin/lib/jai_codec.jar;/usr/share/sun-jai- bin/lib/mlibwrapper_jai.jar;/usr/share/sun-jai-bin/lib/jai_core.jar -jar /home/joerg/eclipse/workspace/mkgmap/dist/mkgmap.jar By the way: Did I something wrong or should I change something so that the patch is added or at least discussed? Greetings, Jörg Am Sunday 16 August 2009 schrieb maning sambale:
I followed these steps: cd /usr/lib/jvm/java-6-sun sudo wget http://timphillips.net/jai_files/jai_imageio-1_1-lib-linux-i586-jdk.tar.gz sudo tar -zxvf ./jai_imageio-1_1-lib-linux-i586-jdk.tar.gz sudo rm jai_imageio-1_1-lib-linux-i586-jdk.tar.gz

Thanks will report progress tonight. On Mon, Aug 17, 2009 at 4:17 AM, Jörg Spanke<jspanke@web.de> wrote:
Hi Maning, I don't think you will need jai_imageio. You only need jai itself from java.net. https://jai.dev.java.net/binary-builds.html But I guess you can also install it with your preferred linux distribution package manager. But as remarked beforehand, you will need to adjust your classpath accordingly: java -Xmx3092M -classpath /usr/share/sun-jai- bin/lib/jai_codec.jar;/usr/share/sun-jai- bin/lib/mlibwrapper_jai.jar;/usr/share/sun-jai-bin/lib/jai_core.jar -jar /home/joerg/eclipse/workspace/mkgmap/dist/mkgmap.jar
By the way: Did I something wrong or should I change something so that the patch is added or at least discussed?
Greetings, Jörg
Am Sunday 16 August 2009 schrieb maning sambale:
I followed these steps: cd /usr/lib/jvm/java-6-sun sudo wget http://timphillips.net/jai_files/jai_imageio-1_1-lib-linux-i586-jdk.tar.gz sudo tar -zxvf ./jai_imageio-1_1-lib-linux-i586-jdk.tar.gz sudo rm jai_imageio-1_1-lib-linux-i586-jdk.tar.gz
mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------
participants (4)
-
Clinton Gladstone
-
jspanke@web.de
-
Jörg Spanke
-
maning sambale