Class IWCoordinate

Extends IWCloneable.

A class representing a coordinate.

Author: BRE, JAN

Constructor Summary
IWCoordinate(x, y, projection)
            Creates a new coordinate. If x and y are not specified (0, 0) is returned.
 
Method Summary
 IWCoordinate clone()
           Returns a new instance of this object.
 number distanceFrom(other)
           Returns the distance between this coordinate and another one in meters.
 boolean equals(other)
           Checks whether this coordinate equals another one (or is very close to it, i.e.
 String getProjectionType()
          
 double getX()
           Returns the horizontal position of this coordinate.
 double getY()
           Returns the vertical position of this coordinate in meters.
 void setProjectionType(projectionType)
          
 void setX(x)
           Sets the horizontal position of this coordinate.
 void setY(y)
           Sets the vertical position of this coordinate in meters.
 String toFormattedString()
           Returns a compact string representation of this coordinate. For WGS84 coordinates this is latitude, longitude (e.g. in all other cases x, y (e.g. "794920, 6568663").
 IWCoordinate toMercator()
           Returns the Mercator coordinate as a new IWCoordinate object.
 String toString()
           Returns a string representation of this coordinate.
 IWCoordinate toWGS84()
           Returns the WGS84 coordinate as a new IWCoordinate object.
 
Constructor Detail

IWCoordinate

IWCoordinate(x, y, projection)

Method Detail

clone

IWCoordinate clone()

distanceFrom

number distanceFrom(other)

equals

boolean equals(other)

getProjectionType

String getProjectionType()

getX

double getX()

getY

double getY()

setProjectionType

void setProjectionType(projectionType)

setX

void setX(x)

setY

void setY(y)

toFormattedString

String toFormattedString()

toMercator

IWCoordinate toMercator()

toString

String toString()

toWGS84

IWCoordinate toWGS84()

Source-Code Copyright 2007-2009 infoware GmbH - Documentation generated by JsDoc Toolkit 1.4.1 on Tue Nov 28 2017 09:51:52 GMT+0100 (MEZ)