[GRASS-user] v.to.rast with empty vector-file

Achim Kisseler ak7 at jupiter.uni-freiburg.de
Sat Oct 17 10:55:22 EDT 2009


Thanks for response, Markus!

I just did that a minute ago.

But I found out that I don't have to handle that exception in my case: I
do a r.patch further on, which works even if one raster-file is missing.
So there is no need of an null-map anymore.

Thanks again,
Achim


Markus Metz schrieb:
> 
> Achim Kisseler wrote:
>> Dear grass users,
>>
>> has anyone an idea how to handle v.to.rast, if vector-file is empty? ->
>> it produces an error and no map is created:
>>
>> Loading data...
>> ERROR: Database connection not defined for layer 2
>>
>> I want an null-raster-map instead.
>>   
> r.mapcalc "nullmap = null()"
> 
> ???
> 
> Markus M


More information about the grass-user mailing list