Hi, could be a bug or it could be simply the tool you are using to get the values.  How are you getting the values?
<br/><br/>Below, you are comparing 2 things. A) project  reprojections on the fly vs b) file reprojecting.
<br/><br/>Project on the fly reprojection  works for the screen but is not the best way to get the values.
<br/><br/>To make sure you have no mistakes using tools like the value tool, make sure the project is in the same CRS as the raster layer.  Then, the tools and values should be good.
<br/><br/>If you use gdal warp, remember that all reprojection lead to changes in raster values so some change will happen.  That's why you can use various algorithms to do that. 
<br/><br/>To see if you have a bug with the file format,  save the Esri grid in .tif using  UTM31N on ETRS89 datum (EPSG:25831). 
<br/><br/>Then change the project CRS  and reproject on the fly and see if you have the same problem as above.
<br/><br/>If you have the same problem, the problem is in the "on the fly reprojection" and how the tools works with it.  If you don't have the same problem, then the only thing that changed is the file format therefore you have a bug.
<br/><br/>Good luck.
<br/><br/>Nicolas Cadieux M.Sc.
<br/>Les Entreprises Archéotec inc. 
<br/>8548, rue Saint-Denis Montréal H2P 2H2
<br/>Téléphone: 514.381.5112  Fax: 514.381.4995
<br/><br/>Le 2014-12-09 05:10, "Agustin Lobo [via OSGeo.org]" <<a href="/user/SendEmail.jtp?type=node&node=5177062&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> a écrit :
<div class='shrinkable-quote'><br/>>
<br/>> I'm using a DEM in esri grid format 
<br/>> (see <a href="http://www.icc.cat/eng/Home-ICC/Geoinformacio-digital/Sobre-la-geoinformacio-ICGC/Models-Digitals-d-Elevacions" target="_top" rel="nofollow" link="external">http://www.icc.cat/eng/Home-ICC/Geoinformacio-digital/Sobre-la-geoinformacio-ICGC/Models-Digitals-d-Elevacions</a>) 
<br/>> which consisits on a txt file with the data and an xml file with the metadata. 
<br/>> The projection is UTM31N on ETRS89 datum (EPSG:25831) 
<br/>>
<br/>> If I display the layer on a project with the same EPSG:25831 there is 
<br/>> no problem, 
<br/>> but if I set the project projection to Geographic coordinates in WGS84 
<br/>> (EPSG:4326), 
<br/>> while the grey shades look coorrect and the coordinates are correct, the 
<br/>> actual values are totally wrong: values such as 7.999140e-136. 
<br/>>
<br/>> Is this a general problem with this format? Is there any fix? Is this 
<br/>> a bug to be reported? 
<br/>>
<br/>> Reprojecting to a gtiff using Raster/Projections/Warp works fine. 
<br/>>
<br/>> Thanks 
<br/>>
<br/>> Agus 
<br/>> _______________________________________________ 
<br/>> Qgis-user mailing list 
<br/>> [hidden email] 
<br/>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br/>>
<br/>>
<br/>> ________________________________
<br/>> If you reply to this email, your message will be added to the discussion below:
<br/>> <a href="http://osgeo-org.1560.x6.nabble.com/Wrong-values-if-DEM-in-grid-format-is-reprojected-tp5176993.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/Wrong-values-if-DEM-in-grid-format-is-reprojected-tp5176993.html</a><br/>> To start a new topic under Quantum GIS - User, email <a href="/user/SendEmail.jtp?type=node&node=5177062&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> 
<br/>> To unsubscribe from Quantum GIS - User, click here.
<br/>> NAML</div>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Wrong-values-if-DEM-in-grid-format-is-reprojected-tp5176993p5177062.html">Re: Wrong values if DEM in grid format is reprojected</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html">Quantum GIS - User mailing list archive</a> at Nabble.com.<br/>