Revision 44099 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/Arc2D.java
Arc2D.java | ||
---|---|---|
117 | 117 |
*/ |
118 | 118 |
public Point getCenterPoint() { |
119 | 119 |
((PointJTS)init).getJTS(); |
120 |
Point2D center = new Point2D(JTSUtils.getCircumcentre(init, middle, end)); |
|
120 |
Point2D center = new Point2D(this.getProjection(), JTSUtils.getCircumcentre(init, middle, end));
|
|
121 | 121 |
return center; |
122 | 122 |
} |
123 | 123 |
|
... | ... | |
191 | 191 |
Coordinate[] coordinates = getJTS().getCoordinates(); |
192 | 192 |
multiPoint.ensureCapacity(coordinates.length); |
193 | 193 |
for (int i = 0; i < coordinates.length; i++) { |
194 |
multiPoint.addPoint(new Point2D(coordinates[i])); |
|
194 |
multiPoint.addPoint(new Point2D(this.getProjection(), coordinates[i]));
|
|
195 | 195 |
} |
196 | 196 |
return multiPoint; |
197 | 197 |
} |
Also available in: Unified diff