Script
Class MySQL2Txt

java.lang.Object
  extended by Script.MySQL2Txt

public class MySQL2Txt
extends java.lang.Object

Script for extracting feature data from a MySQL DB on a text file (used for creating a feature index).


Field Summary
protected  java.lang.String filename
          The path of the text file
 
Constructor Summary
MySQL2Txt(java.lang.String path)
          Basic constructor.
 
Method Summary
 boolean createImageIndexFile(FeatureManager.WindsurfFeatureManagerMySQL fm)
          Extract image features from a MySQL DB to a text file.
 boolean createRegionIndexFile(FeatureManager.WindsurfFeatureManagerMySQL fm)
          Extract region features from a MySQL DB to a text file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filename

protected java.lang.String filename
The path of the text file

Constructor Detail

MySQL2Txt

public MySQL2Txt(java.lang.String path)
Basic constructor.

Parameters:
path - Path of the text file where features will be saved.
Method Detail

createImageIndexFile

public boolean createImageIndexFile(FeatureManager.WindsurfFeatureManagerMySQL fm)
Extract image features from a MySQL DB to a text file.

Parameters:
fm - The Feature Manager where features are to be extracted.
Returns:
true if the text file was successfully created, false otherwise.

createRegionIndexFile

public boolean createRegionIndexFile(FeatureManager.WindsurfFeatureManagerMySQL fm)
Extract region features from a MySQL DB to a text file.

Parameters:
fm - The Feature Manager where features are to be extracted.
Returns:
true if the text file was successfully created, false otherwise.