Re: [gdal-dev] How to convert GDAL Vector dataset to memory stream

2020-06-21 Thread MRRAJESH
Thanks Tamas for your information. I am able to open the MVT data file using OGR. I have referred your example and able to check the layer names and features. My requirement is: I need to return this entire MVT data i.e., datasource in stream format. How to achieve this? In one of the GDAL-DEV th

Re: [gdal-dev] How to convert GDAL Vector dataset to memory stream

2020-06-21 Thread Tamas Szekeres
Hi, MVT is a vector format, so you should use OGR to manipulate it. To open the OGR format and iterate the features on a layer refer to the following c# example: https://github.com/OSGeo/gdal/blob/master/gdal/swig/csharp/apps/ogrinfo.cs Also refer to the MVT driver information page, how the conn

Re: [gdal-dev] How to convert GDAL Vector dataset to memory stream

2020-06-20 Thread MRRAJESH
Hi Tamas, Thanks for your suggestions. Will it work for MVT memory dataset? We have an MVT memory dataset with us. How to convert this to memory stream. *Example: * . var vsibuf = string.Format(@"/vsimem/mvt"); var newDs = Gdal.wrapper_GDALVectorTranslateDestName(vsibuf, ds1, gdalOptions, nu

Re: [gdal-dev] How to convert GDAL Vector dataset to memory stream

2020-06-20 Thread Tamas Szekeres
Hi, You could use a pre-allocated array to fill data from a GDAL dataset/bands. The following examples could be used as a reference: 1. Read raster bands into separate byte arrays: https://github.com/OSGeo/gdal/blob/master/gdal/swig/csharp/apps/GDALRead.cs#L139 2. Read raster bands into bitma

[gdal-dev] How to convert GDAL Vector dataset to memory stream

2020-06-17 Thread MRRAJESH
Hello list, I'm using GDAL via swig C# bindings. Is there a way to create memory stream from gdal vector dataset. If so, how can I achieve this. Thanks in advance Rajesh -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ g