Revision 44612 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/surface/ellipse/AbstractEllipse.java
AbstractEllipse.java | ||
---|---|---|
28 | 28 |
|
29 | 29 |
import org.cresques.cts.CoordTransRuntimeException; |
30 | 30 |
import org.cresques.cts.ICoordTrans; |
31 |
import org.gvsig.fmap.geom.Geometry; |
|
31 | 32 |
|
32 | 33 |
import org.gvsig.fmap.geom.jts.gputils.DefaultGeneralPathX; |
33 | 34 |
import org.gvsig.fmap.geom.jts.primitive.point.Point2D; |
... | ... | |
67 | 68 |
protected AbstractEllipse(int type, int subtype) { |
68 | 69 |
super(type, subtype); |
69 | 70 |
} |
71 |
|
|
72 |
@Override |
|
73 |
public Geometry force2D() throws GeometryOperationNotSupportedException, GeometryOperationException { |
|
74 |
Ellipse2D other = new Ellipse2D(); |
|
75 |
other.setPoints((Point)init.force2D(), (Point)end.force2D(), ydist); |
|
76 |
other.setProjection(this.getProjection()); |
|
77 |
return other; |
|
78 |
} |
|
70 | 79 |
|
71 | 80 |
/* (non-Javadoc) |
72 | 81 |
* @see org.gvsig.fmap.geom.primitive.Surface#getNumInteriorRings() |
Also available in: Unified diff