Right, this implementation is for MVT. Objective is to get the
<service>/18/66027/96262.mvt file

We are passing the VRT file as input. Output is vsimem. Options are -
{"-dsco", "TILE_EXTENSION=mvt",
      "-dsco", "COMPRESS=NO", "-dsco", "MINZOOM=18",  "-dsco", "MAXZOOM=18"}

Once we have multiple files in vsimem, opening the specific mvt file
(example - "/vsimem/mvt-<GUID>/18/66027/96262.mvt") are returning with below
code - 

VSILFILE* fp = VSIFOpenL(vsiMemFilename.c_str(), "rb");
                VSIFSeekL(fp, 0, SEEK_END);
                size_t nSize = (size_t)VSIFTellL(fp);
                VSIFSeekL(fp, 0, SEEK_SET);
                void* pRefBuf = CPLMalloc(nSize);
                VSIFReadL(pRefBuf, 1, nSize, fp);
                VSIFCloseL(fp);
                *size = nSize;
                return pRefBuf;

Once we got the file, we want to vanish the vsimem.

Question:
1. VSIRmdirRecursive(vsimem) -will vanish the vsimem?
2. Is above implementation is correct by using GDAL?

Thanks for your time..

Regards,
Rajesh



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to