Project

General

Profile

« Previous | Next » 

Revision 3098

Added by perry over 17 years ago

Ensure that spatial operations are only triggered when runSpatialOption is set to true.

View differences:

DocumentImpl.java
1341 1341
    	logMetacat.warn("BuildIndex complete for docid " + docid);
1342 1342

  
1343 1343
        // Adds the docid to the spatial data cache 
1344
        SpatialHarvester spatialHarvester = new SpatialHarvester();
1345
        logMetacat.warn(" --------- Attempting to update the spatial cache for docid " + docid );
1346
        spatialHarvester.addToUpdateQue(docid);
1347
        spatialHarvester.destroy();
1344
        if ( MetaCatUtil.getOption("runSpatialOption").equals("true") ) {
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
	}
1348 1350
        
1349 1351
    }
1350 1352

  

Also available in: Unified diff