[Mapserver-users] Convert bil to tif with gdal_translate

gheysen.t at skynet.be gheysen.t at skynet.be
Fri Jul 2 07:11:07 PDT 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>
 <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>
 <br>
The comand line for gdal_translate : <br>
 <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>
 <br>
Thibaut.<BR><br>
<HR>

<BR>gheysen.t at skynet.be wrote:<BR><BR>> Hello,<BR>> <BR>> I have very large raster in bil format. I want to convert it to tiled <BR>> tif. For this, I have used gdal_translate. But, when I do this the <BR>> result are in black and white. I have the same result when I draw <BR>> directly the bil in mapserver.<BR>> I think that the problem is that the color information are in a single <BR>> file (for example, raster.clr).<BR>> Somebody have an idea to solve this problem.<BR>> <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