|
||||||||||
| 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
public class IlvShapeDataSource
A data source specialized on reading ESRI/Shape files.
| Field Summary |
|---|
| Fields inherited from class ilog.views.maps.datasource.IlvMapDataSource |
|---|
renderer, usingGeodeticComputation |
| Constructor Summary | |
|---|---|
IlvShapeDataSource(IlvInputStream stream)
Reads an IlvShapeDataSource from an IlvInputStream. |
|
IlvShapeDataSource(String filename)
Constructs a IlvShapeDataSource from a shape file name. |
|
IlvShapeDataSource(String filename,
boolean attachAttributes)
Constructs a Shape data source given the name of the shape file and indicating if the data source should attach attributes to graphic objects. |
|
IlvShapeDataSource(String shpFilename,
String dbfFilename,
String shxFilename,
String idxFilename)
Constructs a Shape data source giving the name of the shape file, the name of the dbf file and the name of the shx file. |
|
IlvShapeDataSource(URL url)
Constructs a IlvShapeDataSource from a shape file URL, not attaching attributes. |
|
IlvShapeDataSource(URL url,
boolean attachAttributes)
Constructs a IlvShapeDataSource from a shape file URL. |
|
IlvShapeDataSource(URL shpURL,
URL dbfURL,
URL shxURL,
URL idxURL)
Constructs a Shape data source giving the name of the shape file, the name of the dbf file and the name of the shx file. |
|
| Method Summary | |
|---|---|
protected IlvMapStyle |
createStyle(IlvMapFeature feature)
Creates a map style for the specified feature. |
String |
getDbfFilename()
Retrieves the dbf file name. |
URL |
getDbfURL()
Retrieves the DBF file URL. |
IlvMapReusableFeatureIterator |
getFeatureIterator()
Retrieves the feature iterator used by this data source |
IlvFeatureRenderer |
getFeatureRenderer()
Retrieves the feature renderer used by this data source. |
String |
getIdxFilename()
Retrieves the spatial index file name. |
URL |
getIdxURL()
Retrieves the idx file URL. |
URL |
getShapeURL()
Retrieves the shape file URL. |
String |
getShpFilename()
Retrieves the shape file name. |
String |
getShxFilename()
Retrieves the shx file name. |
URL |
getShxURL()
Retrieves the shx file URL. |
protected boolean |
isSourceDataAvailable()
Tells if the source data is available. |
void |
reset()
Resets this data source for further use. |
void |
setIdxFilename(String idxFilename)
Sets the name of the spatial index file |
void |
setShapeURL(URL url)
Sets the shape URL value. |
void |
setShpFilename(String filename)
Sets the shape file name. |
void |
write(IlvOutputStream stream)
Writes an IlvShapeDataSource into an IlvOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvShapeDataSource(IlvInputStream stream)
throws IlvReadFileException,
MalformedURLException
IlvShapeDataSource from an IlvInputStream.
stream - The stream to read from.
IlvReadFileException
MalformedURLExceptionpublic IlvShapeDataSource(String filename)
IlvShapeDataSource from a shape file name.
filename - The name of a shape file.
public IlvShapeDataSource(URL url,
boolean attachAttributes)
IlvShapeDataSource from a shape file URL.
url - The URL to read from.attachAttributes - Set to true if attaching attributes
to graphic objects.public IlvShapeDataSource(URL url)
IlvShapeDataSource from a shape file URL, not attaching attributes.
url - The URL to read from.
public IlvShapeDataSource(String filename,
boolean attachAttributes)
filename - The shape file name.attachAttributes - true if the data source should attach
false otherwise.
public IlvShapeDataSource(String shpFilename,
String dbfFilename,
String shxFilename,
String idxFilename)
shpFilename - The shape file name.dbfFilename - The dbf file name.shxFilename - The shx file name.idxFilename - The index file name.
public IlvShapeDataSource(URL shpURL,
URL dbfURL,
URL shxURL,
URL idxURL)
shpURL - The shape file URL.dbfURL - The dbf file URL.shxURL - The shx file URL.idxURL - The index file URL.| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
IlvShapeDataSource into an IlvOutputStream.
write in interface IlvPersistentObjectwrite in class IlvMapDataSourcestream - The stream to write to.
IOExceptionpublic String getShpFilename()
public void setShpFilename(String filename)
filename - The new shape file name.public void setIdxFilename(String idxFilename)
idxFilename - The idxFilename to set.public String getDbfFilename()
public String getShxFilename()
public URL getShapeURL()
public void setShapeURL(URL url)
url - The URL pointing to the shape resource.public URL getIdxURL()
public URL getDbfURL()
public URL getShxURL()
public String getIdxFilename()
public IlvMapReusableFeatureIterator getFeatureIterator()
getFeatureIterator in class IlvMapDataSourceIlvMapReusableFeatureIterator
public IlvFeatureRenderer getFeatureRenderer()
throws Exception
getFeatureRenderer in class IlvMapDataSourceIlvFeatureRenderer.
Exceptionpublic void reset()
reset in class IlvMapDataSourceprotected IlvMapStyle createStyle(IlvMapFeature feature)
feature - the IlvMapFeature.
IlvMapStyle for the featureprotected boolean isSourceDataAvailable()
isSourceDataAvailable in class IlvMapDataSourcetrue if the source data is available, false otherwise.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||