Revision 627
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/v02/FConverter.java | ||
---|---|---|
13 | 13 |
import java.lang.reflect.Array; |
14 | 14 |
import java.util.ArrayList; |
15 | 15 |
|
16 |
import com.iver.cit.gvsig.fmap.core.FGeometry; |
|
16 | 17 |
import com.iver.cit.gvsig.fmap.core.FPoint2D; |
17 | 18 |
import com.iver.cit.gvsig.fmap.core.FPolygon2D; |
18 | 19 |
import com.iver.cit.gvsig.fmap.core.FPolyline2D; |
... | ... | |
77 | 78 |
* "flattened PathIterator". El flattened indica que las curvas las pasa a segmentos |
78 | 79 |
* de l?nea recta AUTOMATICAMENTE!!!. |
79 | 80 |
*/ |
80 |
public static Geometry java2d_to_jts(FShape shp)
|
|
81 |
public static Geometry java2d_to_jts(FGeometry fgeom)
|
|
81 | 82 |
{ |
82 | 83 |
double flatness = 0.8; // Por ejemplo. Cuanto m?s peque?o, m?s segmentos necesitar? la curva |
83 | 84 |
// Es la m?xima distancia que permitimos que el trazo aproximado |
84 | 85 |
// difiera del trazo real. |
86 |
FShape shp = fgeom.getShape(); |
|
85 | 87 |
Geometry geoJTS = null; |
86 | 88 |
Coordinate coord; |
87 | 89 |
Coordinate[] coords; |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/FGeometry.java | ||
---|---|---|
122 | 122 |
return shp.getShapeType(); |
123 | 123 |
} |
124 | 124 |
|
125 |
public FShape getShape() { |
|
126 |
return shp; |
|
127 |
} |
|
128 |
|
|
125 | 129 |
} |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/IGeometry.java | ||
---|---|---|
86 | 86 |
* @return DOCUMENT ME! |
87 | 87 |
*/ |
88 | 88 |
Rectangle2D getBounds2D(); |
89 |
|
|
89 | 90 |
} |
Also available in: Unified diff