com.partnersoft.maps.translator
Class MapDataPreprocessor
java.lang.Object
com.partnersoft.maps.translator.MapDataCollector
com.partnersoft.maps.translator.MapDataFilter
com.partnersoft.maps.translator.FilterByGraphicType
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapDataPreprocessor
public MapDataPreprocessor(java.lang.String name,
TranslationPipeline pipeline)
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
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 Rectangle getBounds()
setBounds
public void setBounds(Rectangle newBounds)