Select to view content in your preferred language

How to Convert the Global Coordinate System to State Plain Coordinate system

2425
16
12-05-2012 06:56 AM
by Anonymous User
Not applicable
I have a coordinate that I would like to convert to a state plain coordinate.  My current coordinate is in the global coordinate system.  Is there a formula that can be used for this conversion?  If anyone can help me I would appreciate it.  An example coordinate is:
Longitude: 2233778.763141667 
Latitude: 266801.48784685344


Thanks,
Ray
Tags (2)
0 Kudos
16 Replies
RobertScheitlin__GISP
MVP Emeritus
Ray,

   That does not look like a Lat/Lon cordinate so when you say global cordinate what WKID are you talking about?
0 Kudos
by Anonymous User
Not applicable
Robert,
My wkid is 2274.  I am using the Coordinate widget built into the Flex Viewer 2.5.  It is displaying what I assume to be the global coordinate system.  How can I convert it? 

Thanks Robert,
Ray
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ray,

   The coordinate widgets help documentation can be found here:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Coordinate_widget_tags/01m30000...

You will notice an outputunit element in the CoordinateWidget.xml

So what does your Main config.xml look like?

BTW: I have moved this thread to the Flex Viewer forum where it belongs.
0 Kudos
by Anonymous User
Not applicable
Robert,
I have attached a copy of my main config.xml file.  I have looked at the sample program that is linked from the documentation and that is the coordinate system I need my widget to display in.  I am not sure why I get the crazy coordinates that I get.

[HTML]<?xml version="1.0" ?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Read more about ArcGIS Viewer for Flex - http://links.esri.com/flexviewer
//
////////////////////////////////////////////////////////////////////////////////
-->
<configuration>
    <!-- <title>HCGIS - GISMO</title>
    <subtitle>Hamilton County Web Mapping</subtitle>-->
    <logo>assets/images/banner3.png</logo>
    <style>
        <colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700</colors>
        <alpha>0.8</alpha>
    </style>
    <!-- replace the following url with your own geometryservice -->
    <geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" />

<splashpage label="HCGIS - GISMO" config="widgets/HCSplash/SplashWidget.xml" url="widgets/HCSplash/SplashWidget.swf"/>

    <!-- UI elements -->
    <widget left="10"  top="50"    config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
    <widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
    <widget right="20" top="55"    config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
    <widget left="0"   top="0"     config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>
   <widget left="2" bottom="100"   config="widgets/Coordinate/CoordinateWidget.xml" url="widgets/Coordinate/CoordinateWidget.swf" />
    <widget left="8"  top="20"     config="widgets/CoordinateMenu/CoordinateMenuWidget.xml" url="widgets/CoordinateMenu/CoordinateMenuWidget.swf"/>
  
    <map wraparound180="true" initialextent="2085843 231259 2359064 412466" fullextent="2085843 231259 2359064 412466" top="40">
     <!--<map wraparound180="true" initialextent="2135566 234908 2210024 289050" fullextent="-20000000 -20000000 20000000 20000000" top="40">-->
        <basemaps>   <!-- If adding another layer.  Must go in MapSwitcherWidget and add it there as well. -->
         <layer label="basemap" type="tiled" visible="true" icon="assets/images/i_basemap.png" url="http://maps.hamiltontn.gov/ArcGIS/rest/services/Base_Layers/MapServer"/>
            <layer label="aerial" type="tiled" visible="false" icon="assets/images/i_aerial.png" url="http://maps.hamiltontn.gov/ArcGIS/rest/services/Imagery_2010/MapServer"/>
            <layer label="topo" type="tiled" visible="false" icon="assets/images/i_topo.png" url="http://maps.hamiltontn.gov/ArcGIS/rest/services/Topo/MapServer"/>           
        </basemaps>
       
             <!-- <overviewmap type="dynamic" mode="dynamic">http://maps.hamiltontn.gov/ArcGIS/rest/services/Overview_Map/MapServer</overviewmap>
          <overviewmap right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"></overviewmap>-->
        <operationallayers>
             <!--<layer label="Demographics" type="tiled" visible="false" alpha="0.5"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServ...">
                <sublayer id="1" popupconfig="popups/PopUp_Demographics_BlockGroups.xml"/>
                <sublayer id="2" popupconfig="popups/PopUp_Demographics_Tracts.xml"/>
                <sublayer id="3" popupconfig="popups/PopUp_Demographics_Counties.xml"/>
                <sublayer id="4" popupconfig="popups/PopUp_Demographics_States.xml"/>
            </layer>
            <layer label="Boundaries and Places" type="tiled" visible="false"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places_Alternate/..."/>
            <layer label="Fires" type="feature" visible="false" alpha="1.0"
                   popupconfig="popups/PopUp_Fires.xml"
                   url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0"/>-->
                  
            <layer label="Cadastral" type="dynamic" visible="true" alpha=".5" url="http://maps.hamiltontn.gov/ArcGIS/rest/services/Cadastral/MapServer"/>
            <layer label="Layers" type="dynamic" visible="true" alpha="1" url="http://maps.hamiltontn.gov/ArcGIS/rest/services/Live/MapServer"/>
         <layer label="Labels" type="dynamic" visible="true" alpha="1" url="http://maps.hamiltontn.gov/ArcGIS/rest/services/Base_Labels/MapServer"/>
         <layer label="Parcel Annotation" type="dynamic" visible="false" alpha="1" url="http://maps.hamiltontn.gov/ArcGIS/rest/services/AssessorData/MapServer"/>    
                
        </operationallayers>
        <logoVisible>false</logoVisible>
   
    </map>

    <!-- widgets organized into widget containers that manage close/open etc -->
    <!-- supported layout property options: horizontal(default)|float|vertical|fix-->
    <widgetcontainer layout="float">
        <!--<widget label="Bookmarks"         left="430" top="90"
                icon="assets/images/i_bookmark.png"
                config="widgets/Bookmark/BookmarkWidget.xml"
                url="widgets/Bookmark/BookmarkWidget.swf"/>-->
        <widget label="Identify" left="80" top="400"
    icon="assets/images/i_identify_40.png"
    config = "widgets/HCIdentify/HCIdentify.xml"
    url="widgets/HCIdentify/HCIdentify.swf"/>
  <widget label="Find an address"   left="100" top="90"
                icon="assets/images/i_house.png"
                config="widgets/Locate/LocateWidget_World.xml"
                url="widgets/Locate/LocateWidget.swf"/>
  <widget label="Identify Zoning" left="80" top="100"
    icon="assets/images/i_RPA.png"
    config="widgets/HCZoningIdentify/HCZoningIdentifyWidget.xml"
    url="widgets/HCZoningIdentify/HCZoningIdentifyWidget.swf"/>
        <widget label="Search" left="80" top="280"
                icon="assets/images/i_search.png"
                config="widgets/Search/SearchWidget_Louisville.xml"
                url="widgets/Search/SearchWidget.swf"/>
        <widget label="Draw and Measure" left="60" top="400"
                icon="assets/images/i_draw2.png"
                config="widgets/Draw/DrawWidget.xml"
                url="widgets/Draw/DrawWidget.swf"/>
       <!--<widget label="Print" left="390" top="400"
                icon="assets/images/i_print.png"
                config="widgets/Print/PrintWidget.xml"
                url="widgets/Print/PrintWidget.swf"/>-->
       
  <widget label="Buffer" left="100" top="100"
    icon="assets/images/i_buffer_40.png"
    config="widgets/HCBuffer/HCBuffer.xml"
    url="widgets/HCBuffer/HCBuffer.swf"/>
  <widget label="Birds Eye" left="100" top="90"
    icon="assets/images/birdseye_40.png"
    config="widgets/HCBirdseye/HCBirdseye.xml"
    url="widgets/HCBirdseye/HCBirdseye.swf"/>
  <widget label="Street View" left="100" top="245"
          icon="assets/images/i_streetview_40.png"
          config="widgets/FrStreetView/FrStreetView.xml"
          url="widgets/FrStreetView/FrStreetView.swf"/>
   
  <!-- <widget label="Street View" left="100" top="245"
    icon="assets/images/i_streetview_40.png"
    config="widgets/HCStreetview/StreetviewWidget.xml"
    url="widgets/HCStreetview/HCStreetview.swf"/>--> 
  <widget label="Zillow" left="100" top="400"
    icon="assets/images/zillow_40.png"
    config="widgets/HCZillow/HCZillow.xml"
    url="widgets/HCZillow/HCZillow.swf"/>
  <widget label="Sex Offender"
    icon="assets/images/i_sexoffenders_40.png"
    config="widgets/HCSexOffender/HCSexOffenderWidget.xml"
    url="widgets/HCSexOffender/HCSexOffenderWidget.swf"/>
  <!--<widget label= "Traffic Camera"
       icon="assets/images/i_rss.png"
       config="widgets/GeoRSS/GeoRSSWidget.xml"
       url="widgets/GeoRSS/GeoRSSWidget.swf"/>-->
  <widget label="TDOT Smartway Camera" left="350" top="350"
    icon="assets/images/TDOT_40.png"
    config="widgets/HCRssFeeds/HCRssFeeds.xml"
    url="widgets/HCRssFeeds/HCRssFeeds.swf"/>
  <widgetgroup label="Print" icon="assets/images/i_print.png">
         <widget label="Complex Print" left="390" top="400"
           icon="assets/images/i_print.png"
           config="widgets/PrintMXD/MXDPrintWidget.xml"
           url="widgets/PrintMXD/MXDPrintWidget.swf"/>
      
         <widget label="Basic Print" left="390" top="150"
           icon="assets/images/i_print.png"
           config="widgets/HCPrint/myPrintWidget.xml"
           url="widgets/HCPrint/myPrintWidget.swf"/>  
        </widgetgroup>
      
         
        <!--
        <widget label="My first widget"
                icon="assets/images/i_widget.png"
                config="widgets/Samples/HelloWorld/HelloWorldWidget.xml"
                url="widgets/Samples/HelloWorld/HelloWorldWidget.swf"/>
        -->
    </widgetcontainer>

</configuration>[/HTML]
0 Kudos
by Anonymous User
Not applicable
Robert,
Do I need to change the WKID before execution of the coordinate widget?

Ray
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ray,

   The Coordinate widget is only built to work with WebMercator or WGS 1984 Geographic coordinate systems. There is no built in client side library for converting NAD_1983_StatePlane_Tennessee_FIPS_4100_Feet coordinates to Geographic coordinates. Are the values you are seeing not NAD_1983_StatePlane_Tennessee_FIPS_4100_Feet coordinates?
0 Kudos
by Anonymous User
Not applicable
Robert,
No the values are not Tennessee State Plain.  Here is a link to my dev site: Dev Site.  I am not sure what the coordinates are.  I was reading something online that it was a Global coordinate system.  Dont know if that is correct or not.

Ray
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ray,

   Everything based on your data says that those coordinates ARE Tennessee State Plain coordinates. When I take your ArcGIS Server data and add it to ArcMap those are the ranges of coordinates that are showing in ArcMap as well.
0 Kudos
by Anonymous User
Not applicable
Robert,
Can you tell me what coordinate system that the esri sample site is projected in?  http://resources.arcgis.com/en/help/flex-viewer/live/index.html?config=config-all.xml
I beleive that is the coordinate system that we need it in.

Thanks,
Ray
0 Kudos