|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.uio.edd.utils.geoutils.GeoTransformations
public class GeoTransformations
A set of static methods to create and manipulate spatial objects.
Constructor Summary | |
---|---|
GeoTransformations()
|
Method Summary | |
---|---|
(package private) static double |
fixAngleDeg(double rotationDeg)
|
static boolean |
isBetween(GeoPoint centre,
GeoPoint between1,
GeoPoint between2)
|
static double |
normaliseLength(double length)
TOOD: DOES NOT WORK |
static java.lang.String |
rotateRectangle(double sizeX,
double sizeY,
double rotationDeg)
Make a rectangle with size as specified, located with what would be the lower left corner of an west-east rectangle at origo. |
static java.lang.String |
rotateRectangle(double sizeX,
double sizeY,
double rotationDeg,
double offsetX,
double offsetY)
Make a rectangle with size and location (what would be the lower left corner of and west-east rectangle) as specified. |
static GeoPolygon |
rotateRectangle(GeoPolygon polyIn,
double rotationDeg)
Make a rectangle with size and location (what would be the lower left corner of and west-east rectangle) as specified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeoTransformations()
Method Detail |
---|
public static java.lang.String rotateRectangle(double sizeX, double sizeY, double rotationDeg)
sizeX
- The size of the rectangle.sizeY
- The size of the rectangle.rotationDeg
- The number of degrees the rectangle is rotated clockwise.
south-north is 0 degrees.
public static java.lang.String rotateRectangle(double sizeX, double sizeY, double rotationDeg, double offsetX, double offsetY)
sizeX
- The size of the rectangle.sizeY
- The size of the rectangle.rotationDeg
- The number of degrees the rectangle is rotated clockwise.
south-north is 0 degrees.offsetX
- The offset of the starting point. 0 means at Y axis.offsetY
- The offset of the starting point. 0 means at X axis.
public static GeoPolygon rotateRectangle(GeoPolygon polyIn, double rotationDeg)
polyIn
- The input rectangle.rotationDeg
- The number of degrees the rectangle is rotated clockwise.
south-north is 0 degrees.
static double fixAngleDeg(double rotationDeg)
public static double normaliseLength(double length)
length
-
public static boolean isBetween(GeoPoint centre, GeoPoint between1, GeoPoint between2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |