deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.io.mapinfoapi
Class MapInfoDataSource

java.lang.Object
  extended by org.deegree.io.mapinfoapi.MapInfoDataSource

public class MapInfoDataSource
extends java.lang.Object

TODO add documentation here

Version:
$Revision: 18191 $, $Date: 2009-06-18 17:26:44 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $

Field Summary
static java.lang.String CLAUSE_BRUSH
           
static java.lang.String CLAUSE_CENTER
           
static java.lang.String CLAUSE_CHARSET
           
static java.lang.String CLAUSE_COLUMNS
           
static java.lang.String CLAUSE_DELIMETER
           
static java.lang.String CLAUSE_INDEX
           
static java.lang.String CLAUSE_PEN
           
static java.lang.String CLAUSE_SMOOTH
           
static java.lang.String CLAUSE_SYMBOL
           
static java.lang.String CLAUSE_UNIQUE
           
static java.lang.String CLAUSE_VERSION
           
static java.lang.String TYPE_ARC
           
static java.lang.String TYPE_ELLIPSE
           
static java.lang.String TYPE_LINE
           
static java.lang.String TYPE_NONE
           
static java.lang.String TYPE_PLINE
           
static java.lang.String TYPE_POINT
           
static java.lang.String TYPE_RECT
           
static java.lang.String TYPE_REGION
           
static java.lang.String TYPE_ROUNDRECT
           
static java.lang.String TYPE_TEXT
           
 
Constructor Summary
MapInfoDataSource(java.net.URL url)
          Creates a new MapInfoDataSource object.
 
Method Summary
 void getFeatures(FeatureCollection collection, Query query)
          Loads features from the datasource into the passed collection, based on the passed filter.
 FeatureType getSchema()
          Retrieves the featureType that features extracted from this datasource will be created with.
protected  java.util.ArrayList readMifMid()
          Reads the MIF and MID files and returns a ArrayList of the Features they contain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_NONE

public static final java.lang.String TYPE_NONE
See Also:
Constant Field Values

TYPE_POINT

public static final java.lang.String TYPE_POINT
See Also:
Constant Field Values

TYPE_LINE

public static final java.lang.String TYPE_LINE
See Also:
Constant Field Values

TYPE_PLINE

public static final java.lang.String TYPE_PLINE
See Also:
Constant Field Values

TYPE_REGION

public static final java.lang.String TYPE_REGION
See Also:
Constant Field Values

TYPE_ARC

public static final java.lang.String TYPE_ARC
See Also:
Constant Field Values

TYPE_TEXT

public static final java.lang.String TYPE_TEXT
See Also:
Constant Field Values

TYPE_RECT

public static final java.lang.String TYPE_RECT
See Also:
Constant Field Values

TYPE_ROUNDRECT

public static final java.lang.String TYPE_ROUNDRECT
See Also:
Constant Field Values

TYPE_ELLIPSE

public static final java.lang.String TYPE_ELLIPSE
See Also:
Constant Field Values

CLAUSE_SYMBOL

public static final java.lang.String CLAUSE_SYMBOL
See Also:
Constant Field Values

CLAUSE_PEN

public static final java.lang.String CLAUSE_PEN
See Also:
Constant Field Values

CLAUSE_SMOOTH

public static final java.lang.String CLAUSE_SMOOTH
See Also:
Constant Field Values

CLAUSE_CENTER

public static final java.lang.String CLAUSE_CENTER
See Also:
Constant Field Values

CLAUSE_BRUSH

public static final java.lang.String CLAUSE_BRUSH
See Also:
Constant Field Values

CLAUSE_VERSION

public static final java.lang.String CLAUSE_VERSION
See Also:
Constant Field Values

CLAUSE_CHARSET

public static final java.lang.String CLAUSE_CHARSET
See Also:
Constant Field Values

CLAUSE_DELIMETER

public static final java.lang.String CLAUSE_DELIMETER
See Also:
Constant Field Values

CLAUSE_UNIQUE

public static final java.lang.String CLAUSE_UNIQUE
See Also:
Constant Field Values

CLAUSE_INDEX

public static final java.lang.String CLAUSE_INDEX
See Also:
Constant Field Values

CLAUSE_COLUMNS

public static final java.lang.String CLAUSE_COLUMNS
See Also:
Constant Field Values
Constructor Detail

MapInfoDataSource

public MapInfoDataSource(java.net.URL url)
                  throws java.net.MalformedURLException
Creates a new MapInfoDataSource object.

Parameters:
url -
Throws:
java.net.MalformedURLException
Method Detail

readMifMid

protected java.util.ArrayList readMifMid()
                                  throws java.lang.Exception
Reads the MIF and MID files and returns a ArrayList of the Features they contain

Returns:
a ArrayList of features?
Throws:
java.lang.Exception - if file doesn't exist or is not readable etc

getFeatures

public void getFeatures(FeatureCollection collection,
                        Query query)
                 throws java.lang.Exception
Loads features from the datasource into the passed collection, based on the passed filter. Note that all data sources must support this method at a minimum.

Parameters:
collection - The collection to put the features into.
query - contains info about request of which features to retrieve.
Throws:
java.lang.Exception - For all data source errors.

getSchema

public FeatureType getSchema()
Retrieves the featureType that features extracted from this datasource will be created with. TODO: implement this method.

Returns:
null

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org