[GRASS-user] Question about .ply file with a trailing white space at the end

Moritz Lennert mlennert at club.worldonline.be
Wed Oct 31 05:23:42 PDT 2018


Dear ?

May I encourage you to send such questions to the mailing list, and not 
as private mail to the developers.

On 31/10/18 11:43, ifmendozar at gmail.com wrote:
> Dear Moritz
> 
> I having the same problem you solved here (http://osgeo-org.1560.x6.nabble.com/Using-GRASS-on-a-ply-file-td5366836.html). And I would really appreciate if you show me how you deleted all those white spaces because my .PLY file has millions of points and I can't do it manually

It depends on your OS.

In GNU/Linux (and I guess Mac OSX), it is quite simple to use either a 
tool such as sed, with a rule like

s/ $//g

e.g.

sed "s/ $//" BascFin2.ply > CorrectedFile.ply

Or you can use a similar regular expression in a text editor such as vi, 
gedit or whatever your favorite.

I don't know what the capacities of standard MS Windows tools are in 
that respect.

Moritz






More information about the grass-user mailing list