I have a thousand of arc coverage would like to covert to shapefile. How can I use the ogr2ogr to convert it in batch rather than convert it one by one? It takes a lot of time! :( Thanks for any idea!

  • Just loop over the files using a script (bash, python, whatever you've got). That doesn't really have anything specifically to do with GIS in general or OGR specifically.
    – BradHards
    Dec 5 '13 at 2:43
  • for /R %f in (*.E00) do ogr2ogr -f "ESRI Shapefile" "%~dpnf" "%f"
    – Mike T
    Dec 5 '13 at 3:31
  • Right!! It works! for /R %f in (*.adf) do ogr2ogr -f "ESRI Shapefile" "%~dpnf.shp" "%f" Dec 5 '13 at 3:35

What BradHards said (in a comment, why not an answer? Sorry I'm new here).

Write a script, even a good-old DOS batch file would work. But since you are using ogr2ogr you likely have python installed. So make a list of the files to convert, and iterate through that list in a python script making the call to ogr2ogr in the loop for each file.

  • No answer because its off topic.
    – BradHards
    Dec 5 '13 at 3:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.