[GRASS-user] ps.map read
Frank David
frank.david at geophom.fr
Tue Nov 13 10:40:57 PST 2018
Hi all,
I reply to myself.
In psmap file, "read" instruction should be placed at the end of the
file, and the "end" instruction in the read file itself.
This makes possible to create ps and pdf in a shell loop and avoid
ERREUR message.
Cheers
Frank
Le 07/11/2018 à 18:28, Frank David a écrit :
> Hello all,
>
> If I use <read> instruction inside my psmap file the command > ps.map
> input=myfile.psmap output=myfile.ps does not work and the exit message
> is :
>
> enter 'help' for help, 'end' when done, 'exit' to quit
>
> But if I execute inside a shell loop, like > ls 01*.psmap |while read
> fic;do ps.map input="${fic}" output="${fic%.*}.ps" --overwrite;done it
> works! But I cannot run multiple ps.map with ls *.psmap. The error
> message is :
>
> ERREUR :myfile.psmap : illegal request
>
> If I comment <read> instruction with # inside my psmap. everything is
> working.
>
> I have put my <read> just before the last <end> instruction. The read
> file contains only a v.points layer.
>
> Using a <read> is very powerfull, but ps.map in a shell loop is also
> very usefull... to be able to do both would be ideal !
>
> Thanks for your tricks if any
>
> Cheers,
>
> Frank
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
More information about the grass-user
mailing list