Revision 47432 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.jts/src/main/java/org/gvsig/fmap/geom/jts/primitive/curve/periellipse/PeriEllipse2D.java

View differences:

PeriEllipse2D.java
69 69

  
70 70
    @Override
71 71
    public Geometry force2D() throws GeometryOperationNotSupportedException, GeometryOperationException {
72
        PeriEllipse2D other = new PeriEllipse2D();
72
        Geometry c = this.cloneGeometry();
73
        return c;
74
    }
75
    
76
    @Override
77
    public Geometry force2DM() throws GeometryOperationNotSupportedException, GeometryOperationException {
78
        PeriEllipse2DM other = new PeriEllipse2DM();
73 79
        other.setProjection(this.getProjection());
74
        other.setPoints((Point)init.force2D(), (Point)end.force2D(), ydist);
80
        other.setPoints((Point)init.force2DM(), (Point)end.force2DM(), ydist);
75 81
        return other;
76 82
    }
83
    
84
    @Override
85
    public Geometry force3D() throws GeometryOperationNotSupportedException, GeometryOperationException {
86
        PeriEllipse2DZ other = new PeriEllipse2DZ();
87
        other.setProjection(this.getProjection());
88
        other.setPoints((Point)init.force3D(), (Point)end.force3D(), ydist);
89
        return other;
90
    }
77 91

  
92
    @Override
93
    public Geometry force3DM() throws GeometryOperationNotSupportedException, GeometryOperationException {
94
        PeriEllipse2DZM other = new PeriEllipse2DZM();
95
        other.setProjection(this.getProjection());
96
        other.setPoints((Point)init.force3DM(), (Point)end.force3DM(), ydist);
97
        return other;
98
    }
99
    
100

  
78 101
    /* (non-Javadoc)
79 102
     * @see org.gvsig.fmap.geom.jts.GeometryJTS#getJTS()
80 103
     */

Also available in: Unified diff