Either

1) fix the SIS DB plugin to use Doubles for Oracle NUMBER, or
2) fix the ShapefileWriter to accept BigDecimal values and convert them 
to doubles.  '

#2 should be pretty easy to do.

Stefan Steiniger wrote:
> any suggestions?
>
> -------- Original Message --------
> Subject:      [jump-pilot - OpenJUMP Functions Problems] BigDecimal to 
> Double class cat exception
> Date:         Wed, 20 May 2009 16:30:16 +0000
> From:         SourceForge.net <nore...@sourceforge.net>
> To:   nore...@sourceforge.net
>
>
>
> Read and respond to this message at: 
> https://sourceforge.net/forum/message.php?msg_id=7401466
> By: spatial1234
>
> I am using SIS DB plugin to query the data from oracle database. One of my 
> table
> column is number datatype.
> When I try to save as shpafile it's giving me following exception. Does 
> anybody
> has fix for it?
>
> Here my oracle table structure
>
> create table county
> (county_id  NUMBER,
>  geom       mdsys.sdo_Geometry);
>
> java.lang.ClassCastException: java.math.BigDecimal cannot be cast
> to java.lang.Double
>       at 
> com.vividsolutions.jump.io.ShapefileWriter.writeDbf(ShapefileWriter.java:436
> )
>       at 
> com.vividsolutions.jump.io.ShapefileWriter.write(ShapefileWriter.java:288)
>       at 
> com.vividsolutions.jump.io.datasource.ReaderWriterFileDataSource$1.executeUp
> date(ReaderWriterFileDataSource.java:72)
>       at 
> com.vividsolutions.jump.workbench.datasource.AbstractSaveDatasetAsPlugIn.run
> (AbstractSaveDatasetAsPlugIn.java:33)
>       at 
> com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run
> (TaskMonitorManager.java:149)
>       at java.lang.Thread.run(Unknown Source)
>
> Thanks,
> Bala
>
> ______________________________________________________________________
> You are receiving this email because you elected to monitor this forum.
> To stop monitoring this forum, login to SourceForge.net and visit: 
> https://sourceforge.net/forum/unmonitor.php?forum_id=729479
>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables 
> unlimited royalty-free distribution of the report engine 
> for externally facing server and web deployment. 
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>   

-- 
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to