Revision 21488 branches/v2_0_0_prep/libraries/libFMap_geometries/src-test/org/gvsig/fmap/geom/GeometryManagerTest.java
GeometryManagerTest.java | ||
---|---|---|
14 | 14 |
import org.gvsig.fmap.geom.operation.isCCW.IsCCW; |
15 | 15 |
import org.gvsig.fmap.geom.operation.tojts.ToJTS; |
16 | 16 |
import org.gvsig.fmap.geom.operation.towkb.ToWKB; |
17 |
import org.gvsig.fmap.geom.primitive.Arc2D; |
|
17 | 18 |
import org.gvsig.fmap.geom.primitive.Curve; |
18 | 19 |
import org.gvsig.fmap.geom.primitive.Curve2D; |
19 | 20 |
import org.gvsig.fmap.geom.primitive.Point; |
... | ... | |
44 | 45 |
|
45 | 46 |
logger.debug("--------- testRegister() START ----------"); |
46 | 47 |
|
47 |
GeometryType geomType1 = manager.getGeometryType(Point2D.class);//)registerGeometryType(Point2D.class); |
|
48 |
Point p2d = (Point) factory.createPoint2D(0,0); |
|
49 |
java.awt.geom.Point2D pt1 = new java.awt.geom.Point2D.Float(0,1); |
|
50 |
java.awt.geom.Point2D pt2 = new java.awt.geom.Point2D.Float(1,1); |
|
51 |
java.awt.geom.Point2D pt3 = new java.awt.geom.Point2D.Float(1,0); |
|
52 |
|
|
53 |
Arc2D c2d = (Arc2D) factory.createArc(pt1, pt2, pt3); |
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
GeometryType geomType1 = manager.getGeometryType(Point2D.class); |
|
58 |
GeometryType geomType2 = manager.getGeometryType(Arc2D.class); |
|
59 |
|
|
60 |
logger.debug("geomType2=" + geomType2); |
|
61 |
/* GeometryType geomType1 = manager.getGeometryType(Point2D.class);//)registerGeometryType(Point2D.class); |
|
48 | 62 |
GeometryType geomType2 = manager.getGeometryType(Curve2D.class);//registerGeometryType(Curve2D.class); |
63 |
*/ |
|
49 | 64 |
|
50 | 65 |
int op1 = manager.registerGeometryOperation("toJTS", new ToJTS(),geomType1); |
51 | 66 |
logger.debug("op1=" + op1); |
... | ... | |
148 | 163 |
} |
149 | 164 |
|
150 | 165 |
public void testInvoke() { |
151 |
int size = 1000000;
|
|
166 |
int size = 100000; |
|
152 | 167 |
|
153 | 168 |
// Fill the operation context with required params |
154 | 169 |
GeometryOperationContext ctx = new GeometryOperationContext(); |
Also available in: Unified diff