Ciao Cesar,
notice that a geotiff cannot be larger than 4gb. It is a format
limitation not a geotools limitation.
We have a student that is trying to extend imageio tiff plugin to
support bigtiff as well, but for the moment no work should have been
performed on writing bigtiff. If you are interested I can try to check
with him next week.

Ciao,
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Founder - Software Engineer
Via Carignoni 51
55041  Camaiore (LU)
Italy

phone: +39 0584983027
fax:      +39 0584983027
mob:    +39 333 8128928


http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------



2009/10/30 César Martínez Izquierdo <[email protected]>:
> Hello list,
>
> now that I've solved my problems *reading* big raster data, I'm also
> trying to *write* them.
> I've written some testing code:
>
>        CoordinateReferenceSystem crs = CRS.decode(crsString);
>        Envelope envelope = new Envelope2D(crs, 0, 0, 60000, 60000);
>
>        Raster m_Raster = 
> RasterFactory.createBandedRaster(DataBuffer.TYPE_FLOAT,
>                60000, 60000, 1, null);
>
>        GridCoverageFactory factory =
> CoverageFactoryFinder.getGridCoverageFactory(null);
>
>        GridCoverage2D gc = factory.create("bigtif",
> (WritableRaster)m_Raster, envelope,
>                                        null, null, null, null, null);
>
>        AbstractGridCoverageWriter writer = new GeoTiffWriter(m_sFilename);
>        writer.write(gc.geophysics(true), null);
>        writer.dispose();
>
> However, the method createBandedRaster fails (as I was expecting...):
>  java.lang.IllegalArgumentException: Size of array must be smaller
> than Integer.MAX_VALUE.
> at javax.media.jai.RasterFactory.createBandedRaster(RasterFactory.java:307)
>
> Is there a better way to achieve this?
>
> Regards,
>
>
> César
>
>
> --
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>   César Martínez Izquierdo
>   GIS developer
>   -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
>   ETC-LUSI: http://etc-lusi.eionet.europa.eu/
>   Universitat Autònoma de Barcelona (SPAIN)
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to