public class IlpGeographicPositionConverter extends IlpDefaultPositionConverter
IlpDefaultPositionConverter
.IlpGeographicPosition
,
IlvProjection
,
IlvProjectionUtil
,
IlvMathTransform
,
IlvProjectionTransform
Constructor and Description |
---|
IlpGeographicPositionConverter(IlvCoordinateTransformation transformation,
boolean invertY)
Creates a new geographic coordinates converter, based on a coordinate transformation.
|
IlpGeographicPositionConverter(IlvCoordinateTransformation transformation,
boolean invertY,
IlvTransformer transformer)
Creates a new geographic coordinates converter, based on a coordinate transformation.
|
IlpGeographicPositionConverter(IlvMathTransform transform)
Creates a new geographic coordinates converter, based on an ellipsoidal coordinate transform.
|
IlpGeographicPositionConverter(IlvMathTransform transform,
IlvTransformer transformer)
Creates a new geographic coordinates converter, based on an ellipsoidal coordinate transform.
|
IlpGeographicPositionConverter(IlvProjection projection,
boolean invertY)
Creates a new geographic coordinates converter, based on a projection.
|
IlpGeographicPositionConverter(IlvProjection projection,
boolean invertY,
IlvTransformer transformer)
Creates a new geographic coordinates converter, based on a projection.
|
Modifier and Type | Method and Description |
---|---|
int |
getDMSFractionalDigits()
Returns the desired number of fractional digits of the seconds in the DMS representation
of
IlpGeographicPosition values. |
IlpPosition |
getModelPosition(IlpPosition viewLocation)
Converts a position/shape in the view to a user-defined position/shape.
|
IlpPosition |
getViewLocation(IlpPosition modelPosition)
Converts a user-defined position/shape to a position/shape for the
view.
|
void |
setDMSFractionalDigits(int digits)
Sets the desired number of fractional digits of the seconds in the DMS representation
of
IlpGeographicPosition values. |
public IlpGeographicPositionConverter(IlvProjection projection, boolean invertY)
projection
- A plane-to-spherical coordinates converter.invertY
- Whether to reverse top/bottom.public IlpGeographicPositionConverter(IlvProjection projection, boolean invertY, IlvTransformer transformer)
projection
- A plane-to-spherical coordinates converter.invertY
- Whether to reverse top/bottom.transformer
- An additional affine plane transform.public IlpGeographicPositionConverter(IlvMathTransform transform)
transform
- A plane-to-spherical coordinates converter.public IlpGeographicPositionConverter(IlvMathTransform transform, IlvTransformer transformer)
transform
- A plane-to-spherical coordinates converter.transformer
- An additional affine plane transform.public IlpGeographicPositionConverter(IlvCoordinateTransformation transformation, boolean invertY)
transformation
- A plane-to-spherical coordinates converter.invertY
- Whether to reverse top/bottom.public IlpGeographicPositionConverter(IlvCoordinateTransformation transformation, boolean invertY, IlvTransformer transformer)
transformation
- A plane-to-spherical coordinates converter.invertY
- Whether to reverse top/bottom.transformer
- An additional affine plane transform.public int getDMSFractionalDigits()
IlpGeographicPosition
values.public void setDMSFractionalDigits(int digits)
IlpGeographicPosition
values.digits
- Number of decimal digits to be kept after the decimal point of the seconds in DMS.public IlpPosition getViewLocation(IlpPosition modelPosition)
getViewLocation
in interface IlpPositionConverter
getViewLocation
in class IlpDefaultPositionConverter
IlpPoint
, IlpRect
,
IlpPolyline
, or IlpPolygon
.public IlpPosition getModelPosition(IlpPosition viewLocation)
getModelPosition
in interface IlpPositionConverter
getModelPosition
in class IlpDefaultPositionConverter
viewLocation
- an instance of IlpPoint
,
IlpRect
,
IlpPolyline
, or IlpPolygon
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.