Alright, I finally build the 2.3.x branch and tried to visualize the
famous geotiff. After a very long while it goes out of heap space:

Jan 23, 2007 6:57:56 PM org.geotools.renderer.lite.StreamingRenderer paint
SEVERE: Java heap space
java.lang.OutOfMemoryError: Java heap space
        at javax.media.jai.RasterAccessor.<init>(RasterAccessor.java:791)
        at 
com.sun.media.jai.opimage.FilteredSubsampleOpImage.computeRect(FilteredSubsampleOpImage.java:696)
        at 
javax.media.jai.GeometricOpImage.computeTile(GeometricOpImage.java:683)
        at 
com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:914)
        at javax.media.jai.OpImage.getTile(OpImage.java:1138)
        at javax.media.jai.RenderedOp.getTile(RenderedOp.java:2257)
        at 
com.sun.media.jai.iterator.RectIterCSM.setDataBuffer(RectIterCSM.java:70)
        at 
com.sun.media.jai.iterator.RectIterFallback.<init>(RectIterFallback.java:147)
        at com.sun.media.jai.iterator.RectIterCSM.<init>(RectIterCSM.java:36)
        at 
com.sun.media.jai.iterator.RectIterCSMByte.<init>(RectIterCSMByte.java:25)
        at 
javax.media.jai.iterator.RectIterFactory.create(RectIterFactory.java:72)
        at org.geotools.coverage.grid
    ...


I assigned 512 megs to the virtual machine, so it really shouldn't go
out of heap for a map of 1.7 megs (compressed, but however...).

any idea?

Andrea



* [A.D. 23/01/07 09:18], Andrea Aime <[EMAIL PROTECTED]> probably wrote:
> Andrea Antonello ha scritto:
> > 
> > Hi Andrea, Simone,
> > I need some help to get out of this (confusion of mine).
> > 
> > I checked out the sources and tried the maven2 build. The build fails at
> > some point with:
> > 
> > /home/moovida/codeapisexes/geotools_svn/trunk/gt/modules/plugin/epsg-postgresql/src/main/java/org/geotools/referencing/factory/epsg/PostgreDataSource.java:[114,7]
> >  
> > org.geotools.referencing.factory.epsg.PostgreDataSource is not abstract and 
> > does not override abstract method isWrapperFor(java.lang.Class) in 
> > java.sql.Wrapper
> > 
> > I see different build problems coming through the list, so I assume it
> > is a momentary lapse of reason.
> 
> 2.3.x builds find on my windows box?
> 
> > However the geotiff jar was build, so I tried to use it and here my
> > doubts and problems:
> > 
> > - using the geotiff plugin approach gives me the same error as before 
> > (geokey
> > directory), which I expected.
> > - the WorldImageReader uses the geotiff library, right? (it is obvious,
> > but I need some certainties in life :)) Using that, the error is the same 
> > as before.
> 
> Nope, afaik it doesn't, it just uses JAI TIFF support directly
> 
> > I assumed that I would be able to substitute the 2.4 snapshot of the
> > geotiff library and use the thing. That should also be true, since the
> > error I get is not of some dependecy kind. Which library should I
> > substitute to view the paletted geotiff?
> 
> Arg, don't use trunk! You have to check out the 2.3.x branch, most of 
> the changes to coverage stuff haven't been ported to trunk, that's
> probably why you're still having issues.
> 
> Cheers
> Andrea
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
> 

-- 
____________________________________________________________________________
HydroloGIS - Environmental Safety Modelling
Siemens Str. 19 via Siemens
I-39100 Bozen - Bolzano 
www.hydrologis.com

Andrea Antonello
Environmental Engineer
PhD Student at www.uniurb.it
JGrass, Free Open Source GIS www.jgrass.org
tel.     +39 0471 068065  
mobile:  +39 328 8497722
fax:     +39 36 328 8497722
email:   [EMAIL PROTECTED]

"Let it be as much a great honour to take as to give learning,
if you want to be called wise."
Skuggsja' - The King's mirror - 1240 Reykjavik
____________________________________________________________________________

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to