"associated time, cannot add EO metadata to it: "+ ci.prefixedName());
return;
}
GridCoverage2DReader reader = (GridCoverage2DReader) ci.getGridCoverageReader(null, null);
String coverageId = NCNameResourceCodec.encode(ci);
WCSDimensionsHelper dimensionHelper = new WCSDimensionsHelper(time, reader, coverageId);
tx.start("wcseo:EOMetadata");
tx.start("eop:EarthObservation", atts("gml:id", coverageId + "_metadata"));
// phenomenon time
tx.start("om:phenomenonTime");
tx.start("gml:TimePeriod", atts("gml:id", coverageId + "_tp"));
element(tx, "gml:beginPosition", dimensionHelper.getBeginTime(), null);
element(tx, "gml:endPosition", dimensionHelper.getEndTime(), null);
tx.end("gml:TimePeriod");
tx.end("om:phenomenonTime");
// resultTime
tx.start("om:resultTime");
tx.start("gml:TimeInstant", atts("gml:id", coverageId + "_rt"));
element(tx, "gml:timePosition", dimensionHelper.getEndTime(), null);
tx.end("gml:TimeInstant");
tx.end("om:resultTime");
// some empty elements...
element(tx, "om:procedure", null, null);