Package org.opentrafficsim.core.gis
Class CoordinateTransformLonLatToXY
- java.lang.Object
-
- org.opentrafficsim.core.gis.CoordinateTransformLonLatToXY
-
- All Implemented Interfaces:
Serializable,nl.tudelft.simulation.dsol.animation.gis.transform.CoordinateTransform
public class CoordinateTransformLonLatToXY extends Object implements nl.tudelft.simulation.dsol.animation.gis.transform.CoordinateTransform, Serializable
Transformation from lat-lon to X-Y in meters. Source: https://en.wikipedia.org/wiki/Geographic_coordinate_system.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Nov 30, 2015
BSD-style license. See OpenTrafficSim License.- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CoordinateTransformLonLatToXY(double lonCenter, double latCenter)Transformation from: https://en.wikipedia.org/wiki/Geographic_coordinate_system.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]doubleTransform(double lon, double lat)double[]doubleTransformWSG84toCartesianXY(double lon, double lat)Convert WGS84 coordinates to Cartesian coordinates.float[]floatTransform(double lon, double lat)StringtoString()
-
-
-
Constructor Detail
-
CoordinateTransformLonLatToXY
public CoordinateTransformLonLatToXY(double lonCenter, double latCenter)Transformation from: https://en.wikipedia.org/wiki/Geographic_coordinate_system.- Parameters:
latCenter- double; the latitude of the center point (0, 0)lonCenter- double; the longitude of the center point (0, 0)
-
-
Method Detail
-
floatTransform
public final float[] floatTransform(double lon, double lat)- Specified by:
floatTransformin interfacenl.tudelft.simulation.dsol.animation.gis.transform.CoordinateTransform
-
doubleTransformWSG84toCartesianXY
public final double[] doubleTransformWSG84toCartesianXY(double lon, double lat)Convert WGS84 coordinates to Cartesian coordinates.- Parameters:
lon- double; longitude in degreeslat- double; latitude in degrees- Returns:
- double[]
-
doubleTransform
public final double[] doubleTransform(double lon, double lat)- Specified by:
doubleTransformin interfacenl.tudelft.simulation.dsol.animation.gis.transform.CoordinateTransform
-
-