public class IlvTiledShapeDataSource extends IlvShapeDataSource
Modifier and Type | Class and Description |
---|---|
static class |
IlvTiledShapeDataSource.FilteredShapeFileTileLoader
Filtered tile loader.
|
renderer, usingGeodeticComputation
Constructor and Description |
---|
IlvTiledShapeDataSource(IlvInputStream stream)
Reads an
IlvTiledShapeDataSource from an IlvInputStream . |
IlvTiledShapeDataSource(String filename)
Constructs an
IlvTiledShapeDataSource from a shape file name. |
IlvTiledShapeDataSource(String filename,
boolean attachAttributes)
Constructs an
IlvTiledShapeDataSource data source from the specified shape file. |
IlvTiledShapeDataSource(String shpFilename,
String dbfFilename,
String shxFilename,
String idxFilename)
Constructs an a
IlvTiledShapeDataSource data source from the specified shape file, dbf file,
,shape index file (shx) and spatial index file (idx). |
IlvTiledShapeDataSource(URL url)
Constructs an
IlvTiledShapeDataSource from a shape file name. |
IlvTiledShapeDataSource(URL url,
boolean attachAttributes)
Constructs an
IlvTiledShapeDataSource data source from the specified URL. |
IlvTiledShapeDataSource(URL shp,
URL dbf,
URL shx,
URL idx)
Constructs an
IlvTiledShapeDataSource data source from the specified shape URL, dbf URL,
,shape index URL (shx) and spatial index URL (idx). |
Modifier and Type | Method and Description |
---|---|
IlvMapReusableFeatureIterator |
getFeatureIterator()
Retrieves the feature iterator used by this data source.
|
IlvTiledLayer |
getTiledLayer()
Returns the IlvTiledLayer created by this data source.
|
protected void |
initInsertionLayer(IlvMapLayer layer)
Initializes the insertion
IlvMapLayer of this datasource. |
boolean |
isMultiThreaded()
Returns whether the tiled layer created by this data source uses multithreading to load tiles.
|
void |
reset()
Resets this data source for further use.
|
void |
setMultiThreaded(boolean threaded)
Indicates whether the tiled layer created by this data source will use multithreading to load tiles.
|
void |
start()
Starts this data source.
|
String |
toString()
Returns the name of the data source.
|
void |
write(IlvOutputStream stream)
Writes an
IlvTiledShapeDataSource into an IlvOutputStream . |
createStyle, getDbfFilename, getDbfURL, getFeatureRenderer, getFilter, getIdxFilename, getIdxURL, getShapeURL, getShpFilename, getShxFilename, getShxURL, getStringEncoding, isInterningStringAttributes, isSourceDataAvailable, setFilter, setIdxFilename, setInterningStringAttributes, setShapeURL, setShpFilename, setStringEncoding
addDataSourceListener, callListeners, createInsertionLayer, getBackupDataSources, getCoordinateSystem, getDescription, getInsertionLayer, getManager, getMapLayer, getName, getNode, getValidExtentions, hasInsertionLayer, initBackupDataSource, isAttachingAttributes, isGrapherMode, isSaveBackupDataSources, isUsingBackupDataSource, isUsingGeodeticComputation, mapIntersects, removeDataSourceListener, setAttachingAttributes, setCoordinateSystem, setDescription, setFeatureRenderer, setForceUsingBackupDataSource, setGrapherMode, setInsertionLayer, setManager, setName, setSaveBackupDataSources, setValidExtentions
public IlvTiledShapeDataSource(String filename)
IlvTiledShapeDataSource
from a shape file name.filename
- The name of a shape file.public IlvTiledShapeDataSource(URL url)
IlvTiledShapeDataSource
from a shape file name.url
- The name of a shape file.public IlvTiledShapeDataSource(IlvInputStream stream) throws IlvReadFileException, MalformedURLException
IlvTiledShapeDataSource
from an IlvInputStream
.stream
- The stream to read from.IlvReadFileException
MalformedURLException
public IlvTiledShapeDataSource(String filename, boolean attachAttributes)
IlvTiledShapeDataSource
data source from the specified shape file.
and indicates if the data source must attach attributes to the graphic objects.filename
- The shape file name.attachAttributes
- true
if the data source must attach
attributes to the graphic objects.public IlvTiledShapeDataSource(URL url, boolean attachAttributes)
IlvTiledShapeDataSource
data source from the specified URL.
and indicates if the data source must attach attributes to the graphic objects.url
- The shape URL.attachAttributes
- true
if the data source must attach
attributes to graphic objects.public IlvTiledShapeDataSource(String shpFilename, String dbfFilename, String shxFilename, String idxFilename)
IlvTiledShapeDataSource
data source from the specified shape file, dbf file,
,shape index file (shx) and spatial index file (idx).shpFilename
- The shape file name.dbfFilename
- The dbf file name.shxFilename
- The shx file name.idxFilename
- The index file name.public IlvTiledShapeDataSource(URL shp, URL dbf, URL shx, URL idx)
IlvTiledShapeDataSource
data source from the specified shape URL, dbf URL,
,shape index URL (shx) and spatial index URL (idx).shp
- The shape file URL.dbf
- The dbf file URL.shx
- The shx file URL.idx
- The index file URL.public IlvMapReusableFeatureIterator getFeatureIterator()
getFeatureIterator
in class IlvShapeDataSource
public void write(IlvOutputStream stream) throws IOException
IlvTiledShapeDataSource
into an IlvOutputStream
.write
in interface IlvPersistentObject
write
in class IlvShapeDataSource
stream
- The stream to write to.IOException
public void reset()
reset
in class IlvShapeDataSource
public void start() throws Exception
start
in class IlvMapDataSource
Exception
public IlvTiledLayer getTiledLayer()
IlvTiledLayer
of this data source.protected void initInsertionLayer(IlvMapLayer layer)
IlvMapLayer
of this datasource. Inserts a new
IlvTiledLayer
in the specified IlvMapLayer
.initInsertionLayer
in class IlvMapDataSource
layer
- The IlvMapLayer to initialize.public String toString()
toString
in class IlvMapDataSource
public boolean isMultiThreaded()
true
if multi threaded, false if not.public void setMultiThreaded(boolean threaded)
threaded
- true
if multithreaded.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.