Update: I did find the referenced stack discussion but the difference here is:
- my question is referring to transform .XML to geopackage (not .shape to map info)
- I would like to include the specification of the driver
- I explicitly ask for storing the files into another folder than the resource folder.
I have successfully converted a .xml file to a geopackage with the following command:
ogr2ogr -f GPKG "path\to\LoD1.gpkg" GMLAS:"path\to\LoD1.xml" -oo REMOVE_UNUSED_FIELDS=YES
However, I somehow cannot make it to work on a full directory. What I would like is transform all files in one folder into geopackages storing it in another folder.
What I tried is:
ogr2ogr -f "GPKG" "path\to\outputfolder" GMLAS:"path\to\inputfolder" -oo REMOVE_UNUSED_FIELDS=YES
But this throws the error:
Unable to open datasource `GMLAS:path\to\inputfolder' with the following drivers. (then a list of all the driver follows, including GMLAS).
What do I need to change on the command?