|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.translator.MapDataCollector
com.partnersoft.maps.translator.MapDataFilter
com.partnersoft.maps.translator.FilterByGraphicType
com.partnersoft.maps.translator.MapDataPreprocessor
public class MapDataPreprocessor
Handles transformation of coordinates from one system to another. Both reverse and forward projection are provided, along with input and output scaling and offsets. This allows going from feet to meters, latlong to feet/meters/etc., feet/meters/etc. to latlong, or from one projection in feet/meters/etc., to latlong, and thence to another projection in feet/meters/etc. For truly weird transformations, write a special implementation of Projection.
| Field Summary |
|---|
| Fields inherited from class com.partnersoft.maps.translator.MapDataFilter |
|---|
nextCollector |
| Fields inherited from class com.partnersoft.maps.translator.MapDataCollector |
|---|
name, pipeline |
| Constructor Summary | |
|---|---|
MapDataPreprocessor(java.lang.String name,
TranslationPipeline pipeline)
|
|
| Method Summary | |
|---|---|
protected void |
collectImage(MapDataImage image)
Does nothing by default; override for your own use. |
protected void |
collectPoint(MapDataPoint point)
Does nothing by default; override for your own use. |
protected void |
collectPointColor(MapDataPointColor point)
Does nothing by default; override for your own use. |
protected void |
collectPolygon(MapDataPolygon polygon)
Does nothing by default; override for your own use. |
protected void |
collectPolyline(MapDataPolyline polyline)
Does nothing by default; override for your own use. |
protected void |
collectText(MapDataText text)
Does nothing by default; override for your own use. |
XyBounds |
getBounds()
|
java.util.Set |
getHoles()
|
void |
setBounds(XyBounds newBounds)
|
void |
setCoordinateTransformation(CoordinateTransformation newTransformation)
|
void |
setHoles(java.util.Set newHoles)
|
| Methods inherited from class com.partnersoft.maps.translator.FilterByGraphicType |
|---|
collect, collectList |
| Methods inherited from class com.partnersoft.maps.translator.MapDataFilter |
|---|
discard, flush, getNextCollector, pass, setNextCollector |
| Methods inherited from class com.partnersoft.maps.translator.MapDataCollector |
|---|
close, getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapDataPreprocessor(java.lang.String name,
TranslationPipeline pipeline)
| Method Detail |
|---|
protected void collectImage(MapDataImage image)
throws java.io.IOException
FilterByGraphicType
collectImage in class FilterByGraphicTypejava.io.IOException
protected void collectPoint(MapDataPoint point)
throws java.io.IOException
FilterByGraphicType
collectPoint in class FilterByGraphicTypejava.io.IOException
protected void collectPointColor(MapDataPointColor point)
throws java.io.IOException
FilterByGraphicType
collectPointColor in class FilterByGraphicTypejava.io.IOException
protected void collectText(MapDataText text)
throws java.io.IOException
FilterByGraphicType
collectText in class FilterByGraphicTypejava.io.IOException
protected void collectPolyline(MapDataPolyline polyline)
throws java.io.IOException
FilterByGraphicType
collectPolyline in class FilterByGraphicTypejava.io.IOException
protected void collectPolygon(MapDataPolygon polygon)
throws java.io.IOException
FilterByGraphicType
collectPolygon in class FilterByGraphicTypejava.io.IOExceptionpublic void setCoordinateTransformation(CoordinateTransformation newTransformation)
public void setHoles(java.util.Set newHoles)
public java.util.Set getHoles()
public XyBounds getBounds()
public void setBounds(XyBounds newBounds)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||