[winGRASS] m.proj in batch mode without grass5 iin a dos window 2 questions?

Andreas Lange Andreas.Lange at Rhein-Main.de
Tue Aug 14 15:37:31 EDT 2001


Hi Bob,

there is a bunch of reasons why this can not work:

- windows xp is not yet supported with cygwin. The compiled binary for
cygwin will possibly not work. I do not plan to support windows xp until
cygwin officially announced support ;-).
- m.proj does not work from the command line, only interactive. Please
see the html-page for m.proj.
- you should use all grass commands from within cygwin or the paths are
not setup correct. If you use any grass exe from the dos shell or from
the mks you are on your own.

I just tested from the cygwin bash shell (logged into grass) that m.proj
works as described in the manual page. I did not check if the output
values are correct, but at least there are no NaN or inf values.

HTH,

Andreas 


Bob Sandefur wrote:
> 
> Hi-
> 
>  I was  tring to use m.proj to convert coordinates in batch mode from a dos window in
> windoze XP. I couldn't get it to work (but I haven't tried very hard b4 posting this) the following
> script works in a cygwin window:
> 
> #mproj.ksh
> export GISBASE=c:/usr/local/grass5
> export GISDBASE=d:/grassDB
> export MAPSET=rls
> export LOCATION_NAME=test1
> export GRASS_GUI=text
> 
> cat >jnk <<^
> GISDBASE: /grassDB
> MAPSET: rls
> LOCATION_NAME: test1
> GRASS_GUI: text
> ^
> export GISRC=jnk
> 
> cat >jnkmctl <<^
> 1
> ll
> utm
> clark66
> 13
> 
> 45N
> 105W
> 
> 45:30:00N
> 105:30:35.34W
> 
> ^
> rm jnk.out
> #mproj.exe is local copy of m.proj
> mproj.exe <jnkmctl 2>jnk.out
> exit
> 
> Questions:
> 
> 1)  Any suggestions for getting the above script to work in a dos window with MKS toolkit?
> 2 ) I can't get m.proj to work for file input and file output (it gives inf for converted values.)
>      Does m.proj under windows work for file input and file output for anyone?
> 
> thanx
> 
> Robert (Bob) L Sandefur
> Principal Geostatistician
> Pincock Allen & Holt (A Hart Crowser Company)
>  International Minerals Consultants
>  274 Union Suite 200
>  Lakewood CO 80228
>  USA
>  303 914-4467  v
>  303 987-8907 f
> rls at pincock.com
> 
> _______________________________________________
> winGRASS mailing list
> winGRASS at grass.itc.it
> http://grass.itc.it/mailman/listinfo/wingrass

-- 
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
url: http://mitglied.tripod.de/AndreasLange
mail: Andreas.Lange_at_Rhein-Main.de - A.C.Lange_at_GMX.net



More information about the grass-windows mailing list