[gdal-dev] VRT performance Improvement
MRRAJESH
rajeshreddy82 at gmail.com
Tue Jul 28 02:57:12 PDT 2020
Developers,
We are using VRT file (located in physical disk) as input to
GDALVectorTranslate in C++. This VRT file pointing JSON file, which is
little bigger size. How to improve the performance?
const char *pszFilename = "C:\\Test\\MVT.vrt";
hSrcDS = (GDALDatasetH *)GDALOpenEx(pszFilename, GDAL_OF_READONLY, NULL,
NULL, NULL);
dst = (GDALDataset *)GDALVectorTranslate(vsibuf, NULL, 1, &hSrcDS, opt,
NULL);
*VRT FILE:*
OGRVRTDataSource>
<OGRVRTLayer name="Administrative">
<SrcDataSource relativeToVRT="1">features.json</SrcDataSource>
<SrcSQL dialect="sqlite">SELECT * FROM "features" WHERE LegendEntryName
IN("V_XX_AR","V_XX_LB","V_DOCIND_PT","V_XX_ML")</SrcSQL>
</OGRVRTLayer>
.....
....
Regards,
Rajesh
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
More information about the gdal-dev
mailing list