[Freegis-list] Solution: DEMViewer on Win32
Matt.Wilkie
Matt.Wilkie at gov.yk.ca
Wed Jul 18 18:00:34 CEST 2001
Previously I asked if anybody knew how to get DEMViewer
(http://www.geogr.uni-jena.de/~p6taug/demviewer/)
working on Windows. After a few hours I managed to work it
out for myself on Win2k though no doubt there are other
perhaps cleaner methods.
1) Download the packages:
DEMViewer source code:
http://www.geogr.uni-jena.de/~p6taug/demviewer/demv_src.jar
(I just could not get the compiled version to work, maybe
because of missing files?)
DEMViewer sample ArcGrid ascii file:
http://www.geogr.uni-jena.de/~p6taug/demviewer/andes16k.dgm
Compiled VisAD jar file:
ftp://www.ssec.wisc.edu/pub/visad-2.0/visad.jar
(I couldn't get the source code to compile, probably because
of my own ignorance :).
*Java 2 SDK, v1.3.1:
http://java.sun.com/j2se/1.3/download-windows.html
*Java3D for Windows (OpenGL verison) SDK for the JDK:
http://java.sun.com/products/java-media/3D/download.html
* if you are using IE5.5sp1 answer "Open from current location"
-twice-, then "Save to disk" or else you'll get a nonsensical
html file.
2) Install the Java2 SDK, then the Java3D SDK. (In previous
battles I had uninstalled all previously installed Java Runtime
Environment (JRE) versions. Dunno if that was necessary or
not)
3) Fire up a cmd shell and:
> set path=c:\jdk1.3.1\bin;%path%
> md c:\dev-apps\DEMV
> cd c:\dev-apps\DEMV
> copy c:\downloads\visad.jar
> copy c:\downloads\dem_src.jar
> jar xvf demv_src.jar
> cd src
> set CLASSPATH=../visad.jar;.
> for %a in (*.java) do javac %a
and you are done! Run DEMViewer with:
> java DEMViewer c:\downloads\andes16k.dgm
Note that in future cmd shell sessions you will have to
enter the the path and classpath set statements again
(using the java commandline option '-classpath ../visad.jar;.'
did not work for me) and run DEMViewer from the src directory.
It is a memory pig. A grid with 1321x1270 rows and columns
ran out of memory with 200mb allocated (using 'java -mx200mb').
A 661x635 grid used 127mb of ram.
cheers,
-matt
-----------------------------------------------------------------
Matt Wilkie * Yukon Renewable Resources GIS
http://renres.gov.yk.ca/pubs/rrgis/
-----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: here.url
Type: application/octet-stream
Size: 111 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/freegis-list/attachments/20010718/490211db/here.url
More information about the Freegis-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)