[GRASS-dev] [GRASS GIS] #3357: v.rast.stats: add support for -d flag (densified lines)
GRASS GIS
trac at osgeo.org
Sat Jul 22 09:50:53 PDT 2017
#3357: v.rast.stats: add support for -d flag (densified lines)
--------------------------+-------------------------------------
Reporter: veroandreo | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.2.2
Component: Vector | Version: svn-trunk
Resolution: | Keywords: v.rast.stats, v.to.rast
CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------------------
Comment (by mlennert):
Replying to [comment:2 veroandreo]:
> I applied the patch and tested both with polygons and lines vector maps.
Using your example, I get the same warning (but I would say that's
expected and correct behavior for polygons, i.e.: if line densification is
used with polygons, adjacent polygons would have overlapping areas in the
intermediate raster map).
>
> For a lines vector map, I get the following warning
>
> {{{
> g.copy vector=railroads,myrailroads
> v.rast.stats myrailroads raster=elevation column_prefix=elev
method=average -d
> WARNING: No areas selected from vector map <myrailroads>
> }}}
AFAICT this comes from the v.to.rast call. It is harmless, but probably a
bit confusing. You should be able to solve this by adding a type parameter
to v.rast.stats and send that to v.to.rast.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3357#comment:3>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list