[GRASS-user] deleting lines by length, from a vector map
Zoltan Szecsei
zoltans at geograph.co.za
Sat Nov 30 06:11:53 PST 2019
Hi,
I'm trying to write my first Grass python script to load Shape files and
delete all lines shorter than 50m
I'm trying various permutations of the command below, but no success
(No error message and no lines deleted).
Any guidance would be welcome.
gscript.run_command('v.extract','r',input=gen,output=lin, where="(
$LENGTH > 50 )",overwrite=True)
gscript.run_command('v.out.ogr', 'sce2', input=lin, type='line',
output=dir_rclout + rcl + '.shp', format='ESRI_Shapefile',
output_type='line',overwrite=True)
Thanks and regards,
Zoltan
PS: Should these type of questions go to grass-dev ??
--
=============================================
Zoltan Szecsei GPrGISc 0031
Geograph (Pty) Ltd.
GIS and Photogrammetric Services
P.O. Box 7, Muizenberg 7950, South Africa.
Mobile: +27-83-6004028 (WhatsApp only)
Qatar: +974 5083 2722 www.geograph.co.za
=============================================
More information about the grass-user
mailing list