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

Chaitanya kumar CH chaitanya.ch at gmail.com
Mon Aug 1 06:47:50 EDT 2011


Maksim,

Refer to the C#.NET bindings page. I can't help you further.

http://trac.osgeo.org/gdal/wiki/GdalOgrInCsharp

On Mon, Aug 1, 2011 at 1:19 PM, Maksim Sestic <max at geoinova.com> wrote:

>  Hi Chaitanya,****
>
> ** **
>
> Is there a managed wrapper for this (I mean, VSI* methods)?****
>
> ** **
>
> Regards,****
>
> Maksim Sestic****
>
> ** **
>  ------------------------------
>
> *From:* Chaitanya kumar CH [mailto:chaitanya.ch at gmail.com]
> *Sent:* Sunday, July 31, 2011 19:33
>
> *To:* Maksim Sestic
> *Cc:* gdal-dev at lists.osgeo.org
> *Subject:* Re: [gdal-dev] .NET and OGR writing to stream
> ****
>
> ** **
>
> Maksim,
>
> You can use the memory file system handler in the GDAL library.
> The documentation of VSIInstallMemFileHandler() includes a C++ example.
>
> http://www.gdal.org/ogr/cpl__vsi_8h.html#66e2e6f093fd42f8a941b962d4c8a19e*
> ***
>
> On Sun, Jul 31, 2011 at 9:47 PM, Maksim Sestic <max at geoinova.com> wrote:**
> **
>
> Hi Chaitanya,****
>
>  ****
>
> Actually, what I need is writing GML (using GML driver) to string, not a
> file. Current managed wrapper looks like:****
>
>  ****
>
> Public Function *CreateDataSource*(*utf8_path* As *String**, **options*()
> As *String*) As *OSGeo*.*OGR*.*DataSource*****
>
>  ****
>
> ...while I need something like:****
>
>  ****
>
> Public Function *CreateDataSource*(*myStream* As *Stream**, **options*()
> As *String*) As *OSGeo*.*OGR*.*DataSource*****
>
>  ****
>
> Regards,****
>
> Maksim Sestic****
>
>  ****
>  ------------------------------
>
> *From:* Chaitanya kumar CH [mailto:chaitanya.ch at gmail.com]
> *Sent:* Sunday, July 31, 2011 18:06
> *To:* Maksim Sestic
> *Cc:* gdal-dev at lists.osgeo.org
> *Subject:* Re: [gdal-dev] .NET and OGR writing to stream****
>
>  ****
>
> Maksim,
>
> You can use the Memory driver.
>
> http://www.gdal.org/ogr/drv_memory.html
> http://www.gdal.org/ogr/ogr_formats.html****
>
> On Sun, Jul 31, 2011 at 8:45 PM, Maksim Sestic <max at geoinova.com> wrote:**
> **
>
> 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 6339 (20110731) __________
>
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>



-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110801/731b3d77/attachment-0001.html


More information about the gdal-dev mailing list