public final class TransformWGS84DutchRDNew extends Object
Copyright (c) ~2000-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Method and Description |
---|---|
static Point2D |
fromWGS84(double wgs84East,
double wgs84North)
Convert a coordinate pair in WGS84 coordinates to local coordinates.
|
static Point2D |
fromWGS84(Point2D wgs84)
Convert a coordinate pair in WGS84 coordinates to local coordinates.
|
static Rectangle2D |
fromWGS84Bounds()
Report the bounding box for conversion to the local coordinate system.
Conversions from WGS84 to the local coordinate system should fail for locations outside this bounding box. |
static Point2D |
toWGS84(double localX,
double localY)
Convert a coordinate pair in the local system to WGS84 coordinates.
|
static Point2D |
toWGS84(Point2D local)
Convert a coordinate pair in the local system to WGS84 coordinates.
|
static Rectangle2D |
toWGS84Bounds()
Report the bounding box for conversions from the local coordinate system.
|
public static Point2D toWGS84(Point2D local) throws IllegalArgumentException
local
- Point2D; coordinates in the local system.IllegalArgumentException
- when local is not valid in the local systempublic static Point2D toWGS84(double localX, double localY) throws IllegalArgumentException
localX
- double; X-coordinate in the local systemlocalY
- double; Y-coordinate in the local systemIllegalArgumentException
- when localX, localY is not valid in the local systempublic static Point2D fromWGS84(Point2D wgs84) throws IllegalArgumentException
wgs84
- Point2D; coordinates in degrees in the WGS84 coordinate systemIllegalArgumentException
- when wgs84 is not valid in the local systempublic static Point2D fromWGS84(double wgs84East, double wgs84North) throws IllegalArgumentException
wgs84East
- double; East coordinate in degrees in the WGS84 system (negative value indicates West)wgs84North
- double; North coordinate in degrees in the WGS84 system (negative value indicates South)IllegalArgumentException
- when wgs84 is not valid in the local systempublic static Rectangle2D fromWGS84Bounds()
public static Rectangle2D toWGS84Bounds()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.