Revision 20869
trunk/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/util/Converter.java | ||
---|---|---|
69 | 69 |
import com.vividsolutions.jts.geom.CoordinateArrays; |
70 | 70 |
import com.vividsolutions.jts.geom.Envelope; |
71 | 71 |
import com.vividsolutions.jts.geom.GeometryCollection; |
72 |
import com.vividsolutions.jts.geom.GeometryFactory; |
|
73 | 72 |
import com.vividsolutions.jts.geom.LineString; |
74 | 73 |
import com.vividsolutions.jts.geom.LinearRing; |
75 | 74 |
import com.vividsolutions.jts.geom.MultiLineString; |
... | ... | |
89 | 88 |
* �QU� PODEMOS HACER CON LOS MULTIPOINT??? => DEBER�AMOS TRABAJAR CON UN |
90 | 89 |
* ARRAY DE PUNTOS EN FShape.....Pensarlo bien. |
91 | 90 |
*/ |
92 |
public final static GeometryFactory geomFactory = new GeometryFactory();
|
|
91 |
public final static com.vividsolutions.jts.geom.GeometryFactory geomFactory = new com.vividsolutions.jts.geom.GeometryFactory();
|
|
93 | 92 |
public static CGAlgorithms cga = new RobustCGAlgorithms(); |
94 | 93 |
// private final static AffineTransform at = new AffineTransform(); |
95 | 94 |
//private static double POINT_MARKER_SIZE = 3.0; |
... | ... | |
232 | 231 |
theIterator.next(); |
233 | 232 |
} //end while loop |
234 | 233 |
|
235 |
lin = new GeometryFactory().createLineString(CoordinateArrays.toCoordinateArray( |
|
234 |
lin = new com.vividsolutions.jts.geom.GeometryFactory().createLineString(CoordinateArrays.toCoordinateArray(
|
|
236 | 235 |
arrayCoords)); |
237 | 236 |
|
238 | 237 |
// CAMBIO: ENTREGAMOS SIEMPRE MULTILINESTRING, QUE ES |
... | ... | |
241 | 240 |
// if (numParts > 1) // Generamos una MultiLineString |
242 | 241 |
// { |
243 | 242 |
arrayLines.add(lin); |
244 |
geoJTS = geomFactory.createMultiLineString(GeometryFactory.toLineStringArray( |
|
243 |
geoJTS = geomFactory.createMultiLineString(com.vividsolutions.jts.geom.GeometryFactory.toLineStringArray(
|
|
245 | 244 |
arrayLines)); |
246 | 245 |
/* } else { |
247 | 246 |
geoJTS = lin; |
Also available in: Unified diff