|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.AbstractDataStore
org.geotools.data.mif.MIFDataStore
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.
| Field Summary | |
static java.lang.String |
HCLAUSE_CHARSET
|
static java.lang.String |
HCLAUSE_COORDSYS
|
static java.lang.String |
HCLAUSE_DELIMITER
|
static java.lang.String |
HCLAUSE_INDEX
|
static java.lang.String |
HCLAUSE_TRANSFORM
|
static java.lang.String |
HCLAUSE_UNIQUE
|
static java.lang.String |
HCLAUSE_VERSION
|
static java.lang.String |
PARAM_FIELDCASE
|
static java.lang.String |
PARAM_GEOMFACTORY
|
static java.lang.String |
PARAM_GEOMNAME
|
static java.lang.String |
PARAM_GEOMTYPE
|
static java.lang.String |
PARAM_SRID
|
| Fields inherited from class org.geotools.data.AbstractDataStore |
isWriteable, listenerManager, LOGGER |
| Constructor Summary | |
MIFDataStore(java.lang.String path,
java.util.HashMap params)
Builds a new MIFDataStore given a mif file or directory path. |
|
| Method Summary | |
void |
createSchema(FeatureType featureType)
Given a FeatureType, creates the corresponding MIFFile object in the current directory . |
protected FeatureReader |
getFeatureReader(java.lang.String typeName)
Gets a FeatureReader from a MIFFile object |
protected FeatureWriter |
getFeatureWriter(java.lang.String typeName)
Gets a FeatureWriter from a MIFFile object |
FeatureType |
getSchema(java.lang.String typeName)
Returns the schema given a type name |
java.lang.String[] |
getTypeNames()
Returns the list of type names (mif files) |
| Methods inherited from class org.geotools.data.AbstractDataStore |
createFeatureWriter, createLockingManager, createMetadata, getBounds, getCount, getFeatureReader, getFeatureReader, getFeatureSource, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getLockingManager, getUnsupportedFilter, getView, updateSchema |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String HCLAUSE_VERSION
public static final java.lang.String HCLAUSE_CHARSET
public static final java.lang.String HCLAUSE_DELIMITER
public static final java.lang.String HCLAUSE_UNIQUE
public static final java.lang.String HCLAUSE_INDEX
public static final java.lang.String HCLAUSE_COORDSYS
public static final java.lang.String HCLAUSE_TRANSFORM
public static final java.lang.String PARAM_FIELDCASE
public static final java.lang.String PARAM_GEOMFACTORY
public static final java.lang.String PARAM_GEOMNAME
public static final java.lang.String PARAM_GEOMTYPE
public static final java.lang.String PARAM_SRID
| Constructor Detail |
public MIFDataStore(java.lang.String path,
java.util.HashMap params)
throws java.io.IOException
Builds a new MIFDataStore given a mif file or directory path.
Each feature type is represented by a MIFFile object
path - location (directory) of the mif files to read, or full path
of a single mif file. If a directory is given, the headers of
all the mif files in it are read.params - The MIFFile parameters map, see MIFFile for a full
description.
java.io.IOException - Path does not exists, or error accessing filesMIFFile.MIFFile(String, Map)| Method Detail |
public void createSchema(FeatureType featureType)
throws java.io.IOException
Given a FeatureType, creates the corresponding MIFFile object in the current directory
.
createSchema in interface DataStorecreateSchema in class AbstractDataStorefeatureType - The FeatureType
java.io.IOException - if init path is not a directory or a MIFFile object
cannot be created
public java.lang.String[] getTypeNames()
throws java.io.IOException
Returns the list of type names (mif files)
getTypeNames in interface DataStoregetTypeNames in class AbstractDataStorejava.io.IOException - Couldn't scan path for files
public FeatureType getSchema(java.lang.String typeName)
throws java.io.IOException
Returns the schema given a type name
getSchema in interface DataStoregetSchema in class AbstractDataStoretypeName -
java.io.IOException
protected FeatureReader getFeatureReader(java.lang.String typeName)
throws java.io.IOException
getFeatureReader in class AbstractDataStoretypeName - name of the FeatureType
java.io.IOException
protected FeatureWriter getFeatureWriter(java.lang.String typeName)
throws java.io.IOException
getFeatureWriter in class AbstractDataStoretypeName -
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||