Revision 3207 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/v02/FConverter.java
FConverter.java | ||
---|---|---|
47 | 47 |
package com.iver.cit.gvsig.fmap.core.v02; |
48 | 48 |
|
49 | 49 |
import com.iver.cit.gvsig.fmap.core.FGeometry; |
50 |
import com.iver.cit.gvsig.fmap.core.FGeometryCollection; |
|
50 | 51 |
import com.iver.cit.gvsig.fmap.core.FPoint2D; |
51 | 52 |
import com.iver.cit.gvsig.fmap.core.FPolygon2D; |
52 | 53 |
import com.iver.cit.gvsig.fmap.core.FPolyline2D; |
... | ... | |
165 | 166 |
case FShape.POINT + FShape.Z: |
166 | 167 |
FPoint2D p = (FPoint2D) shp; |
167 | 168 |
coord = new Coordinate(p.getX(), p.getY()); |
168 |
geoJTS = new GeometryFactory().createPoint(coord);
|
|
169 |
geoJTS = geomFactory.createPoint(coord);
|
|
169 | 170 |
|
170 | 171 |
break; |
171 | 172 |
|
... | ... | |
189 | 190 |
if (arrayCoords == null) { |
190 | 191 |
arrayCoords = new ArrayList(); |
191 | 192 |
} else { |
192 |
lin = new GeometryFactory().createLineString(CoordinateArrays.toCoordinateArray(
|
|
193 |
lin = geomFactory.createLineString(CoordinateArrays.toCoordinateArray(
|
|
193 | 194 |
arrayCoords)); |
194 | 195 |
arrayLines.add(lin); |
195 | 196 |
arrayCoords = new ArrayList(); |
... | ... | |
239 | 240 |
if (numParts > 1) // Generamos una MultiLineString |
240 | 241 |
{ |
241 | 242 |
arrayLines.add(lin); |
242 |
geoJTS = new GeometryFactory().createMultiLineString(GeometryFactory.toLineStringArray(
|
|
243 |
geoJTS = geomFactory.createMultiLineString(GeometryFactory.toLineStringArray(
|
|
243 | 244 |
arrayLines)); |
244 | 245 |
} else { |
245 | 246 |
geoJTS = lin; |
... | ... | |
862 | 863 |
jtsR.getMinY(), jtsR.getWidth(), jtsR.getHeight()); |
863 | 864 |
return r; |
864 | 865 |
} |
866 |
|
|
867 |
/* public static GeometryCollection convertFGeometryCollection(FGeometryCollection fGeomC) |
|
868 |
{ |
|
869 |
|
|
870 |
geomFactory.createGeometryCollection(theGeoms); |
|
871 |
} */ |
|
865 | 872 |
} |
Also available in: Unified diff