How to correct displacement between ArcGISDynamicMapServiceLayer and Bing Map

1314
10
Jump to solution
01-23-2013 12:47 AM
ValeryOsipov
New Contributor III
Hello, could you help me to combine to layers?

Background is esri.virtualearth.VETiledLayer.MAP_STYLE_AERIAL

Red lines are from esri.layers.ArcGISDynamicMapServiceLayer(""http://maps.rosreestr.ru/ArcGIS/rest/services/CadastreNew/Cadastre/MapServer"");

Backround shifts approximattely 4.6 meters to north and 2.7 meters to east

[ATTACH=CONFIG]20990[/ATTACH]
0 Kudos
1 Solution

Accepted Solutions
ValeryOsipov
New Contributor III
veTileLayer.tileInfo.Origin.X -= 5; // shift Bing layer for 5 meters to left

View solution in original post

0 Kudos
10 Replies
JohnGravois
Frequent Contributor
since both layers are published in web mercator (wkid:102100), its too late to correct their current alignment.  you would have to make changes to the published service (probably with regard to the datum transformation) in order to acheive higher accuracy.

what was the original projection of the data you are using for boundaries in your own service?
what transformation method was used when reprojecting to Web Mercator?
where (city/country) is your screenshot located?
0 Kudos
ValeryOsipov
New Contributor III
what was the original projection of the data you are using for boundaries in your own service?
what transformation method was used when reprojecting to Web Mercator?


We work with local coordinate system, called SK-32. I heard, that it was build on Bessel ellipsoid, but i dont know what it means.
rosreestr.ru is goverment service.
Hope that is the information, you asked for.


where (city/country) is your screenshot located?
Russia, Bryansk
0 Kudos
JohnGravois
Frequent Contributor
well... its definitely too late to try and correct misalignment after both services are published in Web Mercator (WKID:102100).  in order to troubleshoot it will be necessary to identify which datum transformation was applied when reprojecting out of the local coordinate system and see if there is a more appropriate choice.
0 Kudos
ValeryOsipov
New Contributor III
So, only map service owner can correct it, it's not possible to do it with javascript API, did i understand you correctly?
0 Kudos
JohnGravois
Frequent Contributor
correct.  Our API does not give you the ability to manipulate the alignment of two services published in an identical coordinate system.
0 Kudos
ValeryOsipov
New Contributor III
Solved problem by changing VETiledLayer's origin.
0 Kudos
JohnGravois
Frequent Contributor
awesome fix! 

i dont see any properties or methods in our API for VETiledLayer related to origin.  would you be able to explain in a little more detail how you made the change?
0 Kudos
ValeryOsipov
New Contributor III
veTileLayer.tileInfo.Origin.X -= 5; // shift Bing layer for 5 meters to left
0 Kudos
JohnGravois
Frequent Contributor
very cool.  thanks for taking the time to explain in detail.
0 Kudos