| java.lang.Object org.geotools.data.AbstractDataStore org.geotools.data.mif.MIFDataStore
MIFDataStore | public class MIFDataStore extends AbstractDataStore (Code) | |
MIFDataStore gives read and write access to MapInfo MIF files. It can be
instantiated either on a single .mif file, or on a directory (thus exposing
all the mif files within).
MIFDataStore is a replacement for the MapInfoDataStore, which was based on
the legacy MapInfoDataSource.
author: Luca S. Percich, AMA-MI version: $Id: MIFDataStore.java 22266 2006-10-19 11:30:55Z acuster $ |
Constructor Summary | |
public | MIFDataStore(String path, HashMap params)
Builds a new MIFDataStore given a mif file or directory path.
Each feature type is represented by a MIFFile object
Parameters: path - location (directory) of the mif files to read, or full pathof a single mif file. |
HCLAUSE_CHARSET | final public static String HCLAUSE_CHARSET(Code) | | |
HCLAUSE_COORDSYS | final public static String HCLAUSE_COORDSYS(Code) | | |
HCLAUSE_DELIMITER | final public static String HCLAUSE_DELIMITER(Code) | | |
HCLAUSE_TRANSFORM | final public static String HCLAUSE_TRANSFORM(Code) | | |
HCLAUSE_UNIQUE | final public static String HCLAUSE_UNIQUE(Code) | | |
HCLAUSE_VERSION | final public static String HCLAUSE_VERSION(Code) | | |
PARAM_FIELDCASE | final public static String PARAM_FIELDCASE(Code) | | |
PARAM_GEOMFACTORY | final public static String PARAM_GEOMFACTORY(Code) | | |
PARAM_GEOMNAME | final public static String PARAM_GEOMNAME(Code) | | |
PARAM_GEOMTYPE | final public static String PARAM_GEOMTYPE(Code) | | |
MIFDataStore | public MIFDataStore(String path, HashMap params) throws IOException(Code) | |
Builds a new MIFDataStore given a mif file or directory path.
Each feature type is represented by a MIFFile object
Parameters: path - location (directory) of the mif files to read, or full pathof a single mif file. If a directory is given, the headers ofall the mif files in it are read. Parameters: params - The MIFFile parameters map, see MIFFile for a fulldescription. throws: IOException - Path does not exists, or error accessing files See Also: MIFFile.MIFFile(StringMap) |
createSchema | public void createSchema(FeatureType featureType) throws IOException(Code) | |
Given a FeatureType, creates the corresponding MIFFile object in the
current directory
.
Parameters: featureType - The FeatureType throws: IOException - if init path is not a directory or a MIFFile objectcannot be created |
getTypeNames | public String[] getTypeNames() throws IOException(Code) | |
Returns the list of type names (mif files)
The list of type names throws: IOException - Couldn't scan path for files |
Methods inherited from org.geotools.data.AbstractDataStore | protected FeatureWriter createFeatureWriter(String typeName, Transaction transaction) throws IOException(Code)(Java Doc) protected InProcessLockingManager createLockingManager()(Code)(Java Doc) protected Map createMetadata(String typeName)(Code)(Java Doc) public void createSchema(FeatureType featureType) throws IOException(Code)(Java Doc) public void dispose()(Code)(Java Doc) protected Envelope getBounds(Query query) throws IOException(Code)(Java Doc) protected int getCount(Query query) throws IOException(Code)(Java Doc) abstract protected FeatureReader getFeatureReader(String typeName) throws IOException(Code)(Java Doc) public FeatureReader getFeatureReader(Query query, Transaction transaction) throws IOException(Code)(Java Doc) protected FeatureReader getFeatureReader(String typeName, Query query) throws IOException(Code)(Java Doc) public FeatureSource getFeatureSource(String typeName) throws IOException(Code)(Java Doc) protected FeatureWriter getFeatureWriter(String typeName) throws IOException(Code)(Java Doc) public FeatureWriter getFeatureWriter(String typeName, Filter filter, Transaction transaction) throws IOException(Code)(Java Doc) public FeatureWriter getFeatureWriter(String typeName, Transaction transaction) throws IOException(Code)(Java Doc) public FeatureWriter getFeatureWriterAppend(String typeName, Transaction transaction) throws IOException(Code)(Java Doc) public LockingManager getLockingManager()(Code)(Java Doc) abstract public FeatureType getSchema(String typeName) throws IOException(Code)(Java Doc) protected Set getSupportedHints()(Code)(Java Doc) abstract public String[] getTypeNames() throws IOException(Code)(Java Doc) protected Filter getUnsupportedFilter(String typeName, Filter filter)(Code)(Java Doc) public FeatureSource getView(Query query) throws IOException, SchemaException(Code)(Java Doc) public void updateSchema(String typeName, FeatureType featureType)(Code)(Java Doc)
|
|
|