public class IlvVMAPDataSource extends IlvTilableDataSource
IlvVMAPDataSource
is a data source used to read a VMAP
database.Modifier and Type | Class and Description |
---|---|
static class |
IlvVMAPDataSource.FACCFilter
A specialized criterion filter that returns the value of the FACC attribute
of a map feature.
|
IlvHierarchicalDataSource.CriterionFilter, IlvHierarchicalDataSource.SingleAttributeFilter
featureIterator, filename, nameMap, styleMap
renderer, usingGeodeticComputation
Constructor and Description |
---|
IlvVMAPDataSource(IlvInputStream stream)
Constructs an
IlvVMAPDataSource instance from the specified
input stream. |
IlvVMAPDataSource(String filename)
Constructs an
IlvVMAPDataSource instance from the specified
filename (the root folder of the VMAP database). |
Modifier and Type | Method and Description |
---|---|
protected IlvMapRegionOfInterestIterator |
createTiledIterator(IlvMapLayer layer)
Creates an iterator that will iterate through the map features
for a specific area of interest.
|
protected void |
createTiledLayers()
Creates all the possible map layers that may be needed when load on
demand occurs in the data source insertion layer.
|
IlvMapReusableFeatureIterator |
getFeatureIterator()
Retrieves the feature iterator used by this data source.
|
protected boolean |
isSourceDataAvailable()
Checks whether the source data this
IlvMapDataSource is
based on is available (file, database connection, url...). |
void |
setAreaOfinterest(double lonMin,
double latMin,
double lonMax,
double latMax)
Sets the area outside of which data will not be fetched.
|
void |
setFaccCodeList(String[] faccCodes)
Sets the list of accepted FACC codes.
|
void |
write(IlvOutputStream stream)
Writes this
IlvVMAPDataSource instance to an
IlvOutputStream . |
createGenericTiles, getColumnCount, getLatMax, getLatMin, getLonMax, getLonMin, getRowCount, isMultiThreaded, reset, setMultiThreaded, setTilingParameters, setupTiledLoaders, start, useTiling
addCriterionFilter, addLayer, createFeatureRenderer, createInsertionLayer, createStyle, getCriterionFilters, getFeatureRenderer, getFeatureRenderer, getKey, getMapLayer, getStyle, isAcceptNullValues, readInfo, removeAllCriterionFilters, removeCriterionFilter, setAcceptNullValues, setupLayer
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 IlvVMAPDataSource(String filename) throws MalformedURLException
IlvVMAPDataSource
instance from the specified
filename (the root folder of the VMAP database).filename
- The name of the tiger file to read.MalformedURLException
- if the path cannot be parsed as an URL.public IlvVMAPDataSource(IlvInputStream stream) throws IlvReadFileException
IlvVMAPDataSource
instance from the specified
input stream.stream
- The IlvInputStream
to read from.IlvReadFileException
- if there is a problem reading from
stream
.public void setAreaOfinterest(double lonMin, double latMin, double lonMax, double latMax)
setAreaOfinterest
in class IlvTilableDataSource
lonMin
- The minimum longitude of the area of interest.latMin
- The minimum latitude of the area of interest.lonMax
- The maximum longitude of the area of interest.latMax
- The maximum latitude of the area of interest.public IlvMapReusableFeatureIterator getFeatureIterator()
getFeatureIterator
in class IlvHierarchicalDataSource
protected void createTiledLayers()
createTiledLayers
in class IlvTilableDataSource
IlvTilableDataSource.createTiledLayers()
public void setFaccCodeList(String[] faccCodes)
faccCodes
- An array of accepted codes.public void write(IlvOutputStream stream) throws IOException
IlvVMAPDataSource
instance to an
IlvOutputStream
.write
in interface IlvPersistentObject
write
in class IlvTilableDataSource
stream
- The stream to write to.IOException
- if there is a problem writing to stream
.protected IlvMapRegionOfInterestIterator createTiledIterator(IlvMapLayer layer) throws IOException
createTiledIterator
in class IlvTilableDataSource
layer
- The layer to create objects for.IOException
IlvTilableDataSource.createTiledIterator(ilog.views.maps.beans.IlvMapLayer)
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 IlvMapDataSource
true
, if the original source data is available.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.