Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-users] Shalstab from console

Dear Claudio,
nice script... :)

I think that the problem should be that in the JGrass Console all the values are passed as Strings so, basically you have to consider numbers as strings and use the " also for the number variable declaration.
For example:
def cohesion= "0";

and so on.

Let me know if this works,

Regards

Silvia

On Wed, Dec 1, 2010 at 6:09 PM, Claudio Della Rocca <anaky75@xxxxxxxxxx> wrote:
Dear list
I am studying Jgrass in this days and I try to launch Shalstab from console because I have also Trasmissivity map and soil depth map, but I have some problems, see below
moreover I think than the script cannot be able to show the map in the screen

this is the command
 
//Please uncomment and define the following options if needed:
# MAPSET= C:\Documents and Settings\jgrassdb\WGS84_UTM33N\roccapiemonte
//# GISBASE= 
//# STARTDATE = 2007-08-03 06:00
//# ENDDATE = 2007-08-06 12:00
//# DELTAT= 30
//# RT= usually not needed
//# DEBUG= false
//# TRACE= false
//# NATIVEDEBUG= false

def slope= "slope";
def ab= "AB";
def trasmissivity= "T";
def cohesion= 0;
def hs= "DEPTH";
def tgphi= 0.577;
def rho= 2.4;
def q= 115.0;
def qcrit= "Qcrit";
def classi= "Classi";
def qcrit map name= "Confronti.Qcrit";
def class map name= "Confronti.Classi";

jgrass {
h.shalstab --igrass-slopemap $slope
--igrass-abmap $ab
--igrass-trasmissivitymap $trasmissivity
--cohesioconst $cohesion
--igrass-hsmap $hs
--tgphiconst $tgphi
--rhoconst $rho
--qconst $q
--ograss-qcritmap $qcrit
--ograss-classimap $classi

and this is the error message

GroovyShell, Version 1.7.0, http://groovy.codehaus.org 
------------------------------ Running model... -------------------------------
Could not find matching constructor for: nl.alterra.openmi.sdk.backbone.Argument(java.lang.String, java.lang.Integer, java.lang.Boolean)
Could not find matching constructor for: nl.alterra.openmi.sdk.backbone.Argument(java.lang.String, java.lang.Integer, java.lang.Boolean)

Total run time: 5797 ms

thanks

_______________________________________________
udig-users mailing list
udig-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.refractions.net/mailman/listinfo/udig-users



Back to the top