AnsweredAssumed Answered

Load WGS84 Local Shapefile and Display in Web Mercator Application

Question asked by geonetadmin on Nov 16, 2010
Latest reply on Apr 20, 2011 by geonetadmin
Original User: tbrophy

All,

I downloaded and am using �??Shape File Overlay for Sample Viewer�?� from the ArcGIS resource Center, submitted 3-4-2010 by �??HardWork�?�. It works great, but I need it go a step further.
�??�?�Shape File Overlay for Sample Viewer�?��?�
http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&scriptID=16846

I asked this in a previous forum but thought I would start a new thread. . .
(http://forums.arcgis.com/threads/8268-Load-Local-Shapefile-with-Symbology-and-Attributes)
------------------------------------------------------------------------------------------------------------------------------------

My application is in Web Mercator (102100). So every time my users want to use this tool, they need to convert their shapefile from WGS 1984 Geographic (4326) into Web Mercator (102100) in ArcMap first. Then, and only then, can the shapefile be converted into a graphic and shown in the WM application.

Can anyone show me a way to convert this programmatically?

The conversion would always be the same (4326) -- (102100).

********* My environment *********
Adapted Sample Flex Viewer: flexviewer-src-1.0.zip (Build 06.12.09)
agslib-1.2.swc
flex_sdk_3.2
Required Adobe Flash Player version 10
********* My environment *********

Any help would be greatly appreciated. Attached are my adjust files and one of my sample shapefiles in WGS 1984 Geographic (4326).

Outcomes