[Gvsig_english] standalone command-line Sextante not working
keith lewis
lewis.milehi at gmail.com
Thu Jan 22 21:40:17 CET 2009
Hello,
Has anyone used the Standalone Sextante command line tool? I installed the
Standalone command line tool (sextante-0.15.zip,sextante_gt25.zip,
geotools25.zip) as described on the web page below but I do not get an
output Shapefile when I run various Vector commands from a DOS prompt. I
have the 1.6 JRE. My shapefiles are good because the clip command works
inside the gvSIG Sextante extension.
http://forge.osor.eu/plugins/wiki/index.php?Command%20line&id=13&type=g
My script file has this command:
runalg("clip", "E:\\grid\\cv2gcdb\\4070_ladesc.shp",
"E:\\grid\\cv2gcdb\\new.shp", "E:\\grid\\cv2gcdb\\clipped.shp");
E:\sextante_gt25>java -jar sextante_cmd.jar aa.scr
Jan 12, 2009 10:07:52 AM org.geotools.arcsde.ArcSDEDataStoreFactory <init>
WARNING: The ESRI ArcSDE Java API seems to not be on your classpath. Please
veri
fy that all needed jars are. ArcSDE data stores will not be available.
Jan 12, 2009 10:07:52 AM org.geotools.data.db2.DB2DataStoreFactory
isAvailable
INFO: DB2 driver found: false
Jan 12, 2009 10:07:54 AM org.geotools.data.db2.DB2DataStoreFactory
isAvailable
INFO: DB2 driver found: false
**Clip**
Progress: 0%
Message:
Progress: 100%
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at
es.unex.sextante.cmd.GeoAlgorithmExecutors.execute(GeoAlgorithmExecut
ors.java:44)
at es.unex.sextante.cmd.bshcommands.runalg.invoke(runalg.java:141)
at es.unex.sextante.cmd.bshcommands.runalg.invoke(runalg.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at bsh.Reflect.invokeMethod(Unknown Source)
at bsh.Reflect.invokeStaticMethod(Unknown Source)
at bsh.Reflect.invokeCompiledCommand(Unknown Source)
at bsh.Name.invokeLocalMethod(Unknown Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.source(Unknown Source)
at bsh.Interpreter.source(Unknown Source)
at es.unex.sextante.cmd.SextanteCmd.execute(SextanteCmd.java:62)
at es.unex.sextante.cmd.SextanteCmd.main(SextanteCmd.java:31)
Caused by: java.lang.NullPointerException
at
es.unex.sextante.geotools.GTOutputFactory.getNewVectorLayer(GTOutputF
actory.java:31)
at
es.unex.sextante.core.GeoAlgorithm.getNewVectorLayer(GeoAlgorithm.jav
a:974)
at
es.unex.sextante.vectorTools.clip.ClipAlgorithm.processAlgorithm(Clip
Algorithm.java:40)
at es.unex.sextante.core.GeoAlgorithm.execute(GeoAlgorithm.java:202)
at es.unex.sextante.core.ProcessTask.call(ProcessTask.java:51)
at es.unex.sextante.core.ProcessTask.call(ProcessTask.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
es.unex.sextante.exceptions.GeoAlgorithmExecutionException:
java.lang.NullPointe
rException
at
es.unex.sextante.cmd.GeoAlgorithmExecutors.execute(GeoAlgorithmExecut
ors.java:50)
at es.unex.sextante.cmd.bshcommands.runalg.invoke(runalg.java:141)
at es.unex.sextante.cmd.bshcommands.runalg.invoke(runalg.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at bsh.Reflect.invokeMethod(Unknown Source)
at bsh.Reflect.invokeStaticMethod(Unknown Source)
at bsh.Reflect.invokeCompiledCommand(Unknown Source)
at bsh.Name.invokeLocalMethod(Unknown Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.source(Unknown Source)
at bsh.Interpreter.source(Unknown Source)
at es.unex.sextante.cmd.SextanteCmd.execute(SextanteCmd.java:62)
at es.unex.sextante.cmd.SextanteCmd.main(SextanteCmd.java:31)
ERROR: java.lang.NullPointerException
Execution finished successfuly!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://runas.cap.gva.es/pipermail/gvsig_internacional/attachments/20090122/6608143e/attachment.htm
More information about the Gvsig_internacional
mailing list