Opened 11 years ago

Closed 8 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 by sbl, 9 years ago

Milestone: 7.0.07.1.0

in reply to:  description comment:2 by mmetz, 9 years ago

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 by neteler, 9 years ago

Milestone: 7.1.07.2.0

Milestone renamed

comment:4 by neteler, 8 years ago

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

comment:5 by sbl, 8 years ago

Resolution: fixed
Status: newclosed

I would say so...

Note: See TracTickets for help on using tickets.