public class IlvShapeDataSource extends IlvMapDataSource
renderer, usingGeodeticComputation| Constructor and Description |
|---|
IlvShapeDataSource(IlvInputStream stream)
Reads an
IlvShapeDataSource from an IlvInputStream. |
IlvShapeDataSource(String filename)
Constructs an
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 an
IlvShapeDataSource from a shape file URL, not attaching attributes. |
IlvShapeDataSource(URL url,
boolean attachAttributes)
Constructs an
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
IlvHierarchicalDataSource.CriterionFilter |
getFilter()
Returns the filter on the features.
|
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.
|
String |
getStringEncoding()
Returns the character encoding used when reading attributes from DBF file.
|
boolean |
isInterningStringAttributes()
Returns
true if the String attributes that are read are
interned. |
protected boolean |
isSourceDataAvailable()
Indicates if the source data is available.
|
void |
reset()
Resets this data source for further use.
|
void |
setFilter(IlvHierarchicalDataSource.CriterionFilter filter)
Sets a filter that selects the features to import.
|
void |
setIdxFilename(String idxFilename)
Sets the name of the spatial index file
|
void |
setInterningStringAttributes(boolean interningStrings)
Specifies whether the String attributes that are read will be
interned.
|
void |
setShapeURL(URL url)
Sets the shape URL value.
|
void |
setShpFilename(String filename)
Sets the shape file name.
|
void |
setStringEncoding(String stringEncoding)
Specifies which character encoding is used when reading attributes from DBF file.
|
void |
write(IlvOutputStream stream)
Writes an
IlvShapeDataSource into an IlvOutputStream. |
addDataSourceListener, callListeners, createInsertionLayer, getBackupDataSources, getCoordinateSystem, getDescription, getInsertionLayer, getManager, getMapLayer, getName, getNode, getValidExtentions, hasInsertionLayer, initBackupDataSource, initInsertionLayer, isAttachingAttributes, isGrapherMode, isSaveBackupDataSources, isUsingBackupDataSource, isUsingGeodeticComputation, mapIntersects, removeDataSourceListener, setAttachingAttributes, setCoordinateSystem, setDescription, setFeatureRenderer, setForceUsingBackupDataSource, setGrapherMode, setInsertionLayer, setManager, setName, setSaveBackupDataSources, setValidExtentions, start, toStringpublic IlvShapeDataSource(IlvInputStream stream) throws IlvReadFileException, MalformedURLException
IlvShapeDataSource from an IlvInputStream.stream - The stream to read from.IlvReadFileExceptionMalformedURLExceptionpublic 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 attributes.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.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 IlvMapDataSourceIlvMapReusableFeatureIteratorpublic 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.public void setFilter(IlvHierarchicalDataSource.CriterionFilter filter)
filter - set. Only features where @{link IlvHierarchicalDataSource.CriterionFilter.getValue(IlvMapFeature) returns null will be kept.public IlvHierarchicalDataSource.CriterionFilter getFilter()
public boolean isInterningStringAttributes()
true if the String attributes that are read are
interned. The default is false.true if the String attributes are to be interned.IlvDBFReader.isInterningStringAttributes()public void setInterningStringAttributes(boolean interningStrings)
interningStrings - indicates whether String attributes will be interned.IlvDBFReader.setInterningStringAttributes(boolean)public String getStringEncoding()
null if
using the default encoding of the platform.IlvDBFReader.getStringEncoding()public void setStringEncoding(String stringEncoding)
stringEncoding - The String encoding or null to read the
attributes using the default encoding of the platform.IlvDBFReader.setStringEncoding(String)© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.