public class IlvDXFDataSource extends IlvDefaultTilableDataSource
Modifier and Type | Class and Description |
---|---|
static class |
IlvDXFDataSource.DXFGraphicCriterionFilter
This filter retrieves foreground, background and linewidth of DXF elements in order to store them in different layers if their style differs.
|
IlvHierarchicalDataSource.CriterionFilter, IlvHierarchicalDataSource.SingleAttributeFilter
GeometryClassInformation
featureIterator, filename, nameMap, styleMap
renderer, usingGeodeticComputation
Constructor and Description |
---|
IlvDXFDataSource(IlvInputStream stream)
Creates a new
IlvDXFDataSource . |
IlvDXFDataSource(String filename)
Constructs an
IlvDXFDataSource from the specified file name. |
IlvDXFDataSource(URL url)
Constructs an
IlvDXFDataSource 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 IlvFeatureRenderer |
createFeatureRenderer()
Returns a renderer created for this datasource.
|
protected IlvMapRegionOfInterestIterator |
createTiledIterator(IlvFeatureClassInformation featureValue,
IlvGeometryClassFilter geometryClass)
Creates an iterator that iterates through the map features, for a
specific area of interest.
|
protected IlvMapStyle |
getStyle(IlvMapFeature feature)
Returns a map style for the specified feature.
|
protected void |
initFeatureList()
Specific initialization done when data source is created.
|
void |
setDestinationBounds(double minX,
double minY,
double maxX,
double maxY)
Sets the bounds that the DXF Reader should fit graphical objects into.
|
void |
setInternalTransformation(IlvMathTransform internalTransformation)
Sets the internal transformation to use when reading the DXF file.
|
void |
start()
Starts this data source.
|
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
addCriterionFilter, createInsertionLayer, createStyle, getCriterionFilters, getFeatureRenderer, getFeatureRenderer, getKey, getMapLayer, 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 IlvDXFDataSource(IlvInputStream stream) throws IlvReadFileException
IlvDXFDataSource
.stream
- The stream to read from.IlvReadFileException
public IlvDXFDataSource(String filename) throws MalformedURLException
IlvDXFDataSource
from the specified file name.filename
- The name of the DXF file to read.MalformedURLException
- if the path cannot be parsed as a URLpublic IlvDXFDataSource(URL url) throws IOException
IlvDXFDataSource
from the specified URL.url
- The name of the DXF file to read.IOException
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)
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)
public void start() throws Exception
start
in class IlvDefaultTilableDataSource
Exception
IlvDefaultTilableDataSource.start()
protected IlvMapRegionOfInterestIterator createTiledIterator(IlvFeatureClassInformation featureValue, IlvGeometryClassFilter geometryClass)
createTiledIterator
in class IlvDefaultTilableDataSource
featureValue
- Feature value to filter features with.geometryClass
- A subclass of IlvMapGeometry
to prevent the mixing of different
types of features on the same layer.protected IlvFeatureRenderer createFeatureRenderer() throws Exception
IlvHierarchicalDataSource.getFeatureRenderer()
and
IlvHierarchicalDataSource.getFeatureRenderer(IlvMapFeature)
methods calls. The default
implementation creates a renderer through
IlvDataSourceStylingFactory.createDefaultRenderer(boolean, boolean)
createFeatureRenderer
in class IlvHierarchicalDataSource
Exception
IlvHierarchicalDataSource.createFeatureRenderer()
protected IlvMapStyle getStyle(IlvMapFeature feature) throws Exception
IlvHierarchicalDataSource.createStyle(Class, Object)
getStyle
in class IlvHierarchicalDataSource
feature
- The IlvMapFeature
.IlvMapStyle
for the featureException
- if an appropriate style could not be found for the specified
feature.IlvHierarchicalDataSource.getStyle(ilog.views.maps.IlvMapFeature)
protected IlvDefaultFeatureFilter createDefaultFilter()
IlvDefaultFeatureFilter
instance and pass the property used to split features.createDefaultFilter
in class IlvDefaultTilableDataSource
IlvDefaultTilableDataSource.createDefaultFilter()
public void setDestinationBounds(double minX, double minY, double maxX, double maxY)
minX
- The minimum longitude in radians.minY
- The minimum latitude in radians.maxX
- The maximum longitude in radians.maxY
- The maximum latitude in radians.public void setInternalTransformation(IlvMathTransform internalTransformation)
internalTransformation
- Sets the internal transformation when reading the DXF file.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.