Re: [gdal-dev] Converting .NET Bitmap to GDAL Dataset

2013-03-24 Thread Maksim Sestic
5 To: Maksim Sestic Cc: gdal-dev Subject: Re: [gdal-dev] Converting .NET Bitmap to GDAL Dataset We could also convert the bitmap to png or some other formats that the GDAL drivers reconise, something like: byte[] imageBuffer; using (MemoryStream stream = new MemoryStream())

Re: [gdal-dev] Converting .NET Bitmap to GDAL Dataset

2013-03-24 Thread Tamas Szekeres
etDriverByName("GTiff") >> >> drv.CreateCopy("C:\Output.tif", ds, 0, Nothing, Nothing, Nothing) >> >> Gdal.Unlink(memFilename) >> >> handle.Free() >> >> ** ** >> >> Sorry about my VB.NET :-)

Re: [gdal-dev] Converting .NET Bitmap to GDAL Dataset

2013-03-24 Thread Tamas Szekeres
:-) > > ** ** > > I'm certain it's not about assembly referencing issues and such, since it > works correctly using "classic" Gdal.Open(...) method. > > ** ** > > Regards, > > Maksim Sestic > > ** ** > > ** ** > -

[gdal-dev] Converting .NET Bitmap to GDAL Dataset

2013-03-22 Thread Tamas Szekeres
For an example of the reverse action see SaveBitMapDirect in GDALReadDirect.cs To write data to GDAL dataset see: GDALWrite.csor GDALDatase

[gdal-dev] Converting .NET Bitmap to GDAL Dataset

2013-03-22 Thread Maksim Sestic
Hi all, Is there any example (or a hint) of converting a System.Drawing.Bitmap into GDAL Dataset? Regards, Maksim Sestic -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Converting-NET-Bitmap-to-GDAL-Dataset-tp5042430.html Sent from the GDAL - Dev mailing list archive at N