[GRASS-dev] [GRASS GIS] #3357: v.rast.stats: add support for -d flag (densified lines)
GRASS GIS
trac at osgeo.org
Sat Jul 22 08:33:31 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 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>
}}}
but, it seems to work properly (showing only an extract).
{{{
v.db.select myrailroads
cat|OBJECTID|FNODE_|TNODE_|LPOLY_|RPOLY_|LENGTH|RR24_100_|RR24_100_I|MAJOR1|MINOR1|SCALE|elev_average
3063|3063|4109|4084|2|2|642.898743|3063|224|180|208|24000|70.5424867674362
3064|3064|4107|4039|2|2|1208.258545|3064|9|180|208|24000|
3065|3065|3999|4113|2|2|1892.670776|3065|739|180|201|24000|
3066|3066|4114|4103|2|2|147.106094|3066|201|180|201|24000|
3067|3067|4114|4104|2|2|147.106094|3067|238|180|201|24000|
3068|3068|4114|4094|2|2|316.95166|3068|216|180|208|24000|79.0518072219122
3069|3069|4115|4102|2|2|147.106094|3069|240|180|208|24000|
3070|3070|4116|4104|2|2|147.106094|3070|241|180|208|24000|
3071|3071|4119|4106|2|2|158.241898|3071|181|180|201|24000|
3072|3072|4101|4120|2|2|192.714844|3072|2|180|208|24000|
3073|3073|4101|4120|2|2|192.714844|3073|5|180|201|24000|
3074|3074|4105|4122|2|2|249.740448|3074|221|180|208|24000|
3075|3075|4122|4118|2|2|221.97583|3075|223|180|208|24000|75.6025638580322
3076|3076|4105|4123|2|2|249.740448|3076|220|180|208|24000|77.1286170596168
3077|3077|4125|4119|2|2|92.723|3077|189|180|201|24000|
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3357#comment:2>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list