Revision 32005 trunk/extensions/extOracleSpatial/src/es/prodevelop/cit/gvsig/fmap/drivers/jdbc/oracle/OracleSpatialUtils.java

View differences:

OracleSpatialUtils.java
2619 2619
        return ig;
2620 2620
    }
2621 2621
    
2622
    public static IGeometry getFMapGeometrySdoPoint(Datum[] the_data, int d) {
2622
    private static IGeometry getFMapGeometrySdoPoint(Datum[] the_data, int d) {
2623 2623
        double x = 0;
2624 2624
        double y = 0;
2625 2625
        double z = 0;
......
2630 2630
            y = ((NUMBER) aux[1]).doubleValue();
2631 2631

  
2632 2632
            if (d > 2) {
2633
                z = ((NUMBER) aux[2]).doubleValue();
2633
            	if (aux[2] == null) {
2634
            		z = 0;
2635
            	} else {
2636
            		z = ((NUMBER) aux[2]).doubleValue();
2637
            	}
2634 2638
            }
2635 2639
        }
2636 2640
        catch (SQLException se) {

Also available in: Unified diff