When using GIS API how the sourcePath converted into outputPath?

Hi Alexander,
When using this GIS API:
VectorLayer.Convert(sourcePath, srcDriver, outputPath, destDriver, options);
Does all the files in the source files are converted to the outputPath, even if there are not mandatories, and if there not connected like i put “bala”.txt and so on?
Thanks in advance,

@danies8

  • What specific GIS API or library are you using (e.g., Aspose.GIS, GDAL, etc.)?
  • Are the source files like “bala.txt” part of a valid vector dataset supported by the API?
  • Does the sourcePath point to a single file or a directory?
  • Are non-mandatory or unrelated files (e.g., .txt) located in the same directory as the source dataset?
  • What format and driver are you using for srcDriver and destDriver?
  • Do you expect only the main dataset files to be converted, or all files in the sourcePath?

1.Using Aspose.GIS
2.“bala.txt” is not part of a valid vector dataset supported by the API.
3.The sourcePath is a single file.
4.Yes,
5.I’m asking you what the expected results ?

Hi, @danies8
In sourcePath we set one file not directory!
so we try to read file by srcDriver (consider all mandatories files) and then create new one in outputPath.

Hi Alexander,

Sorry for my mistake: sourcePath we set one file.

What will contains outputPath :

1.Only mandatories files?
2. Also non mandatories files ?
3.For example If “bala.txt” in the same sourcePath folder, and is not part of a valid vector dataset ?
What will happen?
Thanks,

Your quick answer will be appreciated.

  1. yes
  2. no
  3. outputPath it’s also path to file. Directory can contain other any other files (“bala.txt”), nothing will happend.

So , only mandatories files will be in output , is it ?

yes, only mandatories files will be created, any others stay as it is.

Thank you very much for your quick answer.

1 Like