コード例 #1
0
 /** Creates the constants, reusing some intermediate constructs for efficienty. */
 static {
   final Map<String, Object> properties = name(VocabularyKeys.TEMPORAL);
   CoordinateSystemAxis axis = DefaultCoordinateSystemAxis.TIME;
   DAYS = new DefaultTimeCS(properties, axis);
   final InternationalString name = axis.getAlias().iterator().next().toInternationalString();
   axis = new DefaultCoordinateSystemAxis(name, "t", AxisDirection.FUTURE, SI.SECOND);
   SECONDS = new DefaultTimeCS(properties, axis);
   axis = new DefaultCoordinateSystemAxis(name, "t", AxisDirection.FUTURE, SI.MILLI(SI.SECOND));
   MILLISECONDS = new DefaultTimeCS(properties, axis);
 }
コード例 #2
0
 /** Creates a new wrapper for the given axis. */
 private ComparableAxisWrapper(final CoordinateSystemAxis axis) {
   this.axis = axis;
   meridian = DirectionAlongMeridian.parse(axis.getDirection());
 }