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

Markus Metz markus.metz.giswork at googlemail.com
Sat Oct 17 10:41:14 EDT 2009


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