public void dumpIndex(boolean showBounds) throws IOException {
  byte ixRecord[]=new byte[SPATIAL_INDEX_RECORD_LENGTH];
  int recNum=0;
  if (shpFileName == null) {
    return;
  }
  BinaryBufferedFile ssx=new BinaryBufferedFile(ssx(shpFileName));
  ssx.seek(100);
  while (true) {
    int result=ssx.read(ixRecord,0,SPATIAL_INDEX_RECORD_LENGTH);
    if (result <= 0) {
      logger.info("Processed " + recNum + " records");
      break;
    }
 else {
      recNum++;
      int offset=readBEInt(ixRecord,0);
      int length=readBEInt(ixRecord,4);
      logger.info("Record " + recNum + ": "+ offset+ ", "+ length+ (showBounds ? ("; " + readLEDouble(ixRecord,8) + ", "+ readLEDouble(ixRecord,16)+ ", "+ readLEDouble(ixRecord,24)+ ", "+ readLEDouble(ixRecord,32)) : ""));
    }
  }
  ssx.close();
}

public void dumpIndex ( boolean showBounds ) throws IOException { byte ixRecord [ ] = new byte [ SPATIAL_INDEX_RECORD_LENGTH ] ; int recNum = 0 ; if ( shpFileName == null ) { return ; } BinaryBufferedFile ssx = new BinaryBufferedFile ( ssx ( shpFileName ) ) ; ssx . seek ( 100 ) ; while ( true ) { int result = ssx . read ( ixRecord , 0 , SPATIAL_INDEX_RECORD_LENGTH ) ; if ( result <= 0 ) { logger . info ( "Processed " + recNum + " records" ) ; break ; } else { recNum ++ ; int offset = readBEInt ( ixRecord , 0 ) ; int length = readBEInt ( ixRecord , 4 ) ; logger . info ( "Record " + recNum + ": " + offset + ", " + length + ( showBounds ? ( "; " + readLEDouble ( ixRecord , 8 ) + ", " + readLEDouble ( ixRecord , 16 ) + ", " + readLEDouble ( ixRecord , 24 ) + ", " + readLEDouble ( ixRecord , 32 ) ) : "" ) ) ; } } ssx . close ( ) ; }
displays the contents of this index .
