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/surface/ellipticarc/AbstractEllipticArc.java
AbstractEllipticArc.java | ||
---|---|---|
264 | 264 |
//FIXME: Esto solo ser?a correcto para transformaciones de traslaci?n, rotaci?n y escala |
265 | 265 |
// Ser?a incorrecto para las de deformaci?n en cizallamiento |
266 | 266 |
|
267 |
Point2D aux = new Point2D(JTSUtils.getPointAtYAxisInEllipse(axis1Start, axis1End, semiAxis2Length)); |
|
267 |
Point2D aux = new Point2D(this.getProjection(), JTSUtils.getPointAtYAxisInEllipse(axis1Start, axis1End, semiAxis2Length));
|
|
268 | 268 |
try { |
269 | 269 |
axis1Start.reProject(ct); |
270 | 270 |
axis1End.reProject(ct); |
... | ... | |
279 | 279 |
semiAxis2Length = 0; |
280 | 280 |
} |
281 | 281 |
try { |
282 |
Point2D transformedMiddlePoint = new Point2D(JTSUtils.getMidPoint(axis1Start, axis1End)); |
|
282 |
Point2D transformedMiddlePoint = new Point2D(this.getProjection(), JTSUtils.getMidPoint(axis1Start, axis1End));
|
|
283 | 283 |
semiAxis2Length = transformedMiddlePoint.distance(aux); |
284 | 284 |
} catch (BaseException e) { |
285 | 285 |
throw new UnsupportedOperationException("Error calculating the radius of the transformed circle.", e); |
... | ... | |
294 | 294 |
//FIXME: Esto solo ser?a correcto para transformaciones de traslaci?n, rotaci?n y escala |
295 | 295 |
// Ser?a incorrecto para las de deformaci?n en cizallamiento |
296 | 296 |
|
297 |
Point2D aux = new Point2D(JTSUtils.getPointAtYAxisInEllipse(axis1Start, axis1End, semiAxis2Length)); |
|
297 |
Point2D aux = new Point2D(this.getProjection(), JTSUtils.getPointAtYAxisInEllipse(axis1Start, axis1End, semiAxis2Length));
|
|
298 | 298 |
axis1Start.transform(at); |
299 | 299 |
axis1End.transform(at); |
300 | 300 |
aux.transform(at); |
301 | 301 |
try { |
302 |
Point2D transformedMiddlePoint = new Point2D(JTSUtils.getMidPoint(axis1Start, axis1End)); |
|
302 |
Point2D transformedMiddlePoint = new Point2D(this.getProjection(), JTSUtils.getMidPoint(axis1Start, axis1End));
|
|
303 | 303 |
semiAxis2Length = transformedMiddlePoint.distance(aux); |
304 | 304 |
} catch (BaseException e) { |
305 | 305 |
throw new UnsupportedOperationException("Error calculating the minor semi-axis of the transformed ellipse.", e); |
Also available in: Unified diff