Package org.opentrafficsim.core.gis
Class CoordinateTransformLonLatToXY
- java.lang.Object
-
- org.opentrafficsim.core.gis.CoordinateTransformLonLatToXY
-
- All Implemented Interfaces:
java.io.Serializable,CoordinateTransform
public class CoordinateTransformLonLatToXY extends java.lang.Object implements CoordinateTransform, java.io.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface nl.javel.gisbeans.io.esri.CoordinateTransform
CoordinateTransform.NoTransform
-
-
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)java.lang.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 interfaceCoordinateTransform
-
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 interfaceCoordinateTransform
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-