[gdal-dev] .NET and OGR writing to stream

Maksim Sestic max at geoinova.com
Wed Aug 3 06:52:17 EDT 2011


Hi Tamas,

 

I don't know how to apply the same principle onto OGR drivers (not GDAL).
I'm trying to create GML structure in memory using OGR driver, then handle
resulting XML string further. Don't want to write dataset to a file, then
read the file back to a string.

 

Regards,

Maksim Sestic

 

  _____  

From: Tamas Szekeres [mailto:szekerest at gmail.com] 
Sent: Monday, August 01, 2011 13:05
To: Maksim Sestic
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] .NET and OGR writing to stream

 

Maksim,

You can refer to the example
http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/GDALRead.cs
to see how to read data into a byte array and then you can write this array
directly to the memory stream.

Best regards,

Tamas




2011/7/31 Maksim Sestic <max at geoinova.com>

Hi all,

 

Is there any example of OGR driver writing to memory stream (instead of file
stream), in .NET?

 

Regards,

Maksim Sestic



__________ Information from ESET NOD32 Antivirus, version of virus signature
database 6338 (20110731) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


_______________________________________________
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/20110803/60c91ea0/attachment.html


More information about the gdal-dev mailing list