[email protected] wrote:

Hello!!!
When I launch this command
gdal_translate -projwin -428734.998712 20337 1.497532 -387578.449250 172036.180727 EstMtl.img rssMtl.img

I get this message
Input file size is 7771, 7410
Computed -srcwin 1204 4838 1372 1045 from projected window.
0Warning 1: Lost metadata writing to GeoTIFF ... too large to fit in tag.
Warning 1: Lost metadata writing to GeoTIFF ... too large to fit in tag.
...10...20...30...40...50...60...70...80...90...100 - done.
Warning 1: Lost metadata writing to GeoTIFF ... too large to fit in tag.

Steve,

First, you may not be aware that gdal_translate writes TIFF by default,
even if you use the extension .img.  So if you want a .img output you
would need to specify -of HFA on the commandline.

The warning indicates that there was too much metadata in the source
file to properly store in the GeoTIFF so it was discarded.  Often
this won't matter to you.

When I launch this command
gdal_rasterize -burn 0 -i -l rssMtl_32198 Z:\MSSS\rssmrn\2005\shapefile\32198\rssMtl_32198.shp rssMtl.img

I get this message
Warning : the output raster dataset has a SRS, but the input vector layer not. Results will be probably incorrect.
0...10...20...30...40...50...60...70...80...90...100 - done.

This means it is your responsibility to ensure that the shapefile
and the .img file are in the same coordinate system since the command
cannot determine it from the .shp file.  The warning is perhaps a bit
too dramatic.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to