I am testing some functionality: I am trying to convert an SDO geometry to JTS,
but the method = SDO.create (GeometryFactory gf, int GTYPE, int SRID, double []
point, int [] elemInfo, double [] ordinates) is throwing a ArithmeticException
error! the message is /by zero ..... why is this happening?
The values is:
GTYPE = 3
SRID = 29182
point = [0]15.0 ; [1]20.0
elemInfo = [0]1 ; [1] 1003; [2] 1
ordinates = {15.,20.,15.,25.,20.,25.,20.,20.,15.,20. }
and my method is simple:
private Geometry toGeometry(int GTYPE,int SRID,double[] POINT, int[]
ELEMINFO,double[] ORDINATES)
{
return SDO.create( new GeometryFactory(),
GTYPE,
SRID,
POINT,
ELEMINFO,
ORDINATES );
}-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users