<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>rmaddu,<br>
</p>
<p>VRT is raster format and MVT is vector format, so they are
incompatible without raster to vector transformation. So, I think
there's something missing from your problem statement.</p>
<p>Best,<br>
</p>
<p>Ari<br>
</p>
<div class="moz-cite-prefix">rmaddu . kirjoitti 12.5.2020 klo 8.14:<br>
</div>
<blockquote type="cite"
cite="mid:CAJt4Q0TH1cAfwMwMWrKuDZsthy1_Qig3h9TEEKDfDs-dEFpjMw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr"><span
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">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? </span>
<div><span
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">I want
to create a Vector Tile Service. My goal is to return the
tile to client once the tiles are generated. For this,
whether the call is completed or not? Below is the code,
written in console app.</span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<br style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">var
options = new[]</span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
{</span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
"-f", "MVT", </span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
"-dsco", "TILE_EXTENSION=pbf", </span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
"-dsco", "MINZOOM=0",</span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
"-dsco", "MAXZOOM=10",</span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px"> };</span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<br style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
string input = @"C:\Temp\vrtfile.vrt";</span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
string output = @"C:\Temp\myMVTtiles";</span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<br style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">using
(</span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
Dataset ds = Gdal.OpenEx(input, 4, null, null, null))</span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
{ </span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
var newDs = Gdal.wrapper_GDALVectorTranslateDestName
(output, ds, gdalOptions, new
Gdal.GDALProgressFuncDelegate(ProgressFunc), null); </span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
newDs.FlushCache(); </span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
}</span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px"> }</span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<br style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<br style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">Regards,</span><br
style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<span style="color:rgb(29,34,40);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">Rajesh</span> <br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
</body>
</html>