<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>Perhaps I should mention what
this does. It converts, for display purposes, the coordinates from meters to
Decimal Degrees; in my case.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Maybe now someone will find this
useful.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Keith Sandell</span><span style='font-size:12.0pt;font-family:
"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Correctional Services Assistant Consultant</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Florida Department of Corrections</span><span style='font-size:
12.0pt;font-family:"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Phone: (850) 410-3045</span><span style='font-size:12.0pt;
font-family:"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D'>Fax: (850) 487-4427</span><span style='font-size:12.0pt;
font-family:"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:#1F497D'> </span><span style='color:#1F497D'><o:p></o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
shrug-l-bounces@lists.dep.state.fl.us
[mailto:shrug-l-bounces@lists.dep.state.fl.us] <b>On Behalf Of </b>Sandell,
Keith M.<br>
<b>Sent:</b> Tuesday, November 18, 2008 3:54 PM<br>
<b>To:</b> shrug-l@lists.dep.state.fl.us<br>
<b>Subject:</b> shrug-l: Coordinate Display in AGS 9.3<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoPlainText>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:<o:p></o:p></p>
<p class=MsoPlainText><a
href="http://webhelp.esri.com/arcgisserver/9.3/dotNet/index.htm#geometry_service.htm">http://webhelp.esri.com/arcgisserver/9.3/dotNet/index.htm#geometry_service.htm</a><o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Step 2: Add a Web reference for the Geometry Service in
your Web Mapping Application.<o:p></o:p></p>
<p class=MsoPlainText> Step A: Right-click the
Web site name in the Visual Studio Solution Explorer window and choose
"Add Web Reference" from the context menu.<o:p></o:p></p>
<p class=MsoPlainText> 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:<o:p></o:p></p>
<p class=MsoPlainText> <a
href="http://%3cserver_name%3e/arcgis/services/Geometry/GeometryServer?wsdl">http://<server_name>/arcgis/services/Geometry/GeometryServer?wsdl</a><o:p></o:p></p>
<p class=MsoPlainText> 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.<o:p></o:p></p>
<p class=MsoPlainText> Step D: Click "Add
Reference" to add the reference to your project.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>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:<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Default.aspx – Contains update panel and hidden fields<o:p></o:p></p>
<p class=MsoPlainText>Default.aspx.vb – Set spatial reference in/out<o:p></o:p></p>
<p class=MsoPlainText>Display_measure.js – Set precision (decimal places for coordinate
measure tool)<o:p></o:p></p>
<p class=MsoPlainText>Measure.ascx.vb – Prevents rounding (set by
display_measure.js)<o:p></o:p></p>
<p class=MsoPlainText>WebMapApp.js – Set precision (decimal places for
window.status)<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Hope someone else finds this as useful as I have.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>And now for the disclaimer: I’m not a programmer: I just
play one at work.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>SHRUGward bound!<span style='font-size:10.0pt;font-family:
"Arial","sans-serif"'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Keith
Sandell</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Correctional
Services Assistant Consultant</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Bureau
of Probation and Parole Field Services</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Office
of Community Corrections</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Florida
Department of Corrections</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>2601
Blairstione Road</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Tallahassee,
Florida 32399</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Phone:
(850) 410-3045</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Fax:
(850) 487-4427</span><o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal><i><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>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.</span></i><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>