How to project an ArcGISTiledMapServiceLayer (Spatial Reference)?

720
4
06-14-2010 05:51 AM
PierrePOLET
New Contributor
Hi,

i have an ArcGISTiledMapServiceLayer that's loading a rest service with a spatial reference of "NTF_Lambert_Zone_I" (France)

I want to use the bing map geocoder (WKID=4326).

There is a code snippet to project a GraphicLayer, but i can't get a Graphic from an ArcGISTiledMapServiceLayer (?)

So how can i project an ArcGISTiledMapServiceLayer into 4326 please?

Regards,

PP
0 Kudos
4 Replies
DominiqueBroux
Esri Frequent Contributor
An ArcGISTiledMapServiceLayer can't be projected. The images are precalculated for a fixed spatial reference and are stored in a cache on the server side.

In your case, you could either manage the projection by code on the client side (here is an example : http://sqlspatialtools.codeplex.com/SourceControl/changeset/view/23749#254994), or write your own service on the server side to convert the coordinates.
0 Kudos
PierrePOLET
New Contributor
Thx,

so no easy way to merge 2 layers with different projection?

If i add a map from argisonline or bing maps (4326) and a map from my argis server (Lambert), the map control cannot merge them to a same projection?

:eek:
0 Kudos
dotMorten_esri
Esri Notable Contributor
Correct. Because the world looks "different" in the two projections, the maps won't align on top of each other.
Think of a projection as a "unit". It's like mixing meters and miles without re-calculating them to be in the the same units first.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Just a probably obvious precision :

so no easy way to merge 2 layers with different projection?


Correct, with 2 tiledMapservice layers.
There is no problem with FeatureLayers and DynamicMapServiceLayers since the projection is done on the fly on the server side.
0 Kudos