Revision 26866 branches/v2_0_0_prep/libraries/libFMap_geometries/src-test/org/gvsig/fmap/geom/aggregate/MultiPointTest.java
MultiPointTest.java | ||
---|---|---|
33 | 33 |
import org.gvsig.fmap.geom.GeometryLibrary; |
34 | 34 |
import org.gvsig.fmap.geom.GeometryLocator; |
35 | 35 |
import org.gvsig.fmap.geom.GeometryManager; |
36 |
import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
|
37 |
import org.gvsig.fmap.geom.Geometry.TYPES; |
|
36 | 38 |
import org.gvsig.fmap.geom.primitive.Point; |
37 | 39 |
import org.gvsig.fmap.geom.primitive.Point2DZ; |
38 | 40 |
import org.slf4j.Logger; |
... | ... | |
61 | 63 |
} |
62 | 64 |
|
63 | 65 |
public void testCreateMultiPoint2D() throws InstantiationException, IllegalAccessException{ |
64 |
Point point1 = (Point)manager.create(Point2DZ.CODE);
|
|
66 |
Point point1 = (Point)manager.create(TYPES.POINT, SUBTYPES.GEOM2DZ);
|
|
65 | 67 |
point1.setCoordinateAt(0, 1.0); |
66 | 68 |
point1.setCoordinateAt(1, 2.0); |
67 | 69 |
point1.setCoordinateAt(2, 3.0); |
68 | 70 |
|
69 |
Point point2 = (Point)manager.create(Point2DZ.CODE);
|
|
71 |
Point point2 = (Point)manager.create(TYPES.POINT, SUBTYPES.GEOM2DZ);
|
|
70 | 72 |
point2.setCoordinateAt(0, 4.0); |
71 | 73 |
point2.setCoordinateAt(1, 5.0); |
72 | 74 |
point2.setCoordinateAt(2, 6.0); |
73 | 75 |
|
74 |
MultiPoint multiPoint = (MultiPoint)manager.create(MultiPoint2D.CODE);
|
|
76 |
MultiPoint multiPoint = (MultiPoint)manager.create(TYPES.MULTIPOINT, SUBTYPES.GEOM2D);
|
|
75 | 77 |
multiPoint.addPoint(point1); |
76 | 78 |
multiPoint.addPoint(point2); |
77 | 79 |
|
Also available in: Unified diff