I know how to do this within Quantum GIS but I have 30+ shapefiles that need to be converted to GML. Is there a Python script sample or plugin for Quantum GIS that I can use to convert my shapefiles to GML?
2 Answers
You can do this from the command-line shell using ogr2ogr
‒ that is, outside QGIS. E.g. on GNU/Linux with bash:
cd /path/to/shapefiles
for file in $(ls *.shp);
do
ogr2ogr "$file" `basename "$file" .shp`.gml;
done
That would be a “batch process”
as mentioned in some comments to this same question.
ogr2ogr seg.shp pla.gml segments
does it not work for you?SHP
intoGML
inOS VerctorMap Local
format?