com.esri.adf.web.data.geometry
Class SRTransformations

java.lang.Object
  extended by com.esri.adf.web.data.geometry.SRTransformations

Deprecated. This class is deprecated as of ArcGIS Java Server 9.3 SP1, no replacement.

@Deprecated
public class SRTransformations
extends Object

SRTransformations is a utility class for projecting points to different spatial references.


Field Summary
protected static Map<String,com.esri.sde.sdk.pe.PeGeogTransformations> geogTrans
          Deprecated.  
protected static List<String> notAvailTrans
          Deprecated.  
 
Constructor Summary
SRTransformations()
          Deprecated.  
 
Method Summary
static boolean project(double[] coords, int numCoords, WebSpatialReference from, WebSpatialReference to)
          Deprecated. Projects an array of point coordinates from a given spatial reference from to a given spatial reference to.
static WebPoint[] project(WebPoint[] pts, WebSpatialReference to)
          Deprecated. Projects an array of WebPoints to the given WebSpatialReference.
static WebPoint project(WebPoint pt, WebSpatialReference to)
          Deprecated. Projects a given point to a given spatial reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

geogTrans

protected static Map<String,com.esri.sde.sdk.pe.PeGeogTransformations> geogTrans
Deprecated. 

notAvailTrans

protected static List<String> notAvailTrans
Deprecated. 
Constructor Detail

SRTransformations

public SRTransformations()
Deprecated. 
Method Detail

project

public static WebPoint[] project(WebPoint[] pts,
                                 WebSpatialReference to)
Deprecated. 
Projects an array of WebPoints to the given WebSpatialReference.

Parameters:
pts - an array of WebPoints
to - a spatial reference
Returns:
an array of projected WebPoints

project

public static WebPoint project(WebPoint pt,
                               WebSpatialReference to)
Deprecated. 
Projects a given point to a given spatial reference.

Parameters:
pt - a point to project
to - a spatial reference to be used in projection
Returns:
projected point

project

public static boolean project(double[] coords,
                              int numCoords,
                              WebSpatialReference from,
                              WebSpatialReference to)
Deprecated. 
Projects an array of point coordinates from a given spatial reference from to a given spatial reference to.

Parameters:
coords - array of point coordinates in the following format: [x0,y0,x1,y1,…]
numCoords - number of occupied positions in the coords array
from - a spatial reference to convert from
to - a spatial reference to convert to
Returns:
true is operation succeeds, false otherwise.