Hi Charles,

> Details of problems
>
> uDig 1.2.2 was installed in the folder "C:\Documents and Settings\u4cnncre\My 
> Documents\..." on a Windows XP computer. Sample data layers, HortonMachine
> modules library, and generic GIS modules libraries were installed in a 
> subfolder. When attempting to open the Spearfish elevation .asc sample file, 
> uDig couldn't
> open the file. After the elevation .asc and .prj files were moved to 
> "C:\tmp\", file opened properly.

this is a nice catch. I never noticed that the grid reader would fail
when there are spaces in the path. I already reported the problem to
the grid reader maintainers.


> When attempting to run Spatial Toolbox -> HortonMachine module -> 
> Geomorphology -> aspect tool, aspect tool failed when java class "and" 
> couldn't be found.
> After uDig and libraries were reinstalled in "C:\uDig\" folder, program 
> worked properly.
>
> Diagnosis
>
> uDig is passing all script parameters as a single string without placing 
> quotes around each parameter. File URLs containing spaces which should be 
> identified as
> a single parameter are incorrectly identified as multiple parameters. uDig 
> fails the operation with error messages unclear to casual users. (ArcView 2.1 
> had the
> exact same problem back in the 1990's with its spatial extension.)

Ok, I made some tests:

1) placing the grid file in a folder with spaces: udig doesn't load it
but the spatial toolbox can use it and behaves properly. Sure,
everything happens "blind".
2) placing the oms libraries (jgrasstools) in a folder that contains
spaces. Everything behaves properly and here I have a problem to
reproduce your issue.

In the toolbox you have the possibility to enable a debugging mode. If
you do so, a lot of info will be added to the run (could you please
run that and let us see the log?). In the first part the actual
command that is issues is shown, in my case something like:


------------------
java
        -Xmx64m
        -Doms.sim.resources="/home/moovida/TMP/Documents and
Settings/jgt-jgrassgears-0.7.3-SNAPSHOT.jar:/home/moovida/TMP/Documents
and Settings/jgt-hortonmachine-0.7.3-SNAPSHOT.jar"
        -cp
                
.:/home/moovida/SOFTWARE/ECLIPSE/eclipse_3.7/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar:/home/moovida/development/moovidas-udig-git/plugins/eu.udig.omsbox:/home/moovida/development/moovidas-udig-git/plugins/eu.udig.omsbox/bin:/home/moovida/development/moovidas-udig-git/plugins/net.refractions.udig.libs/lib/*:/home/moovida/TMP/Documents
and Settings/jgt-jgrassgears-0.7.3-SNAPSHOT.jar:/home/moovida/TMP/Documents
and Settings/jgt-hortonmachine-0.7.3-SNAPSHOT.jar
                oms3.CLI
        -r
                /tmp/omsbox_script_1609043994395242118.oms
-----------------------

As you can see the oms.sim.resources part has quotes and that is ok.

But the -cp part doesn't and also contains spaces in the path. Since
anyways the path is passed to the java part as a command argument,
this should not be a problem at all, the executor takes every argument
as a block and therefore virtually as "quoted".

I am therefor assuming that there might be some different problem,
which I would like to understand and solve.

Could you please provide the debug log in order to get more insight?

Thanks,
Best regards,
Andrea




>
> Sincerely, chuck
>
> Dr Charles R Ehlschlaeger
> ERDC-CERL Geographer,
>      [email protected]
> U of Illinois at Urbana Adj Professor of Geography
>      [email protected]
> cell: 217-418-8942
> fax:  217-373-7266
>
>
>
> Classification: UNCLASSIFIED
> Caveats: NONE
>
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to