Opened 5 years ago

Closed 2 years ago

#2239 closed defect (fixed)

GRASS 7: v.to.rast -d produces empty raster when used on areas

Reported by: sbl Owned by: grass-dev@…
Priority: normal Milestone: 7.2.0
Component: Vector Version: svn-trunk
Keywords: v.to.rast Cc:
CPU: Unspecified Platform: All

Description

Converting areas from vector to raster (v.to.rast) with the -d flag (dense lines) results in an empty raster map.

This is probably/likely because boundaries are not lines in a topolgical sense.

It may be technically chalenging to desify also boundaries. Here one might probably have to distinguish shared boundaries (which can not be densified) and boundaries "owned" by a single area (which could be desified).

In any case, it would be helpful to catch this behavior at least using a warning/error message and by adding information to the manual.

Change History (5)

comment:1 Changed 3 years ago by sbl

Milestone: 7.0.07.1.0

comment:2 in reply to:  description Changed 3 years ago by mmetz

Replying to sbl:

Converting areas from vector to raster (v.to.rast) with the -d flag (dense lines) results in an empty raster map.

Converting areas and densifying lines is mutually exclusive. Line densification is now (trunk r67918) disabled if areas are converted.

This is probably/likely because boundaries are not lines in a topolgical sense.

You can now convert boundaries with

v.to.rast type=boundary layer=-1 use=val

In any case, it would be helpful to catch this behavior at least using a warning/error message and by adding information to the manual.

Done in trunk r67918.

comment:3 Changed 2 years ago by neteler

Milestone: 7.1.07.2.0

Milestone renamed

comment:4 Changed 2 years ago by neteler

Since this will be in 7.2.0, can it be closed?

comment:5 Changed 2 years ago by sbl

Resolution: fixed
Status: newclosed

I would say so...

Note: See TracTickets for help on using tickets.