Package org.opengis.referencing.crs

Examples of org.opengis.referencing.crs.GeocentricCRS


     * Tests the {@link CommonCRS#geocentric()} method.
     */
    @Test
    @DependsOnMethod("testGeographic3D")
    public void testGeocentric() {
        final GeocentricCRS crs = CommonCRS.WGS72.geocentric();
        Validators.validate(crs);
        assertEquals("WGS 72", crs.getName().getCode());
        assertSame   (CommonCRS.WGS72.geographic().getDatum(), crs.getDatum());
        assertNotSame(CommonCRS.WGS84.geographic().getDatum(), crs.getDatum());

        final CoordinateSystem cs = crs.getCoordinateSystem();
        final String name = cs.getName().getCode();
        assertTrue(name, name.startsWith("Earth centred"));
        assertEquals("dimension", 3, cs.getDimension());
        assertEquals(AxisDirection.GEOCENTRIC_X, cs.getAxis(0).getDirection());
        assertEquals(AxisDirection.GEOCENTRIC_Y, cs.getAxis(1).getDirection());
View Full Code Here


  }

  public GeocentricCRS createGeocentricCRS(String code)
      throws FactoryException {
    final String key = toKey(code);
    GeocentricCRS crs = (GeocentricCRS) cache.get(key);
    if (crs == null) {
      try {
        cache.writeLock(key);
        crs = (GeocentricCRS) cache.peek(key);
        if (crs == null) {
View Full Code Here

  }

  public GeocentricCRS createGeocentricCRS(String code)
      throws FactoryException {
    final String key = toKey(code);
    GeocentricCRS crs = (GeocentricCRS) cache.get(key);
    if (crs == null) {
      try {
        cache.writeLock(key);
        crs = (GeocentricCRS) cache.peek(key);
        if (crs == null) {
View Full Code Here

TOP

Related Classes of org.opengis.referencing.crs.GeocentricCRS

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.