Dear all,<br><br>in regard of this different behavior performed by gdalwarp and gdalbuildvrt respect to different data type entries, I have some considerations. The error raised by gdalbuildvrt made me wonder about my data and then with your help I discovered what was wrong with them. On the other hand, gdalwarp didn't raise any complaint, and i happily created my mosaic, causing a loss of data (from float to int) which i was not aware of. In my opinion it would be good to have a warning message in both gdalbuildvrt and gdalwarp if input data are not homogeneous in type.<br>
<br>Thanks,<br><br><br><div class="gmail_quote">On Fri, Aug 17, 2012 at 8:56 AM, Margherita Di Leo <span dir="ltr"><<a href="mailto:diregola@gmail.com" target="_blank">diregola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br><br><div class="gmail_quote"><div><div class="h5">On Thu, Aug 16, 2012 at 11:02 PM, Eli Adam <span dir="ltr"><<a href="mailto:eadam@co.lincoln.or.us" target="_blank">eadam@co.lincoln.or.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>> Band 1 Block=5000x1 Type=Int16, ColorInterp=Gray<br>
</div>...<br>
<div>> Band 1 Block=10000x1 Type=Float32, ColorInterp=Gray<br>
><br>
> I can't see anything obvious why these two files can't be mosaiced..<br>
><br>
<br>
</div>It looks like one is 16 bit and the other 32. gdalbuildvrt probably<br>
can't determine the type of output to create.<br>
<br>
What is the output type of gdalwarp on the same files? Did gdalwarp do<br>
anything to make the input files match in the output?<br></blockquote></div></div><div><br>This is the output of the mosaic made by gdalwarp:<br><br>gdalinfo STM_CP-DEMS_EU_mosaic.tif<br>Driver: GTiff/GeoTIFF<br>Files: /home/leomarg/DATA/SRTM_DEMs/_ALL/STM_CP-DEMS_EU_mosaic.tif<br>
Size is 64600, 50650<div class="im"><br>Coordinate System is:<br>PROJCS["ETRS89 / LAEA Europe",<br> GEOGCS["ETRS89",<br> DATUM["European_Terrestrial_Reference_System_1989",<br></div>
SPHEROID["GRS 1980",6378137,298.2572221010002,<div class="im"><br>
AUTHORITY["EPSG","7019"]],<br> AUTHORITY["EPSG","6258"]],<br> PRIMEM["Greenwich",0],<br> UNIT["degree",0.0174532925199433],<br>
AUTHORITY["EPSG","4258"]],<br> PROJECTION["Lambert_Azimuthal_Equal_Area"],<br> PARAMETER["latitude_of_center",52],<br> PARAMETER["longitude_of_center",10],<br>
PARAMETER["false_easting",4321000],<br> PARAMETER["false_northing",3210000],<br> UNIT["metre",1,<br> AUTHORITY["EPSG","9001"]],<br> AUTHORITY["EPSG","3035"]]<br>
</div>
Origin = (1540000.000000000000000,6000000.000000000000000)<div class="im"><br>Pixel Size = (100.000000000000000,-100.000000000000000)<br>Metadata:<br> AREA_OR_POINT=Area<br></div>Image Structure Metadata:<br> INTERLEAVE=BAND<br>
Corner Coordinates:<br>
Upper Left ( 1540000.000, 6000000.000) ( 57d31'59.79"W, 63d25'17.15"N)<div class="im"><br>Lower Left ( 1540000.000, 935000.000) ( 17d57'14.30"W, 26d50'46.78"N)<br></div>Upper Right ( 8000000.000, 6000000.000) ( 86d 0'31.83"E, 56d26'45.47"N)<br>
Lower Right ( 8000000.000, 935000.000) ( 46d17'14.56"E, 23d32'41.83"N)<br>Center ( 4770000.000, 3467500.000) ( 16d52'39.75"E, 54d 7'19.36"N)<br>Band 1 Block=64600x1 Type=Int16, ColorInterp=Gray<br>
</div>Thanks,<br></div><div class="HOEnZb"><div class="h5"><br clear="all"><br>-- <br>Dr. Margherita Di Leo<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Dr. Margherita Di Leo<br>