I am running the latest bundle of OSGeo4W with GRASS 7.4.1

I am following the tutorial in the following URL: Analysing the ECA&D climatic data, where I am trying to import data from web using this code:


However, I get the error:

INFILE is not recognizable as an internal or external command, a program or an executable file

I am not sure this error is because of using wrong syntax, or because GDAL/OGR isn´t installed/activated properly

If you need more information please comment bellow and I will gladly provide it

  • Did you run also the preceding commands? Your error seems like you'd written the command to the normal windows shell instead of GRASS shell. – user30184 Sep 18 '18 at 14:02
  • Yes, I ran all the preceding commands. I typed the command in the console of the GRASS GUI, not outside the program. Have you tried running it on your device? – johnnydoe Sep 18 '18 at 15:07
  • I guess that because you are on Windows you need to use Windows syntax. Try with SET INFILE=... and then v.import input=%INFILE% output=country_boundaries. I don't have GRASS available so I can't test myself. – user30184 Sep 18 '18 at 15:39
  • Using the SET command I was able to load the data from external web. However, I am unable to run the v.import command. Is this because I need to use a Widnows specific syntax? If so, where can I find instructions for this. – johnnydoe Sep 19 '18 at 12:54
  • Let's hope that some GRASS specialist takes your question. Otherwise write to lists.osgeo.org/mailman/listinfo/grass-user. The list seems to be active. May be that GRASS developers do not prefer Windows, though. – user30184 Sep 19 '18 at 13:24

I have updated that example to not use the (convenient) variable definition:

v.import input="/vsizip/vsicurl/https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_0_countries.zip" output=country_boundaries

Please check again here:


  • 1
    This works great. Thank you Markus. I have been following your courses to learn GRASS – johnnydoe Sep 25 '18 at 10:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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