@Embeddable
@Spatial(spatialMode=RANGE,
name="point")
public class Point
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Point.CoordinateParser |
static class |
Point.Direction |
static class |
Point.Sexagesimal |
Constructor and Description |
---|
Point()
Constructor
|
Modifier and Type | Method and Description |
---|---|
Point |
clone()
Clones this point.
|
java.lang.Integer |
getErrorRadius()
Error radius in Meters
|
java.lang.Double |
getLatitude() |
Point.Sexagesimal |
getLatitudeSexagesimal() |
java.lang.Double |
getLongitude() |
Point.Sexagesimal |
getLongitudeSexagesimal() |
ReferenceSystem |
getReferenceSystem() |
boolean |
isEmpty()
true , if none of the attributes (lat, long, errRadius, refSys) is set. |
static Point |
NewInstance()
Factory method
|
static Point |
NewInstance(java.lang.Double longitude,
java.lang.Double latitude,
ReferenceSystem referenceSystem,
java.lang.Integer errorRadius)
Factory method
|
static java.lang.Double |
parseLatitude(java.lang.String string) |
static java.lang.Double |
parseLongitude(java.lang.String string) |
void |
setErrorRadius(java.lang.Integer errorRadius) |
void |
setLatitude(java.lang.Double latitude) |
void |
setLatitudeByParsing(java.lang.String string) |
void |
setLatitudeSexagesimal(Point.Sexagesimal sexagesimalLatitude) |
void |
setLongitude(java.lang.Double longitude) |
void |
setLongitudeByParsing(java.lang.String string) |
void |
setLongitudeSexagesimal(Point.Sexagesimal sexagesimalLongitude) |
void |
setReferenceSystem(ReferenceSystem referenceSystem) |
java.lang.String |
toSexagesimalString(boolean includeEmptySeconds,
boolean includeReferenceSystem)
Returns a string representation in sexagesimal coordinates.
|
java.lang.String |
toString() |
public static Point NewInstance()
public static Point NewInstance(java.lang.Double longitude, java.lang.Double latitude, ReferenceSystem referenceSystem, java.lang.Integer errorRadius)
public Point.Sexagesimal getLongitudeSexagesimal()
public Point.Sexagesimal getLatitudeSexagesimal()
public void setLatitudeSexagesimal(Point.Sexagesimal sexagesimalLatitude)
public void setLongitudeSexagesimal(Point.Sexagesimal sexagesimalLongitude)
public void setLatitudeByParsing(java.lang.String string) throws java.text.ParseException
java.text.ParseException
public void setLongitudeByParsing(java.lang.String string) throws java.text.ParseException
java.text.ParseException
public static java.lang.Double parseLatitude(java.lang.String string) throws java.text.ParseException
java.text.ParseException
public static java.lang.Double parseLongitude(java.lang.String string) throws java.text.ParseException
java.text.ParseException
public boolean isEmpty()
true
, if none of the attributes (lat, long, errRadius, refSys) is set.public ReferenceSystem getReferenceSystem()
public void setReferenceSystem(ReferenceSystem referenceSystem)
referenceSystem
- referenceSystempublic java.lang.Double getLongitude()
public void setLongitude(java.lang.Double longitude)
longitude
- longitudepublic java.lang.Double getLatitude()
public void setLatitude(java.lang.Double latitude)
latitude
- latitudepublic java.lang.Integer getErrorRadius()
public void setErrorRadius(java.lang.Integer errorRadius)
errorRadius
- errorRadiuspublic java.lang.String toSexagesimalString(boolean includeEmptySeconds, boolean includeReferenceSystem)
public java.lang.String toString()
toString
in class java.lang.Object
public Point clone()
clone
in class java.lang.Object
Object.clone()
Copyright © 2007-2020 EDIT. All Rights Reserved.