[Mapserver-users] Convert bil to tif with gdal_translate

gheysen.t at skynet.be gheysen.t at skynet.be
Fri Jul 2 10:11:07 EDT 2004


-------boundalter150977
Content-Type: text/plain
Content-Transfer-Encoding: 8bit

The output of gdalinfo :

Driver: EHdr/ESRI .hdr Labelled
Size is 5000, 6250
Coordinate System is `'
Origin = (248000.000000,38000.000000)
Pixel Size = (0.40000000,-0.40000000)
Corner Coordinates:
Upper Left ( 248000.000, 38000.000)
Lower Left ( 248000.000, 35500.000)
Upper Right ( 250000.000, 38000.000)
Lower Right ( 250000.000, 35500.000)
Center ( 249000.000, 36750.000)
Band 1 Block=5000x1 Type=Byte, ColorInterp=Undefined

The comand line for gdal_translate : 

gdal_translate.exe -of GTiff -co \"TILED=YES\" -co \"TFW=YES\" \"C:/Program Files/Apache Group/Apache/htdocs/carto/data/ppnc/71_32_E.BIL\" \"C:/Program Files/Apache Group/Apache/htdocs/carto/data/ppnc/71_32_E_tiled.tif\"

Thibaut.





gheysen.t at skynet.be wrote:

> Hello,
> 
> I have very large raster in bil format. I want to convert it to tiled 
> tif. For this, I have used gdal_translate. But, when I do this the 
> result are in black and white. I have the same result when I draw 
> directly the bil in mapserver.
> I think that the problem is that the color information are in a single 
> file (for example, raster.clr).
> Somebody have an idea to solve this problem.
> 

Could you give:

1) The output of gdalinfo on the BIL file

2) The *exact* call to gdal_translate

Jan
-------boundalter150977
Content-Type: text/html
Content-Transfer-Encoding: 8bit
Content-Disposition: inline

The output of gdalinfo :<br>
&nbsp;<br>
Driver: EHdr/ESRI .hdr Labelled<BR>Size is 5000, 6250<BR>Coordinate System is `'<BR>Origin = (248000.000000,38000.000000)<BR>Pixel Size = (0.40000000,-0.40000000)<BR>Corner Coordinates:<BR>Upper Left ( 248000.000, 38000.000)<BR>Lower Left ( 248000.000, 35500.000)<BR>Upper Right ( 250000.000, 38000.000)<BR>Lower Right ( 250000.000, 35500.000)<BR>Center ( 249000.000, 36750.000)<BR>Band 1 Block=5000x1 Type=Byte, ColorInterp=Undefined<br>
&nbsp;<br>
The comand line for gdal_translate : <br>
&nbsp;<br>
gdal_translate.exe -of GTiff -co "TILED=YES" -co "TFW=YES" "C:/Program Files/Apache Group/Apache/htdocs/carto/data/ppnc/71_32_E.BIL" "C:/Program Files/Apache Group/Apache/htdocs/carto/data/ppnc/71_32_E_tiled.tif"<br>
&nbsp;<br>
Thibaut.<BR><br>
<HR>

<BR>gheysen.t at skynet.be wrote:<BR><BR>&gt; Hello,<BR>&gt; <BR>&gt; I have very large raster in bil format. I want to convert it to tiled <BR>&gt; tif. For this, I have used gdal_translate. But, when I do this the <BR>&gt; result are in black and white. I have the same result when I draw <BR>&gt; directly the bil in mapserver.<BR>&gt; I think that the problem is that the color information are in a single <BR>&gt; file (for example, raster.clr).<BR>&gt; Somebody have an idea to solve this problem.<BR>&gt; <BR><BR>Could you give:<BR><BR>1) The output of gdalinfo on the BIL file<BR><BR>2) The *exact* call to gdal_translate<BR><BR>Jan<BR><BR><BR><BR><br>
-------boundalter150977--




More information about the mapserver-users mailing list