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
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to