use of org.opengis.temporal.TemporalPosition in project geotoolkit by Geomatys.
the class DefaultTemporalFactory method createInstant.
/**
* {@inheritDoc }
*/
@Override
public Instant createInstant(final Date instant) {
final Map<String, Object> prop = new HashMap<>();
prop.put(IdentifiedObject.NAME_KEY, "instant" + instantCount++);
if (instant != null) {
return new DefaultInstant(prop, instant);
} else {
final TemporalPosition position = new DefaultTemporalPosition(IndeterminateValue.UNKNOWN);
return new DefaultInstant(prop, position);
}
}
Aggregations