[gdal-dev] Vector Tile Service
Ari Jolma
ari.jolma at gmail.com
Tue May 12 02:25:58 PDT 2020
rmaddu,
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.
Best,
Ari
rmaddu . kirjoitti 12.5.2020 klo 8.14:
> 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 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.
>
> var options = new[]
> {
> "-f", "MVT",
> "-dsco", "TILE_EXTENSION=pbf",
> "-dsco", "MINZOOM=0",
> "-dsco", "MAXZOOM=10",
> };
>
> string input = @"C:\Temp\vrtfile.vrt";
> string output = @"C:\Temp\myMVTtiles";
>
> using (
> Dataset ds = Gdal.OpenEx(input, 4, null, null, null))
> {
> var newDs = Gdal.wrapper_GDALVectorTranslateDestName (output, ds,
> gdalOptions, new Gdal.GDALProgressFuncDelegate(ProgressFunc), null);
> newDs.FlushCache();
> }
> }
>
>
> Regards,
> Rajesh
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200512/b6c8c538/attachment.html>
More information about the gdal-dev
mailing list