Dear Thomas, all,
I got the pyramid builder to run, but I am getting back a weird error 
(java.lang.IllegalArgumentException: width*height > Integer.MAX_VALUE!), 
stack trace below.
I have no idea waht could cause this error. Clearly, the width and 
height are lesser then the size of the raster (gdalinfo output at end of 
message).

Jul 16, 2009 11:16:17 AM org.geotools.utils.imagepyramid.PyramidBuilder 
getNotification
INFO: Progress is at 5.555555555555555
attached message is: Acquiring a reader to  
/home/gis/mtomko/data/corineprocessing/corine_merge_gtiff_proj.tiff
Jul 16, 2009 11:16:22 AM org.geotools.utils.imagepyramid.PyramidBuilder 
getNotification
INFO: Progress is at 5.555555555555555
attached message is: Original envelope is GeneralEnvelope[(800000.0, 
700000.0), (7500000.000000004, 6500000.000000004)]
Jul 16, 2009 11:16:22 AM org.geotools.utils.imagepyramid.PyramidBuilder 
getNotification
INFO: Progress is at 5.555555555555555
attached message is: Original range is GeneralGridRange[0..66999, 0..57999]
Jul 16, 2009 11:16:22 AM org.geotools.utils.imagepyramid.PyramidBuilder 
getNotification
INFO: Progress is at 5.555555555555555
attached message is: New matrix dimension is (cols,rows)==(300,300)
Jul 16, 2009 11:16:22 AM org.geotools.utils.imagepyramid.PyramidBuilder 
getNotification
INFO: Progress is at 5.555555555555555
attached message is: Writing region  
java.awt.Rectangle[x=0,y=0,width=300,height=300]
Jul 16, 2009 11:16:22 AM org.geotools.utils.imagepyramid.PyramidBuilder 
getNotification
INFO: Progress is at 5.555555555555555
attached message is: Preparing to write tile (col,row)==(0,0) to file 
/home/gis/mtomko/data/corineprocessing/pyramid/0/mosaic_0.tiff
Exception in thread "PyramidBuilder" java.lang.IllegalArgumentException: 
width*height > Integer.MAX_VALUE!
        at javax.imageio.ImageReader.getDestination(ImageReader.java:2823)
        at 
com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader.prepareRead(TIFFImageReader.java:812)
        at 
com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader.read(TIFFImageReader.java:979)
        at 
com.sun.media.jai.imageioimpl.ImageReadOpImage.computeTile(ImageReadOpImage.java:667)
        at 
com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
        at javax.media.jai.OpImage.getTile(OpImage.java:1139)
        at javax.media.jai.PlanarImage.cobbleByte(PlanarImage.java:2863)
        at javax.media.jai.PlanarImage.getData(PlanarImage.java:2182)
        at javax.media.jai.RenderedOp.getData(RenderedOp.java:2287)
        at 
com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.writeTile(TIFFImageWriter.java:1325)
        at 
com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.write(TIFFImageWriter.java:2201)
        at 
com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.write(TIFFImageWriter.java:1983)
        at 
org.geotools.gce.geotiff.GeoTiffWriter.writeImage(GeoTiffWriter.java:384)
        at 
org.geotools.gce.geotiff.GeoTiffWriter.write(GeoTiffWriter.java:215)
        at 
org.geotools.utils.coveragetiler.CoverageTiler.run(CoverageTiler.java:436)
        at 
org.geotools.utils.imagepyramid.PyramidBuilder.tileInput(PyramidBuilder.java:550)
        at 
org.geotools.utils.imagepyramid.PyramidBuilder.run(PyramidBuilder.java:461)
        at java.lang.Thread.run(Thread.java:595)

Thanks a lot for any pointer,
Martin
P.S.

Here is the gdalinfo of my input geotiff:
Driver: GTiff/GeoTIFF
Files: corine_merge_gtiff_proj.tiff
Size is 67000, 58000
Coordinate System is:
PROJCS["ETRS89 / ETRS-LAEA",
    GEOGCS["ETRS89",
        DATUM["European_Terrestrial_Reference_System_1989",
            SPHEROID["GRS 1980",6378137,298.2572221010002,
                AUTHORITY["EPSG","7019"]],
            AUTHORITY["EPSG","6258"]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433],
        AUTHORITY["EPSG","4258"]],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","3035"]]
Origin = (800000.000000000000000,6500000.000000003700000)
Pixel Size = (100.000000000000060,-100.000000000000070)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_SOFTWARE=IMAGINE TIFF Support
Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved
@(#)$RCSfile: etif.c $ $Revision: 1.10.1.9.1.9.2.11 $ $Date: 2004/09/15 
18:42:01
EDT $
  TIFFTAG_XRESOLUTION=1
  TIFFTAG_YRESOLUTION=1
  TIFFTAG_RESOLUTIONUNIT=1 (unitless)
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  800000.000, 6500000.000)
Lower Left  (  800000.000,  700000.000)
Upper Right ( 7500000.000, 6500000.000)
Lower Right ( 7500000.000,  700000.000)
Center      ( 4150000.000, 3600000.000)
Band 1 Block=256x256 Type=Byte, ColorInterp=Gray
  Min=0.000 Max=111.000
  Minimum=0.000, Maximum=111.000, Mean=21.000, StdDev=10.126
  NoData Value=0
  Metadata:
    STATISTICS_MINIMUM=0
    STATISTICS_MAXIMUM=111
    STATISTICS_MEAN=20.999848782713
    STATISTICS_MEDIAN=22
    STATISTICS_MODE=12
    STATISTICS_STDDEV=10.12568339717
    LAYER_TYPE=athematic
    
STATISTICS_HISTOBINVALUES=42192|605187|13248015|2002164|191849|103178|291177
|616482|108056|118797|287934|809915|107357887|3174867|587198|3938388|2513981|399
6295|37602658|989760|25906256|20696413|3188788|45453476|64990382|29133002|118341
83|9084855|10153993|23973728|388710|2087041|3965211|151332|166388|1206595|716307
2|311502|74150|1040750|1061851|9894324|563522|324874|16885|114|106759|42632|7145
|6560|486703|24676|567356|29744|1077376|812218|790752|3738|156892|Driver: 
GTiff/GeoTIFF
Files: corine_merge_gtiff_proj.tiff
Size is 67000, 58000
Coordinate System is:
PROJCS["ETRS89 / ETRS-LAEA",
    GEOGCS["ETRS89",
        DATUM["European_Terrestrial_Reference_System_1989",
            SPHEROID["GRS 1980",6378137,298.2572221010002,
                AUTHORITY["EPSG","7019"]],
            AUTHORITY["EPSG","6258"]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433],
        AUTHORITY["EPSG","4258"]],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","3035"]]
Origin = (800000.000000000000000,6500000.000000003700000)
Pixel Size = (100.000000000000060,-100.000000000000070)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_SOFTWARE=IMAGINE TIFF Support
Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved
@(#)$RCSfile: etif.c $ $Revision: 1.10.1.9.1.9.2.11 $ $Date: 2004/09/15 
18:42:01
EDT $
  TIFFTAG_XRESOLUTION=1
  TIFFTAG_YRESOLUTION=1
  TIFFTAG_RESOLUTIONUNIT=1 (unitless)
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  800000.000, 6500000.000)
Lower Left  (  800000.000,  700000.000)
Upper Right ( 7500000.000, 6500000.000)
Lower Right ( 7500000.000,  700000.000)
Center      ( 4150000.000, 3600000.000)
Band 1 Block=256x256 Type=Byte, ColorInterp=Gray
  Min=0.000 Max=111.000
  Minimum=0.000, Maximum=111.000, Mean=21.000, StdDev=10.126
  NoData Value=0
  Metadata:
    STATISTICS_MINIMUM=0
    STATISTICS_MAXIMUM=111
    STATISTICS_MEAN=20.999848782713
    STATISTICS_MEDIAN=22
    STATISTICS_MODE=12
    STATISTICS_STDDEV=10.12568339717
    LAYER_TYPE=athematic
    
STATISTICS_HISTOBINVALUES=42192|605187|13248015|2002164|191849|103178|291177
|616482|108056|118797|287934|809915|107357887|3174867|587198|3938388|2513981|399
6295|37602658|989760|25906256|20696413|3188788|45453476|64990382|29133002|118341
83|9084855|10153993|23973728|388710|2087041|3965211|151332|166388|1206595|716307
2|311502|74150|1040750|1061851|9894324|563522|324874|16885|114|106759|42632|7145
|6560|486703|24676|567356|29744|1077376|812218|790752|3738|156892|




Thomas Lutz wrote:
> Sorry for the last mail, to fast to check the reply-to address....
>
> https://jai.dev.java.net/binary-builds.html
>
> this is were you get the jai stuff...and it needs to be installed.
>
> Tom
>
> Martin Tomko schrieb:
>> Dear All,
>> I was trying to build some image pyramid using the PyramidBuilder, 
>> but without success, I even followed the tutorial at
>> http://docs.codehaus.org/display/GEOTDOC/Generating+Image+Pyramid+Guide
>> downloaded the exact same release of GT, but I keep on getting class 
>> not found exceptions for the javax.media.jai.JAI. I do have all files 
>> that seem related on classpath, as they came with the geotools binary 
>> build:
>> ... 
>> imageio-ext-customstreams-1.0-SNAPSHOT.jar,jai_core-1.1.3.jar;jai_imageio-1.1.jar;...
>>  
>> and as mentioned in the tutorial.
>> I am not running it from eclipse/maven or similar, just using it as a 
>> command line tool on as erver that I have no chance to configure. I 
>> tried on my local box, but with the same result. Does it need jai to 
>> be installed somehow specially?
>>
>> Thanks
>> Martin
>>
>> Full error listing:
>> ...
>> Exception in thread "main" java.lang.NoClassDefFoundError: 
>> javax/media/jai/JAI
>>         at 
>> org.geotools.utils.progress.BaseArgumentsManager.setJAIHints(BaseArgu
>> mentsManager.java:288)
>>         at 
>> org.geotools.utils.progress.BaseArgumentsManager.parseArgs(BaseArgume
>> ntsManager.java:225)
>>         at 
>> org.geotools.utils.imagepyramid.PyramidBuilder.parseArgs(PyramidBuild
>> er.java:641)
>>         at 
>> org.geotools.utils.imagepyramid.PyramidBuilder.main(PyramidBuilder.ja
>> va:787)
>> Caused by: java.lang.ClassNotFoundException: javax.media.jai.JAI
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>         ... 4 more
>>
>>
>> ------------------------------------------------------------------------------
>>  
>>
>> Enter the BlackBerry Developer Challenge  This is your chance to win 
>> up to $100,000 in prizes! For a limited time, vendors submitting new 
>> applications to BlackBerry App World(TM) will have
>> the opportunity to enter the BlackBerry Developer Challenge. See full 
>> prize  details at: http://p.sf.net/sfu/Challenge
>> _______________________________________________
>> Geotools-gt2-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>>   
>
>
>


-- 
Martin Tomko
Postdoctoral Research Assistant 
    
Geographic Information Systems Division
Department of Geography
University of Zurich - Irchel
Winterthurerstr. 190
CH-8057 Zurich, Switzerland

email:  [email protected]
site:   http://www.geo.uzh.ch/~mtomko
mob:    +41-788 629 558
tel:    +41-44-6355256
fax:    +41-44-6356848


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to