Revision 42283 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/ring/Ring2DM.java
Ring2DM.java | ||
---|---|---|
38 | 38 |
import org.gvsig.fmap.geom.jts.primitive.curve.line.Line2DM; |
39 | 39 |
import org.gvsig.fmap.geom.jts.primitive.surface.polygon.Polygon2D; |
40 | 40 |
import org.gvsig.fmap.geom.jts.primitive.surface.polygon.Polygon2DM; |
41 |
import org.gvsig.fmap.geom.jts.util.JTSUtils; |
|
41 | 42 |
import org.gvsig.fmap.geom.primitive.Ring; |
42 | 43 |
|
43 | 44 |
/** |
... | ... | |
49 | 50 |
/** |
50 | 51 |
* @param subtype |
51 | 52 |
*/ |
52 |
protected Ring2DM() {
|
|
53 |
super(); |
|
53 |
public Ring2DM() {
|
|
54 |
super(Geometry.TYPES.RING);
|
|
54 | 55 |
} |
55 | 56 |
|
56 | 57 |
/** |
... | ... | |
64 | 65 |
* @see org.gvsig.fmap.geom.Geometry#cloneGeometry() |
65 | 66 |
*/ |
66 | 67 |
public Geometry cloneGeometry() { |
67 |
return new Ring2DM((Coordinate[]) coordinates.clone());
|
|
68 |
return new Ring2DM(cloneCoordinates().toCoordinateArray());
|
|
68 | 69 |
} |
69 | 70 |
|
70 | 71 |
/* (non-Javadoc) |
... | ... | |
85 | 86 |
return multiPolygon; |
86 | 87 |
} |
87 | 88 |
|
89 |
/* |
|
90 |
* (non-Javadoc) |
|
91 |
* |
|
92 |
* @see org.gvsig.fmap.geom.jts.GeometryJTS#getJTS() |
|
93 |
*/ |
|
94 |
public com.vividsolutions.jts.geom.Geometry getJTS() { |
|
95 |
return JTSUtils.createJTSLinearRing(coordinates); |
|
96 |
} |
|
88 | 97 |
} |
Also available in: Unified diff