Revision 21049 branches/v2_0_0_prep/libraries/libFMap_geometries/src-test/org/gvsig/fmap/geom/GeometryManagerTest.java
GeometryManagerTest.java | ||
---|---|---|
12 | 12 |
import org.gvsig.fmap.geom.primitive.Curve2D; |
13 | 13 |
import org.gvsig.fmap.geom.primitive.Point; |
14 | 14 |
import org.gvsig.fmap.geom.primitive.Point2D; |
15 |
import org.gvsig.fmap.geom.primitive.Solid; |
|
15 | 16 |
import org.gvsig.fmap.geom.type.GeometryType; |
16 | 17 |
|
17 | 18 |
|
... | ... | |
66 | 67 |
|
67 | 68 |
|
68 | 69 |
|
69 |
Point p = (Point) GeometryFactory.createPoint2D(1, 2);
|
|
70 |
Point p = (Point) gm.getGeometryFactory().createPoint2D(1, 2);
|
|
70 | 71 |
|
71 | 72 |
|
72 | 73 |
GeometryOperationContext ctx = new GeometryOperationContext(); |
... | ... | |
81 | 82 |
|
82 | 83 |
|
83 | 84 |
|
85 |
// Registramos una factory |
|
86 |
|
|
87 |
gm.registerGeometryFactory(new MyFactory()); |
|
88 |
MyFactory fact = (MyFactory) gm.getGeometryFactory(); |
|
89 |
Solid sol = fact.createTorus3D(0,1); |
|
90 |
assertNotNull(sol); |
|
91 |
logger.debug(sol); |
|
84 | 92 |
logger.debug("--------- testRegister() END ----------"); |
85 | 93 |
} |
86 | 94 |
|
Also available in: Unified diff