<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Please remove my email address. I incorrectly signed up for the wrong thing and not an expert in GIS anyways.<br><br>Thanks</div><div><br>On Mar 25, 2013, at 9:36 AM, Santiago Banchero <<a href="mailto:santiagobanchero@gmail.com">santiagobanchero@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">
<p style="margin:0px;text-indent:0px">Hi, <br></p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px"><span id="result_box" class="" lang="en"><span class="">Have you</span> <span class="">reloaded</span> <span class="">the</span> <span class="">minimum and maximum values</span><span> in the Style options?</span></span><br>
<br>I'm running a test with a point shapefile with values between 0 and 609 with this sentenses (in QGIS):</p>
<p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">gdal_rasterize -init 0 -ot Int16 -of GTiff -co COMPRESS=DEFLATE -co ZLEVEL=9 -a prueba -l puntos -ts 500 500 -l puntos puntos.shp raster.tif</p>
<p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">And check Information to raster (gdalinfo in QGIS)<br></p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">
Band 1 Block=500x8 Type=Int16, ColorInterp=Gray<br> Min=0.000 Max=609.000 <br> Minimum=0.000, Maximum=609.000, Mean=0.020, StdDev=1.618<br> Metadata:<br> STATISTICS_MAXIMUM=609<br> STATISTICS_MEAN=0.019832<br> STATISTICS_MINIMUM=0<br>
STATISTICS_STDDEV=1.6183419576146<br><br><br></p><p style="margin:0px;text-indent:0px">My GDAL version's 1.9.2<br></p><p style="margin:0px;text-indent:0px">
<br></p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px"><br></p>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/3/23 Manuel Spínola <span dir="ltr"><<a href="mailto:mspinola10@gmail.com" target="_blank">mspinola10@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thank you very much Santiago.<div><br></div><div>I still have unreasonables min and max numbers (-32768 - 32767)</div><div><br></div><div>I cannot reproduce the raster that I got with R.</div>
<div><br></div><div>Best,</div><div><br></div><div>Manuel</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/3/22 Santiago Banchero <span dir="ltr"><<a href="mailto:santiagobanchero@gmail.com" target="_blank">santiagobanchero@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr"><div></div><div>I attach a picture so you can understand better and the parameters that you would see.</div>
<div>Best</div><div>
Santiago<br><br></div><div>Usage: gdal_rasterize [-b band]* [-i] [-at]</div><div><div> [-burn value]* | [-a attribute_name] [-3d]</div><div> [-l layername]* [-where expression] [-sql select_statement]</div>
<div> [-of format] [-a_srs srs_def] [-co "NAME=VALUE"]*</div><div> [-a_nodata value] [-init value]*</div><div> [-te xmin ymin xmax ymax] [-tr xres yres] [-tap] [-ts width height]</div><div> <b><font color="#ff0000"> [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/</font></b></div>
<div><b><font color="#ff0000"> CInt16/CInt32/CFloat32/CFloat64}]</font></b> [-q]</div><div> <src_datasource> <dst_filename></div></div></div></div><div class="gmail_extra"><div><div>
<br><br><div class="gmail_quote">
2013/3/22 Manuel Spínola <span dir="ltr"><<a href="mailto:mspinola10@gmail.com" target="_blank">mspinola10@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thank you very much Santiago,<div><br></div><div>I don´t understand your suggestion. Could you be more specific.</div><div><br></div><div>Best,</div><div><br></div><div>Manuel</div>
</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/3/22 Santiago Banchero <span dir="ltr"><<a href="mailto:santiagobanchero@gmail.com" target="_blank">santiagobanchero@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi, <div> you need fix the <b>-ot</b> parameter manually and set a Data Type according to your trouble.</div><div><br></div><div>Regards</div><div>Santiago</div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">2013/3/22 Manuel Spínola <span dir="ltr"><<a href="mailto:mspinola10@gmail.com" target="_blank">mspinola10@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>
<div dir="ltr">Dear list members,<div><br></div><div>I am trying to convert a vector (shapefile) to a raster using the option Conversion -> rasterize under the raster menu, however I don´t understand the result that I am getting. The values of the raster does not make any sense the min: -1.79769e+308 and max: 1.79769e+308<br clear="all">
<div><br></div><div><br></div><div>I am also doing the same thing in R and I got reasonable results, the values of the raster goes from 1 to 10, the ones that I expected.</div><div><br></div><div><div>> raster_agri</div>
<div>class : RasterLayer </div><div>dimensions : 300, 300, 90000 (nrow, ncol, ncell)</div><div>resolution : 207.5064, 133.2117 (x, y)</div><div>extent : 440239.3, 502491.2, 1032331, 1072294 (xmin, xmax, ymin, ymax)</div>
<div>coord. ref. : +proj=tmerc +lat_0=0 +lon_0=-84 +k=0.9999 +x_0=500000 +y_0=0 +ellps=WGS84 +units=m +no_defs </div><div>data source : in memory</div><div>names : layer </div><div>values : 1, 10 (min, max)</div>
</div><div><br></div><div><br></div><div><br></div><div>And even when I import this to QGIS the values of the raster does not make any sense either min: -2.14748e+09 and max: 2.14748e+09</div><div><br></div><div>
Any clue on this.</div><div><br></div><div>Best,</div><div><br></div><div>Manuel</div><div><br></div>-- <br><b>Manuel Spínola, Ph.D.</b>
<br>
Instituto Internacional en Conservación y Manejo de Vida Silvestre
<br>
Universidad Nacional
<br>
Apartado 1350-3000
<br>
Heredia
<br>
COSTA RICA
<br>
<a href="mailto:mspinola@una.ac.cr" target="_blank">mspinola@una.ac.cr</a>
<br>
<a href="mailto:mspinola10@gmail.com" target="_blank">mspinola10@gmail.com</a>
<br>
Teléfono: (506) 2277-3598
<br>
Fax: (506) 2237-7036
<br>
Personal website: <a href="https://sites.google.com/site/lobitoderio/" target="_blank">Lobito de río</a>
<br>
Institutional website: <a href="http://www.icomvis.una.ac.cr/" target="_blank">ICOMVIS</a>
</div></div>
<br></div></div>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Santiago Banchero<br><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><b>Manuel Spínola, Ph.D.</b>
<br>
Instituto Internacional en Conservación y Manejo de Vida Silvestre
<br>
Universidad Nacional
<br>
Apartado 1350-3000
<br>
Heredia
<br>
COSTA RICA
<br>
<a href="mailto:mspinola@una.ac.cr" target="_blank">mspinola@una.ac.cr</a>
<br>
<a href="mailto:mspinola10@gmail.com" target="_blank">mspinola10@gmail.com</a>
<br>
Teléfono: (506) 2277-3598
<br>
Fax: (506) 2237-7036
<br>
Personal website: <a href="https://sites.google.com/site/lobitoderio/" target="_blank">Lobito de río</a>
<br>
Institutional website: <a href="http://www.icomvis.una.ac.cr/" target="_blank">ICOMVIS</a>
</div>
</div></div></blockquote></div><br><br clear="all"><br></div></div><span><font color="#888888">-- <br>Santiago Banchero<br><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><b>Manuel Spínola, Ph.D.</b>
<br>
Instituto Internacional en Conservación y Manejo de Vida Silvestre
<br>
Universidad Nacional
<br>
Apartado 1350-3000
<br>
Heredia
<br>
COSTA RICA
<br>
<a href="mailto:mspinola@una.ac.cr" target="_blank">mspinola@una.ac.cr</a>
<br>
<a href="mailto:mspinola10@gmail.com" target="_blank">mspinola10@gmail.com</a>
<br>
Teléfono: (506) 2277-3598
<br>
Fax: (506) 2237-7036
<br>
Personal website: <a href="https://sites.google.com/site/lobitoderio/" target="_blank">Lobito de río</a>
<br>
Institutional website: <a href="http://www.icomvis.una.ac.cr/" target="_blank">ICOMVIS</a>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Santiago Banchero<br><br>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Qgis-user mailing list</span><br><span><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a></span><br><span><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br></div></blockquote></body></html>