Revision 42464 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/spline/AbstractSpline.java
AbstractSpline.java | ||
---|---|---|
336 | 336 |
if (ct == null) { |
337 | 337 |
return; |
338 | 338 |
} |
339 |
ArrayListCoordinateSequence tmpCoordinates = new ArrayListCoordinateSequence(); |
|
340 |
tmpCoordinates.ensureCapacity(coordinates.size()); |
|
339 | 341 |
for (Iterator<Coordinate> iterator = coordinates.iterator(); iterator.hasNext();) { |
340 | 342 |
Coordinate coordinate = (Coordinate) iterator.next(); |
341 | 343 |
|
... | ... | |
344 | 346 |
p = ct.convert(p, p); |
345 | 347 |
coordinate.x = p.getX(); |
346 | 348 |
coordinate.y = p.getY(); |
349 |
tmpCoordinates.add(coordinate); |
|
347 | 350 |
} catch (Exception exc) { |
348 | 351 |
/* |
349 | 352 |
* This can happen when the reprojection lib is unable |
... | ... | |
351 | 354 |
* is out of the valid range and some computing |
352 | 355 |
* problem happens) |
353 | 356 |
*/ |
354 |
throw new ReprojectionRuntimeException(ct.getPOrig(), ct.getPDest(), p, exc); |
|
355 | 357 |
} |
356 | 358 |
} |
359 |
coordinates=tmpCoordinates; |
|
357 | 360 |
} |
358 | 361 |
|
359 | 362 |
/* |
Also available in: Unified diff