[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);
        img.setData(raster);

That eliminated the exception but no image appeared?

Carsten
			


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
>>/opt/Mapdata/BSB_ROOT/11006/11006_1.KAP
>>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
>>84",6378137,298.257223563,AUTHORITY["EPSG",7030]],TOWGS84[0,0,0
>>,0,0,0,0],AUTHORITY["EPSG",6326]],PRIMEM["Greenwich",0,AUTHORIT
>>Y["EPSG",8901]],UNIT["degree",0.0174532925199433,AUTHORITY["EPS
>>G",9108]],AXIS["Lat",NORTH],AXIS["Long",EAST],AUTHORITY["EPSG",4326]]
>>#
>># 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 
>>hs_err_pid24875.log
>>#
>># If you would like to submit a bug report, please visit:
>>#   http://java.sun.com/webapps/bugreport/crash.jsp
>>#
>>Abort
>>
>>Any hints?
>>
>>The error log can be seen here
>>
>>http://www.nabble.com/file/3845/hs_err_pid24875.log 
>>hs_err_pid24875.log 
>>
>>Carsten
>>-- 
>>View this message in context: 
>>http://www.nabble.com/swig-java-dumps-core-tf2507983.html#a6993229
>>Sent from the GDAL - Dev mailing list archive at Nabble.com.
>>
>>_______________________________________________
>>Gdal-dev mailing list
>>Gdal-dev at lists.maptools.org
>>http://lists.maptools.org/mailman/listinfo/gdal-dev
>>
> 
> _______________________________________________
> 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