|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjwo.landserf.process.proj.TimeSpace
public class TimeSpace
Class for representing Mayhew time-space transformations. Projection is effectively a Lambert type transformation with u = lambda.x where lambda is orbital travel time over 2*PI v = 1/omega * ln(r/r0) where omega is the angular velocity in radians per time units (usually hours), r is the distance from a given centre point (e.g. centre of a city) and r0 is a constant that relates to the radius of the central zone.
| Field Summary | |
|---|---|
static int |
FROM_TIME_SPACE
Indicates a transformation from time-space to planar. |
static int |
TO_TIME_SPACE
Indicates a transformation to time-space from planar coordinates. |
| Constructor Summary | |
|---|---|
TimeSpace(int direction,
float centreX,
float centreY,
float r0,
float lambda,
float omega)
Initialises the time-space converter. |
|
| Method Summary | |
|---|---|
boolean |
doInterpolation()
Indicates whether the transformation should use nearest neighbour (false) or some interpolator (true). |
String |
getDescription()
Provides a general description of the transformation. |
Footprint |
invTransformCoords(Footprint fpIn)
Performs an inverse planar time-space transformation on the given location. |
Footprint |
planarToTimeSpace(float x,
float y)
Converts the given planar coordinates into a their time-space location. |
void |
setInterpolation(boolean doInterpolation)
Sets whether the transformation should use nearest neighbour (false) or some interpolator (true). |
Footprint |
timeSpaceToPlanar(float u,
float v)
Converts the given time-space coordinates into a their planar location. |
Footprint |
transformCoords(Footprint fpIn)
Performs a forward planar time-space transformation on the given location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FROM_TIME_SPACE
public static final int TO_TIME_SPACE
| Constructor Detail |
|---|
public TimeSpace(int direction,
float centreX,
float centreY,
float r0,
float lambda,
float omega)
direction - Direction of the transformation (either FROM_TIME_SPACE or TO_TIME_SPACE).centreX - Centre x coordinate from which radial distances measured.centreY - Centre y coordinate from which radial distances measured.r0 - Radius of central zone.lambda - orbital speed coefficient.omega - Radial speed coefficient.| Method Detail |
|---|
public Footprint transformCoords(Footprint fpIn)
transformCoords in interface TransformablefpIn - Incoming footprint to transform.
public Footprint invTransformCoords(Footprint fpIn)
invTransformCoords in interface TransformablefpIn - Incoming footprint to transform.
public String getDescription()
getDescription in interface Transformablepublic boolean doInterpolation()
doInterpolation in interface Transformablepublic void setInterpolation(boolean doInterpolation)
doInterpolation - True if transformation should perform some local interpolation.
public Footprint planarToTimeSpace(float x,
float y)
x - x-coordinate measured in distance units (e.g OSGB, UTM)y - y-coordinate measured in distance units (e.g OSGB, UTM)
public Footprint timeSpaceToPlanar(float u,
float v)
u - x-coordinate measured in time units.v - y-coordinate measured in time units.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||