Project

General

Profile

« Previous | Next » 

Revision 3034

Added by perry over 17 years ago

initial import of changes to metacat source and config files to support spatial option

View differences:

DocumentImpl.java
51 51
import java.util.Vector;
52 52

  
53 53
import edu.ucsb.nceas.dbadapter.AbstractDatabase;
54
import edu.ucsb.nceas.metacat.spatial.SpatialHarvester;
54 55

  
55 56
import org.apache.log4j.Logger;
56 57
import org.xml.sax.ContentHandler;
......
124 125
    protected long rootnodeid;
125 126
    private ElementNode rootNode = null;
126 127
    private TreeSet nodeRecordList = null;
128

  
127 129
    
128 130
    private static Logger logMetacat = Logger.getLogger(DocumentImpl.class);
129 131

  
......
1338 1340
        }
1339 1341
        
1340 1342
    	logMetacat.warn("BuildIndex complete for docid " + docid);
1343

  
1344
        // Adds the docid to the spatial data cache 
1345
        SpatialHarvester spatialHarvester = new SpatialHarvester();
1346
        logMetacat.warn(" --------- Attempting to update the spatial cache for docid " + docid );
1347
        spatialHarvester.addToUpdateQue(docid);
1348
        spatialHarvester.destroy();
1349
        
1341 1350
    }
1342 1351

  
1343 1352
    /**
......
2880 2889
       // add force delete replcation document here.
2881 2890
       ForceReplicationHandler frh = new ForceReplicationHandler(
2882 2891
                        accnum, ForceReplicationHandler.DELETE, isXML, notifyServer);
2892

  
2893
       // Deletes the docid from the spatial data cache 
2894
       /* MPTODO : getting "non-static variable cannot be reffered to from a static context" error
2895
       SpatialHarvester spatialHarvester = new SpatialHarvester();
2896
       logMetacat.warn(" --------- Attempting to delete the spatial cache for docid " + docid );
2897
       spatialHarvester.addToDeleteQue(docid);
2898
       spatialHarvester.destroy();
2899
       */
2900

  
2883 2901
    }
2884 2902

  
2885 2903
    private static String getDocTypeFromDB(DBConnection conn, String docidWithoutRev)

Also available in: Unified diff