[Proj] Geo Transfoms and calculations
Gerald I. Evenden
geraldi.evenden at gmail.com
Tue Jan 6 19:47:50 EST 2009
On Tuesday 06 January 2009 5:56:52 pm Charles Karney wrote:
> Gerald I. Evenden wrote:
> > The need for readline or something like it is so universal it should
> > be supported under a more general license. Can you imagine using
> > 'bash' or any of the other shell programs without it? Usage applies
> > to any command line program. Just like the program I am working on:
> > without it if you make an error typing in a line, you have to do the
> > whole line over; if you made an error on the last command, again, type
> > it over. Without it you can't back up and make a quick fix.
> Some other suggestions:
> Code your programs without readline but suggest that the user invoke
> them with rlwrap(1) which intercepts the keyboard input and does the
> readline magic on it. E.g.,
> rlwrap proj +proj=utm +lon_0=112w +ellps=clrk66 -r
> 45d15.55N -111d30
> Code your program to do something useful with flags and 1 (or 2) lines
> of input, and then use a pipe and bash's readline capabilities. E.g.,
> echo 45d15.55N -111d30 | proj +proj=utm +lon_0=112w +ellps=clrk66 -r
Sorry, I forgot to mention: where do people come up with these things!?! I
didn't even think of looking for such an animal as rlwrap and I had never
heard of it.
Anyway, thank-you very much for the suggestion.
The whole religious complexion of the modern world is due
to the absence from Jerusalem of a lunatic asylum.
-- Havelock Ellis (1859-1939) British psychologist
More information about the Proj