shrug-l: Coordinate Display in AGS 9.3

Sandell, Keith M. sandell.keith at
Tue Nov 18 16:04:43 EST 2008

Perhaps I should mention what this does. It converts, for display
purposes, the coordinates from meters to Decimal Degrees; in my case.


Maybe now someone will find this useful.


Keith Sandell

Correctional Services Assistant Consultant

Florida Department of Corrections

Phone: (850) 410-3045

Fax: (850) 487-4427


From: shrug-l-bounces at
[mailto:shrug-l-bounces at] On Behalf Of Sandell,
Keith M.
Sent: Tuesday, November 18, 2008 3:54 PM
To: shrug-l at
Subject: shrug-l: Coordinate Display in AGS 9.3


ArcGIS Server 9.3 is the best thing, as far as I'm concerned,
well...since AGS 9.2. However, a couple of the out-of-the-box functions
: 1) the window.status coordinate display and 2) measuring tool
coordinate result would display/return coordinates in the coordinate
system of the Primary Map Resource, which is reasonable and in many
cases adequate. 


But in the interests of displaying maps with the highest accuracy our
underlying map resources are based on the FDGL Albers system, which
displays coordinates in a meter system, which translates to user
confusing results in the web app.


Working closely, mostly watching, with a very knowledgeable ESRI
employee recently we found, what I think is, a remarkable and very
accurate solution that I'd like to share with everyone. I have attached
the code/solution (.Net) in plain text, a zip file and a zip file
incognito, .ziz, to fool this pesky firewalls that like to bounce useful
email attachments. In the cases of .js and .vb pages I included the
entire functions, but only parts were changed.


Step 1: Create a Geometry Service on your GIS Server. This is a new
service type for v9.3 that provides some geometry-related functionality
(buffer, project, etc.). You can find more information and instructions
for starting the Geometry Service here:


Step 2: Add a Web reference for the Geometry Service in your Web Mapping

      Step A: Right-click the Web site name in the Visual Studio
Solution Explorer window and choose "Add Web Reference" from the context

      Step B: In the URL text box of the "Add Web Reference" dialog,
enter a URL like the following, replacing <server_name> with the name of
your GIS Server:


      Step C: In the "Web Reference Name" text box of the dialog, enter
"GeometryService". This is the name you will use in your code to
reference the service.

      Step D: Click "Add Reference" to add the reference to your


Step 3: Update the code in your default.aspx, default.aspx.vb,
display_measure.js, Measure.ascx.vb and WebMapApp.js. See comments in
code. Below are some highlights that may need attention:


Default.aspx - Contains update panel and hidden fields

Default.aspx.vb - Set spatial reference in/out

Display_measure.js - Set precision (decimal places for coordinate
measure tool)

Measure.ascx.vb - Prevents rounding (set by display_measure.js)

WebMapApp.js - Set precision (decimal places for window.status)


Hope someone else finds this as useful as I have.


And now for the disclaimer: I'm not a programmer: I just play one at


SHRUGward bound!


Keith Sandell

Correctional Services Assistant Consultant

Bureau of Probation and Parole Field Services

Office of Community Corrections

Florida Department of Corrections

2601 Blairstione Road

Tallahassee, Florida 32399

Phone: (850) 410-3045

Fax: (850) 487-4427




This electronic message may contain protected health record/care
information intended for addressee(s) only. Unauthorized release or
disclosure may violate state and/or federal laws.


-------------- next part --------------
An HTML attachment was scrubbed...

More information about the SHRUG-L mailing list