[Gdal-dev] RE: swig/java dumps core

oland com at navicon.dk
Wed Oct 25 14:13:07 EDT 2006

Just tested the GDALtest app with the geotiffs from here 
http://www.hydro.gov.au/seafarer/geotiff/geotiff-sample/AUS00605.zip AUS
Hydro Tiffs  loading them in to the application causes

Exception in thread "main" java.lang.UnsupportedOperationException: This
method is not supported by this color model
        at java.awt.image.ColorModel.coerceData(ColorModel.java:1518)
        at java.awt.image.BufferedImage.coerceData(BufferedImage.java:1189)
        at java.awt.image.BufferedImage.<init>(BufferedImage.java:635)
        at GDALtest.openFile(GDALtest.java:303)
        at GDALtest.<init>(GDALtest.java:91)
        at GDALtest.main(GDALtest.java:345)

I tried altering the code at line 303 to:

	img = new BufferedImage(xsize, ysize,
						data_type, (IndexColorModel)cm);

That eliminated the exception but no image appeared?


Collins, Benjamin wrote:
> Carsten,
> You are probably having problems with the retrieval of GCPs.  In order
> to make the retrieval as natural as possible in Java, I put the results
> in a Vector.  Since I have no files with GCPs sitting around to test
> this approach on, it remains mostly untested.  I can take a look at
> this problem if you have a sample that I can access.
> --
> Ben Collins 
>>-----Original Message-----
>>From: gdal-dev-bounces at lists.maptools.org 
>>[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of oland
>>Sent: Wednesday, October 25, 2006 10:33 AM
>>To: gdal-dev at lists.maptools.org
>>Subject: [Gdal-dev] swig/java dumps core
>>Hello List
>>I have built the swing/java bindings in gdal-1.3.2. When I try 
>>to run the
>>gdalinfo java app it dumps core see below.
>>java -cp .:../gdal.jar -Djava.library.path=../.libs/ gdalinfo
>>Driver: BSB/Maptech BSB Nautical Charts
>>Size is 10967, 9389
>>Coordinate System is:
>>Origin = (0.0,0.0)
>>Pixel Size = (1.0,1.0)
>>  0.0, 1.0, 0.0
>>  0.0, 0.0, 1.0
>>GCP Projection = GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS
>># An unexpected error has been detected by HotSpot Virtual Machine:
>>#  SIGSEGV (0xb) at pc=0xb78475ff, pid=24875, tid=3085108928
>># Java VM: Java HotSpot(TM) Client VM (1.5.0-b64 mixed mode)
>># Problematic frame:
>># V  [libjvm.so+0x1695ff]
>># An error report file with more information is saved as 
>># If you would like to submit a bug report, please visit:
>>#   http://java.sun.com/webapps/bugreport/crash.jsp
>>Any hints?
>>The error log can be seen here
>>View this message in context: 
>>Sent from the GDAL - Dev mailing list archive at Nabble.com.
>>Gdal-dev mailing list
>>Gdal-dev at lists.maptools.org
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev

View this message in context: http://www.nabble.com/swig-java-dumps-core-tf2507983.html#a6997341
Sent from the GDAL - Dev mailing list archive at Nabble.com.

More information about the Gdal-dev mailing list