Thank You Victor.

Using a nightly build, am now able to execute fixeddistancebuffer successfully, 
with shapefile as well as postgis data. However, with union, when using same 
datasets that work fine with buffer, I am always seeing "Null parameter value 
exception" at UnionAlgorithm.execute().

With linestoequispacedpoints, again using same datasets, execute() throws the 
following:


java.io.IOException: Current fid index is null, next must be called before 
write()
at 
org.geotools.data.shapefile.indexed.IndexedFidWriter.write(IndexedFidWriter.java:250)
at 
org.geotools.data.shapefile.indexed.IndexedShapefileFeatureWriter.write(IndexedShapefileFeatureWriter.java:100)
at 
org.geotools.data.shapefile.ShapefileFeatureWriter.close(ShapefileFeatureWriter.java:225)
at 
org.geotools.data.shapefile.indexed.IndexedShapefileFeatureWriter.close(IndexedShapefileFeatureWriter.java:108)
at 
org.geotools.data.TransactionStateDiff.applyDiff(TransactionStateDiff.java:265)
at org.geotools.data.TransactionStateDiff.commit(TransactionStateDiff.java:145)
at org.geotools.data.DefaultTransaction.commit(DefaultTransaction.java:182)
at es.unex.sextante.geotools.GTVectorLayer.postProcess(GTVectorLayer.java:349)
at 
es.unex.sextante.core.GeoAlgorithm.postProcessOutputDataObjects(GeoAlgorithm.java:268)
at es.unex.sextante.core.GeoAlgorithm.execute(GeoAlgorithm.java:218)
at es.unex.sextante.core.GeoAlgorithm.execute(GeoAlgorithm.java:156)
at VectorExample.doProcessing(VectorExample.java:111)
at VectorExample.main(VectorExample.java:42)
Exception in thread "main" java.lang.NullPointerException
at 
es.unex.sextante.dataObjects.AbstractVectorLayer.calculateShapesCountAndExtent(AbstractVectorLayer.java:113)
at 
es.unex.sextante.dataObjects.AbstractVectorLayer.getShapesCount(AbstractVectorLayer.java:90)
at VectorExample.doProcessing(VectorExample.java:127)
at VectorExample.main(VectorExample.java:42)

So, am seeing different errors when using same datasets with different algos. 
Are these known issues and do these algos need more info to work with these 
datasets?
Any insights that you can provide are appreciated. 

Thanks!
Ajit


>________________________________
>From: Victor Olaya <vola...@gmail.com>
>To: Ajit Dharmik <dharam...@yahoo.com>
>Cc: "sextante-users@lists.forge.osor.eu" <sextante-users@lists.forge.osor.eu>
>Sent: Sunday, July 3, 2011 11:48 PM
>Subject: Re: [Sextante-users] GeoTools 2.7 bindings
>
>Ajit,
>
>The nightly build, also available from our website, already contains
>bindings for GeoTools 2.7. They are also available as source code from
>our SVN. You should try those bindings and see if you still have
>problems. If so, just report them and we will start working on fixing
>them, but hopefully everything will work fine with them.
>
>Regards
>
>Victor
>
>
>
>2011/7/3 Ajit Dharmik <dharam...@yahoo.com>:
>> My apologies for incomplete previous email. Here's the complete email:
>>
>> Hello list,
>>
>> Am new to Sextante and am considering using this lib in a geo-solutions web
>> app am working on.
>> After downloading Sextante 0.6 recently, I executed a sample that runs the
>> LinesToEquispacedPointsAlgorithm tool. After providing a shapefile
>> containing lines, the output shapefile came out empty. No error messages
>> were logged. Sextante logger only had Info messages as follows:
>> Info messages:Sun, 03-Jul-2011 14:14:02 INFO: Executing command:
>> runalg("linestoequispacedpoints", "busroute1", "5000.0",
>> "D:\Works\data\linesoutput.shp")
>> Sun, 03-Jul-2011 14:14:02 INFO: Starting algorithm execution...:Jul 3, 2011
>> 2:14:02 PM
>> Sun, 03-Jul-2011 14:14:02 INFO: Finished algorithm execution:Jul 3, 2011
>> 2:14:02 PM
>> Executed FixedDistanceBufferAlgorithm and UnionAlgorithm as well, result
>> again is always empty. The output shapefile gets created with a schema, but
>> no features in it. Execution finishes almost instantaneously.
>> Info messages:Sun, 03-Jul-2011 14:26:20 INFO: Executing command:
>> runalg("fixeddistancebuffer", "Houses", "2000.0", "0", "0", "false",
>> "D:\Works\data\buffOut.shp")
>> Sun, 03-Jul-2011 14:26:20 INFO: Starting algorithm execution...:Jul 3, 2011
>> 2:26:20 PM
>> Sun, 03-Jul-2011 14:26:21 INFO: Finished algorithm execution:Jul 3, 2011
>> 2:26:21 PM
>> Info messages:Sun, 03-Jul-2011 14:26:03 INFO: Executing command:
>> runalg("union", "counties1", "counties2", "D:\Works\data\unionOut.shp")
>> Sun, 03-Jul-2011 14:26:03 INFO: Starting algorithm execution...:Jul 3, 2011
>> 2:26:03 PM
>> Sun, 03-Jul-2011 14:26:03 INFO: Finished algorithm execution:Jul 3, 2011
>> 2:26:03 PM
>> Am using GeoTools 2.7 and had to modify GeoTool bindings (extensions of
>> es.unex.sextante.dataObjects.AbstractVectorLayer) a bit to resolve
>> compilation issues in classes in es.unex.sextante.geotools package.
>> I suspect my changes to these bindings is causing empty output. Could
>> anybody provide any guidance on creating correct GeoTools 2.7 bindings for
>> Sextante?
>> Any feedback/help/pointers appreciated.
>> Thanks!
>> AD
>> _______________________________________________
>> Sextante-users mailing list
>> Sextante-users@lists.forge.osor.eu
>> https://lists.forge.osor.eu/listinfo/sextante-users
>>
>>
>
>
>
_______________________________________________
Sextante-users mailing list
Sextante-users@lists.forge.osor.eu
https://lists.forge.osor.eu/listinfo/sextante-users

Responder a