[gdal-dev] Problem with BIL files and GDAL

Belén beln1 at hotmail.com
Wed Jul 30 03:26:29 PDT 2014


Hi Daniele,
Thank you for your answer.
This is the output of gdalinfo:

Driver: EHdr/ESRI .hdr Labelled
Files: prueba.bil
          prueba.hdr
Size is 4000, 4000
Coordinate System is `'
Origin = (504815.000000000000000,4766395.000000000000000)
Pixel Size = (10.000000000000000,-10.000000000000000)
Corner Coordinates:
Upper Left  (  504815.000, 4766395.000)
Lower Left  (  504815.000, 4726395.000)
Upper Right (  544815.000, 4766395.000)
Lower Right (  544815.000, 4726395.000)
Center      (  524815.000, 4746395.000)
Band 1 Block=4000x1 Type=UInt16, ColorInterp=Undefined

Thank you again!!

Regards.
Belén Muñoz.

From: daniele.romagnoli at geo-solutions.it
Date: Wed, 30 Jul 2014 12:20:09 +0200
Subject: Re: [gdal-dev] Problem with BIL files and GDAL
To: beln1 at hotmail.com
CC: gdal-dev at lists.osgeo.org

Hi,
could you run a gdalinfo on your origin file and provide us the output?
Wondering if its datatype is float and a straight gdal_translate (without scaling applied) truncate all values when going to Byte PNG.



Cheers,
Daniele
==

GeoServer Professional Services from the experts! Visit

http://goo.gl/NWWaa2 for more information.

==


Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

http://www.geo-solutions.it


http://twitter.com/geosolutions_it

-------------------------------------------------------



On Wed, Jul 30, 2014 at 11:22 AM, Belén <beln1 at hotmail.com> wrote:





Hello!
My name is Belén and i'm trying to convert a .bil file (.bil and .hdr) to a .png using gdal_translate, it seems to work fine, there are no error messages but when I open the .png file, I only have a big completely black square.


There's some special thing I should be doing? I'd appreciate any help, because I'm completely lost.

Thank you very much in advance.

Regards.

Belén Muñoz.
 		 	   		  

_______________________________________________

gdal-dev mailing list

gdal-dev at lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/gdal-dev

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140730/68c3344f/attachment-0001.html>


More information about the gdal-dev mailing list