maven apache wrote:

> I have consider the space problem,and I try to avoid it:
> 
>   String filePath=file.getAbsolutePath();  // F:\anzhuang\Tomcat 5.5\....tif
>   String creatLocation=System.currentTimeMillis()+"location";
>   filePath=filePath.replace("\\", "\\\\"); //no matter I add this line or not 
> the filepath is splitted ever
>   String cmd="g.proj -c georef="+filePath+" location="+creatLocation+" 
> datumtrans=0";

You aren't quoting the path. Try:

String cmd="g.proj -c \"georef="+filePath+"\" location="+creatLocation+" 
datumtrans=0";

-- 
Glynn Clements <[email protected]>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to