Select to view content in your preferred language

Different projections for routing and base map

426
1
07-08-2011 10:07 AM
JoannaLaroussi
Emerging Contributor
I combined together three samples:
Routing http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Routing
Driving directions http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#RoutingDirections
Reverse geocoding http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LocationToAddress
in order to make a routing tool, which uses my own network dataset. The route is created from points �??clicked�?? by user on the map; after geocoding points, the shortest path between them is created and later there are displayed turn by turn directions. Everything works fine besides distance measurements. All displayed distanced represents about 1/3 of real distance and I learned that this is due to different projections. On the daily basic I am using NAD_1983_StatePlane_New_York_Long_Island_FIPS_3104_Feet projection, but in order to overlay my network dataset with other data in the web application I had to reproject it to WGS_1984_Web_Mercator_Auxiliary_Sphere.  An article http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2010/03/05/Measuring-distances-and-areas-when-y...
tells that �??you don't have to perform your measurements in the same coordinate system used by the map. When a user submits a geometry to your application for measurement, you can re-project that geometry into a more appropriate coordinate system for measurement. The re-projected geometry is used internally for measurement only; you don't display it on the map. Once the measurement is complete, you return the correct result to the user.�?�  I am looking for some guidance how exactly reproject my points/route into NAD 1983 to receive right measurement and in the same time have a graphic output of route, which will overlay with my WGS 1984 base maps.
0 Kudos
1 Reply
JoannaLaroussi
Emerging Contributor
Somebody from Network analyst forum suggested vey neat solution without writing thousand lines of code:
http://forums.arcgis.com/threads/34288-Different-distance-in-different-projections?p=115830#post1158...
0 Kudos