com.partnersoft.maps.translator
Class MapDataPreprocessor

java.lang.Object
  extended by com.partnersoft.maps.translator.MapDataCollector
      extended by com.partnersoft.maps.translator.MapDataFilter
          extended by com.partnersoft.maps.translator.FilterByGraphicType
              extended by com.partnersoft.maps.translator.MapDataPreprocessor

public class MapDataPreprocessor
extends FilterByGraphicType

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.

Author:
Paul Reavis Copyright 2003-2005 Partner Software, Inc.

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

MapDataPreprocessor

public MapDataPreprocessor(java.lang.String name,
                           TranslationPipeline pipeline)
Method Detail

collectImage

protected void collectImage(MapDataImage image)
                     throws java.io.IOException
Description copied from class: FilterByGraphicType
Does nothing by default; override for your own use.

Overrides:
collectImage in class FilterByGraphicType
Throws:
java.io.IOException

collectPoint

protected void collectPoint(MapDataPoint point)
                     throws java.io.IOException
Description copied from class: FilterByGraphicType
Does nothing by default; override for your own use.

Overrides:
collectPoint in class FilterByGraphicType
Throws:
java.io.IOException

collectPointColor

protected void collectPointColor(MapDataPointColor point)
                          throws java.io.IOException
Description copied from class: FilterByGraphicType
Does nothing by default; override for your own use.

Overrides:
collectPointColor in class FilterByGraphicType
Throws:
java.io.IOException

collectText

protected void collectText(MapDataText text)
                    throws java.io.IOException
Description copied from class: FilterByGraphicType
Does nothing by default; override for your own use.

Overrides:
collectText in class FilterByGraphicType
Throws:
java.io.IOException

collectPolyline

protected void collectPolyline(MapDataPolyline polyline)
                        throws java.io.IOException
Description copied from class: FilterByGraphicType
Does nothing by default; override for your own use.

Overrides:
collectPolyline in class FilterByGraphicType
Throws:
java.io.IOException

collectPolygon

protected void collectPolygon(MapDataPolygon polygon)
                       throws java.io.IOException
Description copied from class: FilterByGraphicType
Does nothing by default; override for your own use.

Overrides:
collectPolygon in class FilterByGraphicType
Throws:
java.io.IOException

setCoordinateTransformation

public void setCoordinateTransformation(CoordinateTransformation newTransformation)

setHoles

public void setHoles(java.util.Set newHoles)

getHoles

public java.util.Set getHoles()

getBounds

public XyBounds getBounds()

setBounds

public void setBounds(XyBounds newBounds)