public class IlvKMLDataSource extends IlvDefaultTilableDataSource
IlvHierarchicalDataSource.CriterionFilter, IlvHierarchicalDataSource.SingleAttributeFilter
GeometryClassInformation
featureIterator, filename, nameMap, styleMap
renderer, usingGeodeticComputation
Constructor and Description |
---|
IlvKMLDataSource(IlvInputStream stream)
Creates a new
IlvKMLDataSource . |
IlvKMLDataSource(String filename)
Constructs an
IlvKMLDataSource from the specified file name. |
IlvKMLDataSource(URL url)
Constructs a
IlvKMLDataSource from the specified url. |
Modifier and Type | Method and Description |
---|---|
protected IlvDefaultFeatureFilter |
createDefaultFilter()
Creates, at construction time, the filter that will be used to separate
features into layers.
|
protected IlvMapReusableFeatureIterator |
createFeatureIterator(String fileName)
Method used in
IlvDefaultTilableDataSource.IlvDefaultTilableDataSource(String) constructor to build the data source reader. |
protected IlvMapReusableFeatureIterator |
createFeatureIterator(URL url)
Method used in the
IlvDefaultTilableDataSource.IlvDefaultTilableDataSource(URL) constructor to build the data source reader. |
protected IlvMapRegionOfInterestIterator |
createTiledIterator(IlvFeatureClassInformation featureValue,
IlvGeometryClassFilter geometryClass)
Creates an iterator that iterates through the map features, for a specific area of interest.
|
protected void |
initFeatureList()
Specific initialization done when data source is created.
|
void |
write(IlvOutputStream stream)
Writes this
IlvVMAPDataSource to an
IlvOutputStream . |
acceptsCode, addLayer, createGenericTiles, createTiledLayers, getColumnCount, getFeatureFilterPropertyName, getFeatureIterator, getFeatureName, getGeometryClassFilters, getGeometryClassInformation, getLatMax, getLatMin, getLayerOrder, getLonMax, getLonMin, getMonitoringData, getRowCount, getURL, isMultiThreaded, isSourceDataAvailable, isUsingTiling, makeLayerName, readInfo, reset, setAcceptedCodeList, setAreaOfinterest, setLayerOrder, setMonitoringData, setMultiThreaded, setTilingParameters, setupLayer, setupTiledLoaders, setURL, start
addCriterionFilter, createFeatureRenderer, createInsertionLayer, createStyle, getCriterionFilters, getFeatureRenderer, getFeatureRenderer, getKey, getMapLayer, getStyle, isAcceptNullValues, removeAllCriterionFilters, removeCriterionFilter, setAcceptNullValues
addDataSourceListener, callListeners, getBackupDataSources, getCoordinateSystem, getDescription, getInsertionLayer, getManager, getName, getNode, getValidExtentions, hasInsertionLayer, initBackupDataSource, initInsertionLayer, isAttachingAttributes, isGrapherMode, isSaveBackupDataSources, isUsingBackupDataSource, isUsingGeodeticComputation, mapIntersects, removeDataSourceListener, setAttachingAttributes, setCoordinateSystem, setDescription, setFeatureRenderer, setForceUsingBackupDataSource, setGrapherMode, setInsertionLayer, setManager, setName, setSaveBackupDataSources, setValidExtentions, toString
public IlvKMLDataSource(IlvInputStream stream) throws IlvReadFileException
IlvKMLDataSource
.stream
- The stream to read from.IlvReadFileException
public IlvKMLDataSource(String filename) throws MalformedURLException
IlvKMLDataSource
from the specified file name.filename
- The name of the KML file to read.MalformedURLException
- if the path cannot be parsed as a URL.public IlvKMLDataSource(URL url) throws IOException
IlvKMLDataSource
from the specified url.url
- The name of the KML file to read.IOException
protected void initFeatureList()
initFeatureList
in class IlvDefaultTilableDataSource
IlvDefaultTilableDataSource.initFeatureList()
protected IlvMapReusableFeatureIterator createFeatureIterator(String fileName) throws MalformedURLException
IlvDefaultTilableDataSource.IlvDefaultTilableDataSource(String)
constructor to build the data source reader.
For example:protected void createFeatureIterator(String fileName) { return new IlvS57Reader(fileName); }
createFeatureIterator
in class IlvDefaultTilableDataSource
fileName
- The file parameter.MalformedURLException
IlvDefaultTilableDataSource.createFeatureIterator(java.lang.String)
protected IlvMapReusableFeatureIterator createFeatureIterator(URL url)
IlvDefaultTilableDataSource.IlvDefaultTilableDataSource(URL)
constructor to build the data source reader.
For example:protected void createFeatureIterator(URL urlName) { return new IlvS57Reader(urlName); }
createFeatureIterator
in class IlvDefaultTilableDataSource
url
- The file parameter.IlvDefaultTilableDataSource.createFeatureIterator(java.net.URL)
protected IlvDefaultFeatureFilter createDefaultFilter()
IlvDefaultFeatureFilter
instance and pass the property used to split features.createDefaultFilter
in class IlvDefaultTilableDataSource
IlvDefaultTilableDataSource.createDefaultFilter()
protected IlvMapRegionOfInterestIterator createTiledIterator(IlvFeatureClassInformation featureValue, IlvGeometryClassFilter geometryClass)
createTiledIterator
in class IlvDefaultTilableDataSource
featureValue
- A feature value to filter features with.geometryClass
- A subclass of IlvMapGeometry
to prevent the mixing of different types of features in the same layer.public void write(IlvOutputStream stream) throws IOException
IlvVMAPDataSource
to an
IlvOutputStream
.write
in interface IlvPersistentObject
write
in class IlvDefaultTilableDataSource
stream
- The stream to write to.IOException
- thrown when an exception occurs during
the write operation for this object.IlvMapDataSource.write(ilog.views.io.IlvOutputStream)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.