|
||||||||||
| 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.IlvShapeDataSource
ilog.views.maps.datasource.IlvTiledShapeDataSource
public class IlvTiledShapeDataSource
A data source specialized on reading tiled ESRI/Shape files.
| Field Summary |
|---|
| Fields inherited from class ilog.views.maps.datasource.IlvMapDataSource |
|---|
renderer, usingGeodeticComputation |
| Constructor Summary | |
|---|---|
IlvTiledShapeDataSource(IlvInputStream stream)
Reads an IlvTiledShapeDataSource from an IlvInputStream |
|
IlvTiledShapeDataSource(String filename)
Constructs a IlvTiledShapeDataSource from a shape file name. |
|
IlvTiledShapeDataSource(String filename,
boolean attachAttributes)
Constructs a IlvTiledShapeDataSource data source from specified shape file. |
|
IlvTiledShapeDataSource(String shpFilename,
String dbfFilename,
String shxFilename,
String idxFilename)
Constructs a a IlvTiledShapeDataSource data source from specified shape file, dbf file,
,shape index file (shx) and spatial index file (idx). |
|
IlvTiledShapeDataSource(URL url)
Constructs a IlvTiledShapeDataSource from a shape file name. |
|
IlvTiledShapeDataSource(URL url,
boolean attachAttributes)
Constructs a IlvTiledShapeDataSource data source from specified URL. |
|
IlvTiledShapeDataSource(URL shp,
URL dbf,
URL shx,
URL idx)
Constructs a a IlvTiledShapeDataSource data source from specified shape URL, dbf URL,
,shape index URL (shx) and spatial index URL (idx). |
|
| Method Summary | |
|---|---|
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)
Initialize 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 |
| Methods inherited from class ilog.views.maps.datasource.IlvShapeDataSource |
|---|
createStyle, getDbfFilename, getDbfURL, getFeatureRenderer, getIdxFilename, getIdxURL, getShapeURL, getShpFilename, getShxFilename, getShxURL, isSourceDataAvailable, setIdxFilename, setShapeURL, setShpFilename |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 specified shape file.
and telling if the data source should attach attributes to graphic objects.
filename - The shape file name.attachAttributes - true if the data source should attach
attributes to graphic objects, false otherwise.
public IlvTiledShapeDataSource(URL url,
boolean attachAttributes)
IlvTiledShapeDataSource data source from specified URL.
and telling if the data source should attach attributes to graphic objects.
url - The shape URL.attachAttributes - true if the data source should attach
attributes to graphic objects, false otherwise.
public IlvTiledShapeDataSource(String shpFilename,
String dbfFilename,
String shxFilename,
String idxFilename)
IlvTiledShapeDataSource data source from specified shape file, dbf file,
,shape index file (shx) and spatial index file (idx).
shpFilename - The shape file name.dbfFilename - The dbf file nameshxFilename - The shx file nameidxFilename - The index file name.
public IlvTiledShapeDataSource(URL shp,
URL dbf,
URL shx,
URL idx)
IlvTiledShapeDataSource data source from specified shape URL, dbf URL,
,shape index URL (shx) and spatial index URL (idx).
shp - The shape file URL.dbf - The dbf file URLshx - The shx file URLidx - The index file URL.| Method Detail |
|---|
public IlvMapReusableFeatureIterator getFeatureIterator()
getFeatureIterator in class IlvShapeDataSource
public void write(IlvOutputStream stream)
throws IOException
IlvTiledShapeDataSource into an IlvOutputStream
write in interface IlvPersistentObjectwrite in class IlvShapeDataSourcestream - The stream to write to.
IOExceptionpublic void reset()
reset in class IlvShapeDataSource
public void start()
throws Exception
start in class IlvMapDataSourceExceptionpublic IlvTiledLayer getTiledLayer()
IlvTiledLayer of this data sourceprotected void initInsertionLayer(IlvMapLayer layer)
IlvMapLayer of this datasource. Basically inserts a new
IlvTiledLayer in the specified IlvMapLayer.
initInsertionLayer in class IlvMapDataSourcelayer - the IlvMapLayer to initializepublic String toString()
toString in class IlvMapDataSourcepublic boolean isMultiThreaded()
public void setMultiThreaded(boolean threaded)
threaded - boolean, true if multi threaded, false if not.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||