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, sizeaddDataSourceListener, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCoordinateSystempublic 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 IlvPersistentObjectwrite in interface IlvFeatureRendererwrite in class IlvGraphicLayerDataSourcestream - 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 IlvGraphicLayerDataSourceException - when the initial source.setSimplifyDistance(double)public boolean isGeoreferenced()
isGeoreferenced in interface IlvMapFeatureIteratorisGeoreferenced in class IlvGraphicLayerDataSourceIlvMapFeatureIterator.isGeoreferenced()© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.