Peppe,
it appears to me that the file dem.tif has no information about the
nodata value. I've checked using QGIS (it says: "no data value not
defined") and the AWare Systems AsTiffTagViewer
<http://www.awaresystems.be/imaging/tiff/astifftagviewer.html> (it
doesn't show the 42133 tag, that should store the nodata value). This is
why the 0 value is considered as a valid elevation number in OJ and QGIS.
Until we implement a tool in OJ allowing the user to set the nodata tiff
tag when it's missing, I think the only solution would be using
gdal_translate -a_nodata, as Jukka suggested.
Alberto
On 02/03/2015 20:36 PM, Giuseppe Aruta wrote:
Hi Alberto,
thanks for your replay.
I attached the file to this mail.
Peppe
2015-03-02 11:28 GMT+01:00 Alberto De Luca - GeA
<alberto.del...@geomaticaeambiente.com
<mailto:alberto.del...@geomaticaeambiente.com>>:
Dear all,
sorry for the late reply (especially sorry to Peppe), I presently
do not
have much time to dedicate to OJ development.
About TIFFs and nodata: the org.openjump.core.rasterimage.TiffTags
class
has a static method (readMetadata()) that canalso read the noData
value
(as the non-standard tag 42113). There is still no support for nodata
values stored in the .AUX file. When no 42113 tag is found, the nodata
value is set to -3.40282346639e+038, which I believe is derived from
esri software (this can clearly be changed). The nodata value is then
accessible through RasterImageLayer#getNoDataValue() method.
I see from Peppe's mail that something is not working as expected.
Peppe, can you pass me the DEM where the actual nodata value (0) is
replaced by the 3.4...+38 value, I'll try to see if I can fix it.
Alberto
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel
Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your
hub for all
things parallel software development, from weekly thought
leadership blogs to
news, videos, case studies, tutorials and more. Take a look and
join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
<mailto:Jump-pilot-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel