[GRASS-user] How to convert lines into points

Moritz Lennert mlennert at club.worldonline.be
Wed Jun 20 04:35:05 PDT 2012


On 20/06/12 12:09, J22lill wrote:
> I have to convert lines into points using  the v.to.points command, but it
> doesn't succeed. Also, I am not particularly familiar with GRASS yet.
>
> I always got the same error:
> /v.to.points input=gr_ne_water_clip_lines at Kodutoo2 type=line llayer=1
> "output=C:/Documents and Settings/Kasutaja/My Documents/Dropbox/EMU
> PhD/EpiNOVA GIS/Assignments/Kodutöö2/kodutöö
> vol2/vietnam_ne_water_linestopoints.shp" dmax=100 -v
> Illegal filename. Character  not allowed.
>
> Illegal vector map name . Character ':' not allowed.
>
> Output vector map name is not valid map name
> Finished with error/
>
> Can somebody help me?

Your output has to be a GRASS map name, not a filename. GRASS works with 
internal vector and raster formats. So you have to first run v.to.points 
to create an GRASS vector and then, if you need the map as shapefile, 
run v.out.ogr to export the map.

Moritz


More information about the grass-user mailing list