oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattm...@apache.org
Subject svn commit: r1052455 - in /oodt/trunk: CHANGES.txt opendapps/src/main/java/org/apache/oodt/opendapps/DatasetCrawler.java
Date Fri, 24 Dec 2010 06:36:47 GMT
Author: mattmann
Date: Fri Dec 24 06:36:47 2010
New Revision: 1052455

URL: http://svn.apache.org/viewvc?rev=1052455&view=rev
Log:
- fix for OODT-105 Fix GeospatialCoverage in OPeNDAP ps

Modified:
    oodt/trunk/CHANGES.txt
    oodt/trunk/opendapps/src/main/java/org/apache/oodt/opendapps/DatasetCrawler.java

Modified: oodt/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/oodt/trunk/CHANGES.txt?rev=1052455&r1=1052454&r2=1052455&view=diff
==============================================================================
--- oodt/trunk/CHANGES.txt (original)
+++ oodt/trunk/CHANGES.txt Fri Dec 24 06:36:47 2010
@@ -3,6 +3,9 @@ Apache OODT Change Log
 
 Release 0.2 (Current Development)
 --------------------------------------------
+
+* OODT-105 Fix GeospatialCoverage in OPeNDAP ps (mattmann)
+
 * OODT-104 Allow const section to plumb information into profile elements (mattmann)
 
 * OODT-90 (cas-crawler patch) CAS-PGE returns success even if product file(s) failed to ingest
(bfoster)

Modified: oodt/trunk/opendapps/src/main/java/org/apache/oodt/opendapps/DatasetCrawler.java
URL: http://svn.apache.org/viewvc/oodt/trunk/opendapps/src/main/java/org/apache/oodt/opendapps/DatasetCrawler.java?rev=1052455&r1=1052454&r2=1052455&view=diff
==============================================================================
--- oodt/trunk/opendapps/src/main/java/org/apache/oodt/opendapps/DatasetCrawler.java (original)
+++ oodt/trunk/opendapps/src/main/java/org/apache/oodt/opendapps/DatasetCrawler.java Fri Dec
24 06:36:47 2010
@@ -32,7 +32,6 @@ import java.util.logging.Logger;
 
 //APACHE imports
 import org.apache.oodt.cas.metadata.Metadata;
-import org.apache.oodt.commons.util.DateConvert;
 
 //OPeNDAP/THREDDS imports
 import thredds.catalog.InvAccess;
@@ -222,8 +221,13 @@ public class DatasetCrawler implements C
           .valueOf(dataset.getGeospatialCoverage().getLatResolution()));
       this.addIfNotNull(met, "GeospatialCoverageLongitudeResolution", String
           .valueOf(dataset.getGeospatialCoverage().getLonResolution()));
-      this.addIfNotNull(met, "GeospatialCoverage", dataset
-          .getGeospatialCoverage().toString());
+      
+      if(dataset.getGeospatialCoverage().getNames() != null){
+        for(Vocab gName: dataset.getGeospatialCoverage().getNames()){
+           this.addIfNotNull(met, "GeospatialCoverage", gName.getText());
+        }
+      }
+      
     }
 
     this.addIfNotNull(met, "History", dataset.getHistory());



Mime
View raw message