[Gdal-dev] CreateCopy into buffer

Frank Warmerdam warmerdam at pobox.com
Thu Dec 1 10:54:02 EST 2005


On 11/29/05, Ivan Mjartan <ivan.mjartan at geovap.cz> wrote:
>
> Hi list,
>
>
>
> I am writing function in C++ witch on input get large raster and return
> small sub window of the input raster in BitMap (*.BMP file). The sub window
> is never larger then 1000*1000px.

Ivan,

I think you should read over:

  http://www.gdal.org/cpl__vsi_8h.html#de6f5d790c7eabeae5b25f8ad4540503

I don't think the appropriate functions are currently exported via SWIG,
so currently you may not be able to do this.  But it shouldn't bee to
hard to add the VSIGetMemFileBuffer() and VSIFileFromMemBuffer()
functions to the swig lists.

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




More information about the Gdal-dev mailing list