/** * Tests {@link WKTUtilities#toType(Class, Class)}. * * @see ReferencingUtilitiesTest#testToPropertyName() */ @Test public void testToType() { assertNull ( toType(CoordinateSystem.class, CoordinateSystem.class)); assertEquals(WKTKeywords.affine, toType(CoordinateSystem.class, AffineCS .class)); assertEquals(WKTKeywords.Cartesian, toType(CoordinateSystem.class, CartesianCS .class)); assertEquals(WKTKeywords.cylindrical, toType(CoordinateSystem.class, CylindricalCS .class)); assertEquals(WKTKeywords.ellipsoidal, toType(CoordinateSystem.class, EllipsoidalCS .class)); assertEquals(WKTKeywords.linear, toType(CoordinateSystem.class, LinearCS .class)); // assertEquals(WKTKeywords.parametric, toType(CoordinateSystem.class, ParametricCS .class)); assertEquals(WKTKeywords.polar, toType(CoordinateSystem.class, PolarCS .class)); assertEquals(WKTKeywords.spherical, toType(CoordinateSystem.class, SphericalCS .class)); assertEquals(WKTKeywords.temporal, toType(CoordinateSystem.class, TimeCS .class)); assertEquals(WKTKeywords.vertical, toType(CoordinateSystem.class, VerticalCS .class)); }
final String type = WKTUtilities.toType(CoordinateSystem.class, getInterface()); if (type == null) { formatter.setInvalidWKT(this, null);
final String type = WKTUtilities.toType(CoordinateSystem.class, getInterface()); if (type == null) { formatter.setInvalidWKT(this, null);