Project

General

Profile

« Previous | Next » 

Revision 2948

Added by sgarg over 18 years ago

iModified code -- the booleans werent really getting tested :(

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
208 208
            }
209 209

  
210 210

  
211
	if (MetacatSpatialConstants.runSpatialOption = true ) {	    
211
	if (MetacatSpatialConstants.runSpatialOption == true ) {	    
212 212
        
213 213
	    // create a spatial index of the database
214 214
            MetacatSpatialConstants.setServerContext(MetaCatUtil.getOption("server"));
......
790 790
      Logger logMetacat = Logger.getLogger(MetaCatServlet.class);
791 791

  
792 792

  
793
	if (MetacatSpatialConstants.runSpatialOption = false ) {
793
	if (MetacatSpatialConstants.runSpatialOption == false ) {
794 794
        	response.setContentType("text/html");
795 795
        	out.println("<html> Metacat Spatial Option is turned off <html>");
796 796
        	out.close();
src/edu/ucsb/nceas/metacat/DBQuery.java
394 394
      
395 395
      MetacatSpatialDataset metacatSpatialData = null; 
396 396
      
397
if (MetacatSpatialConstants.runSpatialOption = true  ) {
397
if (MetacatSpatialConstants.runSpatialOption == true  ) {
398 398
        metacatSpatialData = new MetacatSpatialDataset(); 
399 399
}  
400 400
      int offset = 1;
......
457 457
      {
458 458
        docid = rs.getString(1).trim();
459 459
        //if ( METACAT_SPATIAL ) {
460
	if (MetacatSpatialConstants.runSpatialOption = true  ) {
460
	if (MetacatSpatialConstants.runSpatialOption == true  ) {
461 461
          System.out.println("###################################################");
462 462
          System.out.println("###################################################");
463 463
          System.out.println("###################################################");

Also available in: Unified diff