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/arc/AbstractArc.java

View differences:

AbstractArc.java
407 407
        other.setPoints(clonedInit, clonedMiddle, clonedEnd);
408 408
        return other;
409 409
    }
410
    
411
    @Override
412
    public Geometry force2DM() throws GeometryOperationNotSupportedException, GeometryOperationException {
413
        Arc2DM other = new Arc2DM();
414
        other.setProjection(this.getProjection());
415
        Point clonedInit = (Point)init.force2DM();
416
        Point clonedMiddle = (Point)middle.force2DM();
417
        Point clonedEnd = (Point)end.force2DM();
418
        other.setPoints(clonedInit, clonedMiddle, clonedEnd);
419
        return other;
420
    }
421
    
422
    @Override
423
    public Geometry force3D() throws GeometryOperationNotSupportedException, GeometryOperationException {
424
        Arc2DZ other = new Arc2DZ();
425
        other.setProjection(this.getProjection());
426
        Point clonedInit = (Point)init.force3D();
427
        Point clonedMiddle = (Point)middle.force3D();
428
        Point clonedEnd = (Point)end.force3D();
429
        other.setPoints(clonedInit, clonedMiddle, clonedEnd);
430
        return other;
431
    }
410 432

  
433
    @Override
434
    public Geometry force3DM() throws GeometryOperationNotSupportedException, GeometryOperationException {
435
        Arc2DZM other = new Arc2DZM();
436
        other.setProjection(this.getProjection());
437
        Point clonedInit = (Point)init.force3DM();
438
        Point clonedMiddle = (Point)middle.force3DM();
439
        Point clonedEnd = (Point)end.force3DM();
440
        other.setPoints(clonedInit, clonedMiddle, clonedEnd);
441
        return other;
442
    }
443

  
444

  
411 445
}

Also available in: Unified diff