Package net.sf.eBusx.geo
Class GeoEllipse
- java.lang.Object
-
- net.sf.eBus.messages.EMessageObject
-
- net.sf.eBus.messages.EField
-
- net.sf.eBusx.geo.GeoObject
-
- net.sf.eBusx.geo.GeoEllipse
-
- All Implemented Interfaces:
java.io.Serializable
public final class GeoEllipse extends GeoObject
Defines a GeoJSON ellipse by the center point, major and minor axes, and degrees of rotation with axis units and rotation units.- Author:
- Charles W. Rapp
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeoEllipse.Builder
Builder class used to create GeoJSON ellipse instance.-
Nested classes/interfaces inherited from class net.sf.eBusx.geo.GeoObject
GeoObject.GeoBuilder<F extends GeoObject,B extends GeoObject.GeoBuilder<F,?>>, GeoObject.GeoType
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
axisUnits
Major, minor axes are defined in this unit.Position
center
Ellipse center coordinate.static java.lang.String
DEFAULT_AXIS_UNITS
Default units defining ellipse axis is kilometers ("km").static java.lang.String
DEFAULT_ROTATION_UNITS
Default units defining ellipse rotation is ""decimal degrees"".java.math.BigDecimal
majorAxis
Ellipse major axis.java.math.BigDecimal
minorAxis
Ellipse minor axis.java.math.BigDecimal
rotation
Ellipse degrees of rotation.java.lang.String
rotationUnits
Rotation is defined in this unit.-
Fields inherited from class net.sf.eBusx.geo.GeoObject
boundingBox, MAX_LATITUDE, MAX_LONGITUDE, MIN_LATITUDE, MIN_LONGITUDE, type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GeoEllipse.Builder
builder()
Returns a new instance of aGeoEllipse
builder.boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
toString()
Returns text specifying GeoJSON type and attributes-
Methods inherited from class net.sf.eBusx.geo.GeoObject
validateLatitude, validateLongitude
-
-
-
-
Field Detail
-
DEFAULT_AXIS_UNITS
public static final java.lang.String DEFAULT_AXIS_UNITS
Default units defining ellipse axis is kilometers ("km").- See Also:
- Constant Field Values
-
DEFAULT_ROTATION_UNITS
public static final java.lang.String DEFAULT_ROTATION_UNITS
Default units defining ellipse rotation is ""decimal degrees"".- See Also:
- Constant Field Values
-
center
public final Position center
Ellipse center coordinate.
-
majorAxis
public final java.math.BigDecimal majorAxis
Ellipse major axis.
-
minorAxis
public final java.math.BigDecimal minorAxis
Ellipse minor axis.
-
rotation
public final java.math.BigDecimal rotation
Ellipse degrees of rotation.
-
axisUnits
public final java.lang.String axisUnits
Major, minor axes are defined in this unit. Defaults toDEFAULT_AXIS_UNITS
.
-
rotationUnits
public final java.lang.String rotationUnits
Rotation is defined in this unit. Defaults toDEFAULT_ROTATION_UNITS
.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
Description copied from class:GeoObject
Returns text specifying GeoJSON type and attributes
-
builder
public static GeoEllipse.Builder builder()
Returns a new instance of aGeoEllipse
builder.- Returns:
- GeoJSON ellipse builder.
- See Also:
GeoEllipse.Builder
-
-