DirectPosition
, which is derived from OGC/ISO specifications.@Deprecated public class LatLon extends DirectPosition2D
Point2D.Double, Point2D.Float
x, y
Constructor and Description |
---|
LatLon(double lat,
double lon)
Deprecated.
LatLon to represent geo point.
|
Modifier and Type | Method and Description |
---|---|
double |
getLat()
Deprecated.
Returns the latitude.
|
double |
getLon()
Deprecated.
Returns the longitude.
|
double |
getNormLon()
Deprecated.
Normalizes the longitude values to be between -180.0 and 180.0
|
double |
getShiftedLat()
Deprecated.
Shifts the latitude by +90.0 so that all latitude lies in the positive
coordinate.
|
double |
getShiftedLon()
Deprecated.
Shifts the longitude by +180.0 so that all longitude lies in the positive
coordinate.
|
String |
toString()
Deprecated.
Formats this position in the Well Known Text (WKT) format.
|
clone, equals, getCoordinate, getCoordinateReferenceSystem, getDimension, getDirectPosition, getOrdinate, hashCode, setCoordinateReferenceSystem, setLocation, setOrdinate
getX, getY, setLocation
distance, distance, distance, distanceSq, distanceSq, distanceSq
public LatLon(double lat, double lon)
lat
- the latitudelon
- the longitudepublic double getShiftedLat()
public double getShiftedLon()
public double getLat()
public double getLon()
public double getNormLon()
public String toString()
DirectPosition2D
The string returned by this method can be parsed by thePOINT(x y)
DirectPosition2D
constructor.toString
in class DirectPosition2D
Copyright © 2010–2013 The Apache Software Foundation. All rights reserved.