Ciao Andrea, arcgrid reader should use the underlying values for the nodata, it should be -9999 when it is an esri arcgrid, NaN when it is grass.
Same should apply to aig, as I told you yesterday I would check the underlying value first. 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://www.linkedin.com/in/simonegiannecchini http://twitter.com/simogeo ------------------------------------------------------- On Wed, Apr 28, 2010 at 9:54 AM, andrea antonello <[email protected]> wrote: > Ok, I will have to look into the code a bit better. > > AigReaders seem to give -Float.MAX_VALUE (probably depending on the > content), while ArcgridReaders -9999.0. > > The gap seems to be in the step between imageio-ext and geotools. > > Will come back when I know something more. > > Cheers, > Andrea > > > On Tue, Apr 27, 2010 at 1:40 PM, andrea antonello > <[email protected]> wrote: >> Hi, I am trying to get the value that is used as novalue from a gricoverage. >> >> I was assuming something like: >> GridSampleDimension[] sampleDimensions = inCoverage.getSampleDimensions(); >> double[] noDataValues = sampleDimensions[0].getNoDataValues(); >> >> which returned me null. >> >> I then tried to get the categories to manually extract the novalue, >> but these also ended up being null. >> I am using the esri adf (AIGreader) that leverages imegio-ext. >> >> In order to spare time, can anyone tell me if the above is the right >> way to get the value that is used as novalue? >> In which case it is probably a bug and I would open a ticket in the >> imageio-ext world. >> >> Thanks, >> Andrea >> > > ------------------------------------------------------------------------------ > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel > ------------------------------------------------------------------------------ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
