Select to view content in your preferred language

Enhanced Locate Widget: How to change point unit abbr?

2778
3
11-14-2013 03:07 AM
ThomasColson
MVP Alum
In setting a coordinate system to use for point units, I can look up the WKID here http://resources.esri.com/help/9.3/arcgisserver/apis/rest/pcs.html but where is the lookup table for "abbr"? I'm trying   "<pointunit abbr="wgs84ddm" wkid="4326" ylabel="Latitude:" xlabel="Longitude:" example="85-50.50 W, 33-39.33 N">Degrees Decimal-Minutes (WGS84)</pointunit>" with no success
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Tom,

   What you have works fine for me. I even checked the result location  in ArcMap and it places it at the same location using "Degrees Decimal  Minutes" in the Go To XY tool.
0 Kudos
ThomasColson
MVP Alum
Hmm....not working for me at all. When I enter 85-50.50 W, 33-39.50 N, the results screen is blank and there is no zooming/panning to the location.  So there is no table of abbreviations? Is the "abbr" tag even used? I just guessed at it. What about state plane systems? "spal" is obvious, but what about states that have multiple zones? (Texas?)?
Here is my complete pointunits sections. All others work except for DDM, which is the one we really need for aviation operations.

    <pointunits>
        <pointunit abbr="map" wkid="102100" ylabel="Northing (Y):" xlabel="Easting (X):" example="-9555431.36, 3982180.11">Map</pointunit>
        <pointunit abbr="spnc" wkid="2264" ylabel="Northing (Y):" xlabel="Easting (X):" example="656036.27, 1147053.29">NAD83 NC. (SP Feet)</pointunit>
          <pointunit abbr="sptn" wkid="2274" ylabel="Northing (Y):" xlabel="Easting (X):" example="656036.27, 1147053.29">NAD83 TN. (SP Feet)</pointunit>
        <pointunit abbr="wgs84dd" wkid="4326" ylabel="Latitude:" xlabel="Longitude:" example="-85.8337, 33.6531">Decimal Degrees (WGS84)</pointunit>
        <pointunit abbr="wgs84dms" wkid="4326" ylabel="Latitude:" xlabel="Longitude:" example="85-50-1.45 W, 33-39-10.99 N">Degrees Minutes Seconds (WGS84)</pointunit>
        <pointunit abbr="wgs84dm" wkid="4326" ylabel="Latitude:" xlabel="Longitude:" example="85-50 W, 33-39 N">Degree-Minutes (WGS84)</pointunit>
  <pointunit abbr="wgs84ddm" wkid="4326" ylabel="Latitude:" xlabel="Longitude:" example="85-50.50 W, 33-39.33 N">Degrees Decimal-Minutes (WGS84)</pointunit>
        <pointunit abbr="utm17n" wkid="26917" ylabel="Y:" xlabel="X:" example="290905.642, 3955265.123">NAD 1983 UTM 17N</pointunit>
    </pointunits>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Tom,

   The abbr attribute is only used in my code to differentiate between DMS, DM and DD conversion process (so the only values used are wgs84dms and wgs84dm). Here is what will work ( I forgot to correct it in the previous post 😞

<pointunit abbr="wgs84dm" wkid="4326" ylabel="Latitude:" xlabel="Longitude:" example="85-50.50 W, 33-39.33 N">Degrees Decimal-Minutes (WGS84)</pointunit>
0 Kudos