|
||||||||||
| 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.IlvGraphicLayerDataSource
ilog.views.maps.datasource.IlvPolylineSimplifierDataSource
public class IlvPolylineSimplifierDataSource
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.
| Field Summary |
|---|
| Fields inherited from class ilog.views.maps.datasource.IlvMapDataSource |
|---|
renderer, usingGeodeticComputation |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class ilog.views.maps.datasource.IlvGraphicLayerDataSource |
|---|
add, add, clear, dispose, get, getDefaultFeatureRenderer, getFeatureIterator, getLowerRightCorner, getMonitoringData, getNextFeature, getUpperLeftCorner, isPersistent, makeGraphic, remove, restart, setCoordinateSystem, setManager, setMonitoringData, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ilog.views.maps.IlvMapFeatureIterator |
|---|
getCoordinateSystem |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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()
false.
isGeoreferenced in interface IlvMapFeatureIteratorisGeoreferenced in class IlvGraphicLayerDataSourcefalse.IlvMapFeatureIterator.isGeoreferenced()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||