public class IlvPolylineSimplifierDataSource extends IlvGraphicLayerDataSource
IlvPolylineSimplifierDataSource
features a utility that
simplifies polygons and polylines through the use of an
IlvPolygonSimplifyingEngine
.
This class is useful when the original data source is too detailed and you want to reduce the map size.
renderer, usingGeodeticComputation
Constructor and Description |
---|
IlvPolylineSimplifierDataSource(IlvInputStream stream)
Creates a data source by reading its parameters from an input stream.
|
IlvPolylineSimplifierDataSource(IlvMapDataSource dataSource)
Creates an
IlvPolylineSimplifierDataSource instance from an
IlvMapDataSource object passed as a parameter. |
Modifier and Type | Method and Description |
---|---|
boolean |
isGeoreferenced()
Returns false.
|
void |
setSimplifyDistance(double distance)
Sets the criterion distance used to simplify polylines.
|
void |
start()
Simplifies the specified collection of polylines.
|
void |
write(IlvOutputStream stream)
Writes an
IlvPolylineSimplifierDataSource instance to an
IlvOutputStream . |
add, add, clear, dispose, get, getDefaultFeatureRenderer, getFeatureIterator, getLowerRightCorner, getMonitoringData, getNextFeature, getUpperLeftCorner, isPersistent, makeGraphic, remove, restart, setCoordinateSystem, setManager, setMonitoringData, size
addDataSourceListener, callListeners, createInsertionLayer, getBackupDataSources, getCoordinateSystem, getDescription, getFeatureRenderer, getInsertionLayer, getManager, getMapLayer, getName, getNode, getValidExtentions, hasInsertionLayer, initBackupDataSource, initInsertionLayer, isAttachingAttributes, isGrapherMode, isSaveBackupDataSources, isSourceDataAvailable, isUsingBackupDataSource, isUsingGeodeticComputation, mapIntersects, removeDataSourceListener, reset, setAttachingAttributes, setDescription, setFeatureRenderer, setForceUsingBackupDataSource, setGrapherMode, setInsertionLayer, setName, setSaveBackupDataSources, setValidExtentions, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCoordinateSystem
public IlvPolylineSimplifierDataSource(IlvMapDataSource dataSource)
IlvPolylineSimplifierDataSource
instance from an
IlvMapDataSource
object passed as a parameter.dataSource
- The IlvMapDataSource
producing polylines
to simplify.public IlvPolylineSimplifierDataSource(IlvInputStream stream) throws IlvReadFileException
stream
- The stream to read from.IlvReadFileException
- if there is a problem reading from
stream
.public void write(IlvOutputStream stream) throws IOException
IlvPolylineSimplifierDataSource
instance to an
IlvOutputStream
.write
in interface IlvPersistentObject
write
in interface IlvFeatureRenderer
write
in class IlvGraphicLayerDataSource
stream
- The stream to write to.IOException
- if there is a problem writing to stream
.IlvFeatureRenderer.write(ilog.views.io.IlvOutputStream)
public void setSimplifyDistance(double distance)
distance
- The maximum distance in meters for the Douglas Peuker
Algorithm.public void start() throws Exception
SimplifyDistance
criterion.start
in class IlvGraphicLayerDataSource
Exception
- when the initial source.setSimplifyDistance(double)
public boolean isGeoreferenced()
isGeoreferenced
in interface IlvMapFeatureIterator
isGeoreferenced
in class IlvGraphicLayerDataSource
IlvMapFeatureIterator.isGeoreferenced()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.