[gdal-dev] gdal.VSIFReadL

2020-06-01 Thread rmaddu
gdal.VSIFReadL method is available in python. What is the equivalent method in C#. My goal is write vsimem file to disk . -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

[gdal-dev] C#: How to generate pbf file from bytes array for Vector Tiles Service

2020-05-26 Thread rmaddu
Hi, Below is the C# code snippet. How to generate pbf file from bytes data? Is this the correct way or any other way to return to client? string filePath = string.Format(@"/vsimem/mvt-{0}/{1}/{2}/{3}.pbf", uniqueUUID, 18, 66027, 96262); var bufPtr = Gdal.VSIFOpenL(filePath, "rb"); if

Re: [gdal-dev] Vector Tile Service

2020-05-12 Thread rmaddu
Hi, Are you using GDAL binaries for vector tiles generation? Can you please share the sample code? Regards, Rajesh -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

Re: [gdal-dev] Vector Tile Service

2020-05-12 Thread rmaddu
Hi, We have "VRT - Virtual format" for Vectors also (https://gdal.org/drivers/vector/vrt.html). Using this format and with C# bindings, presently I am able to generate the vector tiles in disk. My problem here is - Presently I have written code in console, whenever I open this console

[gdal-dev] Vector Tile Service

2020-05-11 Thread rmaddu .
I need some help on usage of GDAL C# bindings to convert VRT to MVT. How do I know that, below call is complete? We observed that below call is Async (All the code lines are executed and Parent thread is waiting until the MVT files/folders are created in disk). Is this correct? I want to create a

[gdal-dev] GDAL C# Bindings: How to implement callback

2020-05-08 Thread rmaddu
Dear All, I have called below GDAL function with callback, not getting the call to callback function? var newDs = Gdal.wrapper_GDALVectorTranslateDestName(output, ds, gdalOptions, new Gdal.GDALProgressFuncDelegate(ProgressFunc), null); public static int ProgressFunc(double Complete, IntPtr

[gdal-dev] OGR2OGR C# bindings: How to deliver with product

2020-05-04 Thread rmaddu
Dear All, We are using GDAL C# bindings located at ...\bin\gdal\csharp (downloaded the release-1911-gdal-3-0-4-mapserver-7-4-3.zip from http://download.gisinternals.com/) in our product for vector tiles work. Question is - How to deliver GDAL with our product? 1. Do we have any GDAL merge

[gdal-dev] GDAL OGR2OGR MVT format multiple layers

2020-04-12 Thread rmaddu
Hi, I am writing data from json to MVT format using OGR2OGR. My requirement is to generate multiple layers. When I open metadata.json, layerCount =1 always, i.e., single layer. How to give input as multiple layers? How to get multiple layers in metadata.json? I tried with below content as JSON,