Quantcast

gdal_translate custom binary image format

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

gdal_translate custom binary image format

vonengel
Hi folks,

I am quite new with gdal, and I am using it (or to be precise gdal2tiles) to create a quadtree representation of large panoramic images (for further out-of-core rendering). I now got a large dataset (300000x30000) in a simple binary format (The 8bit RGB information is simply stored in sequential order).
Is it possible to use gdal_translate to read and process the data?
Thanks for your help!

Cheers,
David
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: gdal_translate custom binary image format

chaitanya_ch
David,

GDAL's vrt driver supports defining a raw file's structure in an xml file.
You should define the VRTRawRasterBand subclass.
http://www.gdal.org/gdal_vrttut.html

On Thu, Apr 12, 2012 at 5:09 PM, vonengel <[hidden email]> wrote:
Hi folks,

I am quite new with gdal, and I am using it (or to be precise gdal2tiles) to
create a quadtree representation of large panoramic images (for further
out-of-core rendering). I now got a large dataset (300000x30000) in a simple
binary format (The 8bit RGB information is simply stored in sequential
order).
Is it possible to use gdal_translate to read and process the data?
Thanks for your help!

Cheers,
David


--
View this message in context: http://osgeo-org.1560.n6.nabble.com/gdal-translate-custom-binary-image-format-tp4851982p4851982.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev



--
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E

_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: gdal_translate custom binary image format

Scott Arko-2
In reply to this post by vonengel
Hi David,


I have done a similar thing in the past by using the ENVI format driver.  The ENVI format is just raw binary with a very simple text header file.  You can easily create the header and then gdal will read your data.  

You can find information on ENVI headers at http://geol.hu/data/online_help/ENVI_Header_Format.html

Not all fields are required, so you only need to define the bare basics for your data set. The vrt path is probably the more rigorous solution, but this might be easier. 

Thanks,
Scott



On Thu, Apr 12, 2012 at 3:39 AM, vonengel <[hidden email]> wrote:
Hi folks,

I am quite new with gdal, and I am using it (or to be precise gdal2tiles) to
create a quadtree representation of large panoramic images (for further
out-of-core rendering). I now got a large dataset (300000x30000) in a simple
binary format (The 8bit RGB information is simply stored in sequential
order).
Is it possible to use gdal_translate to read and process the data?
Thanks for your help!

Cheers,
David


--
View this message in context: http://osgeo-org.1560.n6.nabble.com/gdal-translate-custom-binary-image-format-tp4851982p4851982.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev






_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: gdal_translate custom binary image format

vonengel
In reply to this post by chaitanya_ch
Hi folks,

thank you for you hints!
It is working and I am waiting for the gdal2tiles script to build my 25GB quadtree. :-)

Cheers,
David
Loading...