Utility Web Service methods

getProjectedEnvelope(geometry:Geometry, toCoordSys:CoordinateSystem, token:String):Envelope

getVersion
:String

projectEnvelope
(envelope:Envelope, toCoordSys:CoordinateSystem, token: String):Envelope

projectGeometry
(geometry:Geometry, toCoordSys:CoordinateSystem, token: String):Geometry

projectPoint
(point:Point, toCoordSys:CoordinateSystem, token:String):Point

Method Name

getProjectedEnvelope

Description

Returns the envelope of the projected geometry. Uses the input coordinate system from Geometry.

Endpoint URL

http://arcweb.esri.com/services/v2/Utility

Input Parameters

geometry

Geometry

toCoordSys

CoordinateSystem

token

String

Valid Arguments

geometry

polyline, polygon, or multipoint.

toCoordSys

Coordinate system of output geometry.

token

Authentication token

Output Parameter

Result

The envelope of the projected geometry.

Example (Java)

IUtility myUtility = UtilityHelper.bind();
Envelope myPrjEnv = myUtility.getProjectedEnvelope(myGeometry, myToCoordSys, token);

For myGeometry, see Geometry.

For myToCoordSys, see CoordinateSystem.

Example (VB.NET)

Dim myUtility As New Utility()
Dim myPrjEnv As New Envelope()
myPrjEnv = myUtility.getProjectedEnvelope(myGeometry, myToCoordSys, token)

For myGeometry, see Geometry.

For myToCoordSys, see CoordinateSystem.

Example (C#.NET)

Utility myUtility = new Utility();
Envelope myPrjEnv = new Envelope();
myPrjEnv = myUtility.getProjectedEnvelope(myGeometry, myToCoordSys, token);

For myGeometry, see Geometry.

For myToCoordSys, see CoordinateSystem.

 

Method Name getVersion
Description Returns the version number of Utility Web Service.
Endpoint URL http://arcweb.esri.com/services/v2/Utility
Output Parameter
Result String
Example (Java)

IUtility myUtility = UtilityHelper.bind();
String utilVersion = myUtility.getVersion()

Example (VB.NET)

Dim myUtility As New Utility()
Dim utilVersion As String
utilVersion = myUtility.getVersion()

Example (C#.NET)

myUtility = new Utility();
string utilVersion = myUtility.getVersion();

 

Method Name

projectEnvelope

Description

Returns the envelope of the projected envelope. Uses the input coordinate system from Envelope.

Endpoint URL

http://arcweb.esri.com/services/v2/Utility

Input Parameters

envelope

Envelope

toCoordSys

CoordinateSystem

token

String

Valid Arguments

envelope

Rectangular area to be projected.

toCoordSys

Coordinate system of output envelope.

token

Authentication token

Output Parameter

Result

Envelope

Example (Java)

IUtility myUtility = UtilityHelper.bind();
Envelope myPrjEnv = myUtility.projectEnvelope(myEnvelope, myToCoordSys, token);

For myEnvelope, see Envelope.

For myToCoordSys, see CoordinateSystem.

Example (VB.NET)

Dim myUtility As New Utility()
Dim myPrjEnv As New Envelope()
myPrjEnv = myUtility.projectEnvelope(myEnvelope, myToCoordSys, token)

For myEnvelope, see Envelope.

For myToCoordSys, see CoordinateSystem.

Example (C#.NET)

Utility myUtility = new Utility();
Envelope myPrjEnv = new Envelope();
myPrjEnv = myUtility.projectEnvelope(myEnvelope, myToCoordSys, token);

For myEnvelope, see Envelope.

For myToCoordSys, see CoordinateSystem.

 

Method Name

projectGeometry

Description

Returns the projected geometry. Uses the input coordinate system from Geometry.

Endpoint URL

http://arcweb.esri.com/services/v2/Utility

Input Parameters

geometry

Geometry

toCoordSys

CoordinateSystem  

token

String

Valid Arguments

geometry

polyline, polygon, or multipoint.

toCoordSys

Coordinate system of output geometry.

token

Authentication token

Output Parameter

Result

Geometry

Example (Java)

IUtility myUtility = UtilityHelper.bind();
Geometry myPrjGeometry = myUtility.projectGeometry(myGeometry, myToCoordSys, token)

For myGeometry, see Geometry.

For myToCoordSys, see CoordinateSystem.

Example (VB.NET)

Dim myUtility As New Utility()
Dim myPrjGeometry As New Geometry()
myPrjGeometry = myUtility.projectGeometry(myGeometry, myToCoordSys, token)

For myGeometry, see Geometry.

For myToCoordSys, see CoordinateSystem.

Example (C#.NET)

Utility myUtility = new Utility();
Geometry myPrjGeometry = new Geometry();
myPrjGeometry = myUtility.projectGeometry(myGeometry, myToCoordSys, token);

For myGeometry, see Geometry.

For myToCoordSys, see CoordinateSystem.

 

Method Name

projectPoint

Description

Returns the projected point. Uses the input coordinate system from Point.

Endpoint URL

http://arcweb.esri.com/services/v2/Utility

Input Parameters

point

Point  

toCoordSys

CoordinateSystem  

token

String

Valid Arguments

point

x,y coordinate

toCoordSys

Coordinate system of output point.

token

Authentication token

Output Parameter

Result

Point

Example (Java)

IUtility myUtility = UtilityHelper.bind();
Point myPrjPoint = myUtility.projectPoint(myPoint, myToCoordSys, token);

For myPoint, see Point.

For myToCoordSys, see CoordinateSystem.

Example (VB.NET)

Dim myUtility As New Utility()
Dim myPrjPoint As New Point()
myPrjPoint = myUtility.projectPoint(myPoint, myToCoordSys, token)

For myPoint, see Point.

For myToCoordSys, see CoordinateSystem.

Example (C#.NET)

Utility myUtility = new Utility();
Point myPrjPoint = new Point();
myPrjPoint = myUtility.projectPoint(myPoint, myToCoordSys, token);

For myPoint, see Point.

For myToCoordSys, see CoordinateSystem.

 


See also

Utility overview

Coordinate systems


SOAP samples


Object model