Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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)  
share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

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.

share|improve this answer
    
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 '11 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 '11 at 18:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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