|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.datasource.IlvMapDataSource
ilog.views.maps.datasource.IlvHierarchicalDataSource
ilog.views.maps.datasource.IlvMIDMIFDataSource
public class IlvMIDMIFDataSource
A data source to read MapInfo MID/MIF files.
| Nested Class Summary | |
|---|---|
static class |
IlvMIDMIFDataSource.MIDMIFFilter
A specialized criterion filter that returns for a key identifying the specified map feature's geometry type as well as its style. |
| Nested classes/interfaces inherited from class ilog.views.maps.datasource.IlvHierarchicalDataSource |
|---|
IlvHierarchicalDataSource.CriterionFilter, IlvHierarchicalDataSource.SingleAttributeFilter |
| Field Summary |
|---|
| Fields inherited from class ilog.views.maps.datasource.IlvHierarchicalDataSource |
|---|
featureIterator, filename, nameMap, styleMap |
| Fields inherited from class ilog.views.maps.datasource.IlvMapDataSource |
|---|
renderer, usingGeodeticComputation |
| Constructor Summary | |
|---|---|
IlvMIDMIFDataSource(IlvInputStream stream)
Constructs a IlvMIDMIFDataSource from the specified input stream. |
|
IlvMIDMIFDataSource(String filename)
Constructs a IlvMIDMIFDataSource from the specified file name. |
|
IlvMIDMIFDataSource(URL url)
Constructs a IlvMIDMIFDataSource from the specified URL. |
|
| Method Summary | |
|---|---|
IlvCoordinateSystem |
getCoordinateSystem()
Retrieves the coordinate system of this data source. |
IlvMapReusableFeatureIterator |
getFeatureIterator()
Retrieves the feature iterator used by this data source. |
IlvFeatureRenderer |
getFeatureRenderer(IlvMapFeature feature)
Gets the appropriate feature renderer for the specified IlvMapFeature. |
protected IlvMapStyle |
getStyle(IlvMapFeature feature)
Returns a map style for the specified feature. |
protected boolean |
isSourceDataAvailable()
Checks whether the source data this IlvMapDataSource is
based on is available (file, database connection, url...). |
void |
start()
Starts the data source. |
void |
write(IlvOutputStream stream)
Writes this IlvMIDMIFDataSource to an IlvOutputStream. |
| Methods inherited from class ilog.views.maps.datasource.IlvHierarchicalDataSource |
|---|
addCriterionFilter, addLayer, createFeatureRenderer, createInsertionLayer, getCriterionFilters, getFeatureRenderer, getKey, getMapLayer, isAcceptNullValues, readInfo, removeAllCriterionFilters, removeCriterionFilter, reset, setAcceptNullValues, setupLayer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvMIDMIFDataSource(String filename)
throws MalformedURLException
IlvMIDMIFDataSource from the specified file name.
filename - The name of the MID/MIF file to read.
MalformedURLException - if the path cannot be parsed as a URL
public IlvMIDMIFDataSource(URL url)
throws MalformedURLException
IlvMIDMIFDataSource from the specified URL.
url - The URL referring of the MID/MIF file to read.
MalformedURLException - if the path cannot be parsed as a URL
public IlvMIDMIFDataSource(IlvInputStream stream)
throws IlvReadFileException
IlvMIDMIFDataSource from the specified input stream.
stream - The IlvInputStream to read from.
IlvReadFileException| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvMIDMIFDataSource to an IlvOutputStream.
write in interface IlvPersistentObjectwrite in class IlvHierarchicalDataSourcestream - The stream to write to.
IOExceptionpublic IlvCoordinateSystem getCoordinateSystem()
getCoordinateSystem in class IlvMapDataSource
public IlvFeatureRenderer getFeatureRenderer(IlvMapFeature feature)
throws Exception
IlvMapFeature.
getFeatureRenderer in class IlvHierarchicalDataSourcefeature - the feature to render.
IlvFeatureRenderer.
Exception - if a feature renderer does not exist for the specified IlvMapFeature.
public void start()
throws Exception
start in class IlvHierarchicalDataSourceExceptionIlvHierarchicalDataSource.start()public IlvMapReusableFeatureIterator getFeatureIterator()
getFeatureIterator in class IlvHierarchicalDataSource
protected IlvMapStyle getStyle(IlvMapFeature feature)
throws Exception
getStyle in class IlvHierarchicalDataSourcefeature - the IlvMapFeature.
IlvMapStyle for the feature
Exception - if an appropriate style could not be found for the specified feature.protected boolean isSourceDataAvailable()
IlvMapDataSource is
based on is available (file, database connection, url...). A
.ivl, JViews Maps file keeps references to the original
sources the map was built from. It can happen that these sources are not available when
opening the map, for example, when the map is transferred to another machine. This method
checks that availability. In the case where these sources are not available, all operations
that need them are performed from the data embedded in the map, but there is a risk of loosing
information (when reprojecting for example).
This method should be overridden by subclasses.
isSourceDataAvailable in class IlvMapDataSourcetrue, if the original source data is available.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||