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/line/AbstractLine.java
AbstractLine.java | ||
---|---|---|
24 | 24 |
|
25 | 25 |
import java.awt.Shape; |
26 | 26 |
import java.awt.geom.AffineTransform; |
27 |
import java.awt.geom.GeneralPath; |
|
27 | 28 |
import java.awt.geom.PathIterator; |
28 | 29 |
import java.util.Collections; |
29 | 30 |
import java.util.Iterator; |
30 | 31 |
|
31 | 32 |
import com.vividsolutions.jts.geom.Coordinate; |
32 |
import java.awt.geom.GeneralPath; |
|
33 | 33 |
|
34 | 34 |
import org.apache.commons.lang3.StringUtils; |
35 | 35 |
import org.cresques.cts.ICoordTrans; |
... | ... | |
49 | 49 |
import org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException; |
50 | 50 |
import org.gvsig.fmap.geom.primitive.GeneralPathX; |
51 | 51 |
import org.gvsig.fmap.geom.primitive.IGeneralPathX; |
52 |
import org.gvsig.fmap.geom.primitive.OrientablePrimitive; |
|
53 | 52 |
import org.gvsig.fmap.geom.primitive.Point; |
54 | 53 |
|
55 | 54 |
/** |
... | ... | |
97 | 96 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
98 | 97 |
} |
99 | 98 |
|
100 |
}
|
|
99 |
} |
|
101 | 100 |
/** |
102 | 101 |
* |
103 | 102 |
*/ |
... | ... | |
114 | 113 |
} |
115 | 114 |
|
116 | 115 |
abstract public Point getVertex(int index); |
117 |
|
|
116 |
|
|
118 | 117 |
public Iterator<Point> iterator() { |
119 | 118 |
return new VertexIterator(); |
120 | 119 |
} |
... | ... | |
327 | 326 |
if (ct == null) { |
328 | 327 |
return; |
329 | 328 |
} |
329 |
ArrayListCoordinateSequence tmpCoordinates = new ArrayListCoordinateSequence(); |
|
330 |
tmpCoordinates.ensureCapacity(coordinates.size()); |
|
330 | 331 |
for (Iterator<Coordinate> iterator = coordinates.iterator(); iterator.hasNext();) { |
331 | 332 |
Coordinate coordinate = (Coordinate) iterator.next(); |
332 | 333 |
|
... | ... | |
335 | 336 |
p = ct.convert(p, p); |
336 | 337 |
coordinate.x = p.getX(); |
337 | 338 |
coordinate.y = p.getY(); |
339 |
tmpCoordinates.add(coordinate); |
|
338 | 340 |
} catch (Exception exc) { |
339 | 341 |
/* |
340 | 342 |
* This can happen when the reprojection lib is unable |
... | ... | |
342 | 344 |
* is out of the valid range and some computing |
343 | 345 |
* problem happens) |
344 | 346 |
*/ |
345 |
throw new ReprojectionRuntimeException(ct.getPOrig(), ct.getPDest(), p, exc); |
|
346 | 347 |
} |
347 | 348 |
} |
349 |
coordinates=tmpCoordinates; |
|
348 | 350 |
} |
349 | 351 |
|
350 | 352 |
/* |
Also available in: Unified diff