Package org.opengis.referencing.crs

Examples of org.opengis.referencing.crs.TemporalCRS


                case JULIAN:           epoch = "4713-01-01 12:00:00"; days = 0;         break;
                default: throw new AssertionError(e);
            }
            final String        name   = e.name();
            final TemporalDatum datum  = e.datum();
            final TemporalCRS   crs    = e.crs();
            final Date          origin = datum.getOrigin();
            Validators.validate(crs);
            assertSame  (name, datum,          e.datum()); // Datum before CRS creation.
            assertSame  (name, crs.getDatum(), e.datum()); // Datum after CRS creation.
            assertEquals(name, epoch, format(origin));
            assertEquals(name, days, origin.getTime() / DAY_LENGTH - julianEpoch, 0);
        }
    }
View Full Code Here


            return (TemporalCRS) crs;
        }
        if (crs instanceof CompoundCRS) {
            final CompoundCRS cp = (CompoundCRS) crs;
            for (final CoordinateReferenceSystem c : cp.getComponents()) {
                final TemporalCRS candidate = getTemporalComponent(c);
                if (candidate != null) {
                    return candidate;
                }
            }
        }
View Full Code Here

        }

        if (name.getLocalPart().equals("timePosition")) {
            CoordinateReferenceSystem crs = envelope.getCoordinateReferenceSystem();

            TemporalCRS temporalCRS = null;

            if (crs instanceof CompoundCRS) {
                List CRSs = ((DefaultCompoundCRS) crs).getCoordinateReferenceSystems();

                for (Object item : CRSs) {
View Full Code Here

        return verticalCRS;
    }

    public static TemporalCRS buildTemporalCrs( CoordinateAxis timeAxis ) {
        String t_datumName = new Identification("ISO8601", null, null, null).getName();
        TemporalCRS temporalCRS = null;
        try {
            if (timeAxis != null) {
                AxisType type = timeAxis.getAxisType();
                String units = timeAxis.getUnitsString();
View Full Code Here

        }

        if (name.getLocalPart().equals("timePosition")) {
            CoordinateReferenceSystem crs = envelope.getCoordinateReferenceSystem();

            TemporalCRS temporalCRS = null;

            if (crs instanceof CompoundCRS) {
                List CRSs = ((DefaultCompoundCRS) crs).getCoordinateReferenceSystems();

                for (Object item : CRSs) {
View Full Code Here

            CoordinateAxis timeAxis = cvs.get(0);
            assertNotNull(timeAxis);
            assertEquals(AxisType.Time, timeAxis.getAxisType());

            final TemporalCRS temporalCrs = NetCDFCRSUtilities.buildTemporalCrs(timeAxis);
            assertNotNull(temporalCrs);
            assertTrue(temporalCrs instanceof DefaultTemporalCRS);

            CoordinateAxis verticalAxis = cvs.get(1);
            assertNotNull(verticalAxis);
View Full Code Here

            return (TemporalCRS) crs;
        }
        if (crs instanceof CompoundCRS) {
            final CompoundCRS cp = (CompoundCRS) crs;
            for (final CoordinateReferenceSystem c : cp.getCoordinateReferenceSystems()) {
                final TemporalCRS candidate = getTemporalCRS(c);
                if (candidate != null) {
                    return candidate;
                }
            }
        }
View Full Code Here

    return crs;
  }

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

    return crs;
  }

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

TOP

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

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.