I used r.out.png to export a png file, but it produced this error:

(Sun Feb 27 00:26:32 2011)                                                      
r.out.png input=raster_bulacanElevation output=png_bulacanElevation.png         
rows = 382, cols = 819
ERROR: Not able to open file for [png_bulacanElevation.png]
(Sun Feb 27 00:26:33 2011) Command finished (0 sec)  

1 Answer 1


This error is reached if GRASS is unable to write to the current folder, try specifying a path that GRASS can write to in your output value.

  • Thanks! I forgot to put quotation marks in the path that is why it failed to open the path. Is there a way to convert both the raster and vector map that is displayed in the GRASS GIS Map Display Window into a single PNG file? r.out.png only saves the raster file
    – teamAngat
    Feb 26, 2011 at 18:01
  • Yes, use d.out.file for this if use you use the classical GRASS monitor. For the wxPython based interface, use the "Save display to graphics file" or "Print display" functionality. Consider also to read the manual...
    – markusN
    Feb 26, 2011 at 18:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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