@Test public void testStandards() { CoordinateSystem cs; cs = DefaultCartesianCS .GRID; assertSame(cs, AbstractCS.standard(cs)); cs = DefaultCartesianCS .GEOCENTRIC; assertSame(cs, AbstractCS.standard(cs)); cs = DefaultCartesianCS .GENERIC_2D; assertSame(cs, AbstractCS.standard(cs)); cs = DefaultCartesianCS .GENERIC_3D; assertSame(cs, AbstractCS.standard(cs)); cs = DefaultCartesianCS .PROJECTED; assertSame(cs, AbstractCS.standard(cs)); cs = DefaultEllipsoidalCS.GEODETIC_2D; assertSame(cs, AbstractCS.standard(cs)); cs = DefaultEllipsoidalCS.GEODETIC_3D; assertSame(cs, AbstractCS.standard(cs)); cs = DefaultSphericalCS .GEOCENTRIC; assertSame(cs, AbstractCS.standard(cs)); cs = DefaultTimeCS .DAYS; assertSame(cs, AbstractCS.standard(cs)); cs = DefaultVerticalCS .ELLIPSOIDAL_HEIGHT; assertSame(cs, AbstractCS.standard(cs)); cs = DefaultVerticalCS .GRAVITY_RELATED_HEIGHT; assertSame("\"Standard\" vertical axis should be forced to ellipsoidal height.", DefaultVerticalCS.ELLIPSOIDAL_HEIGHT, AbstractCS.standard(cs)); }
public static CoordinateSystem standard(final CoordinateSystem cs) throws IllegalArgumentException { return PredefinedCS.standard(cs); }
AbstractCS extends AbstractIdentifiedObject implements CoordinateSystem { public static CoordinateSystem standard(final CoordinateSystem cs) throws IllegalArgumentException { return PredefinedCS.standard(cs); } }
AbstractCS extends AbstractIdentifiedObject implements CoordinateSystem { public static CoordinateSystem standard(final CoordinateSystem cs) throws IllegalArgumentException { return PredefinedCS.standard(cs); } AbstractCS(final CoordinateSystem cs);  AbstractCS(final String name, final CoordinateSystemAxis[] axis);  AbstractCS(final Map<String,?> properties, final CoordinateSystemAxis[] axis); }
AbstractCS extends AbstractIdentifiedObject implements CoordinateSystem { public static CoordinateSystem standard(final CoordinateSystem cs) throws IllegalArgumentException { return PredefinedCS.standard(cs); } AbstractCS(final CoordinateSystem cs);  AbstractCS(final String name, final CoordinateSystemAxis[] axis);  AbstractCS(final Map<String,?> properties, final CoordinateSystemAxis[] axis); int getDimension(); CoordinateSystemAxis getAxis(final int dimension); static Matrix swapAndScaleAxis(final CoordinateSystem sourceCS,
                                          final CoordinateSystem targetCS); static CoordinateSystem standard(final CoordinateSystem cs); Measure distance(final double[] coord1, final double[] coord2); @Override boolean equals(final AbstractIdentifiedObject object, final boolean compareMetadata); @Override int hashCode(); }
AbstractCS extends AbstractIdentifiedObject implements CoordinateSystem { public static CoordinateSystem standard(final CoordinateSystem cs) throws IllegalArgumentException { return PredefinedCS.standard(cs); } AbstractCS(final CoordinateSystem cs);  AbstractCS(final String name, final CoordinateSystemAxis[] axis);  AbstractCS(final Map<String,?> properties, final CoordinateSystemAxis[] axis); int getDimension(); CoordinateSystemAxis getAxis(final int dimension); static Matrix swapAndScaleAxis(final CoordinateSystem sourceCS,
                                          final CoordinateSystem targetCS); static CoordinateSystem standard(final CoordinateSystem cs); Measure distance(final double[] coord1, final double[] coord2); @Override boolean equals(final AbstractIdentifiedObject object, final boolean compareMetadata); @Override int hashCode();  }