Datum transformation using 10.1 Geometry service

576
2
03-15-2013 06:42 AM
KarlBarker-Ottley
New Contributor
Hi,

I'm wondering whether anyone can help me apply a data transformation on some co-ordinates?

The input co-ordinate will be in BNG (WKID 27700) but I need to plot it on a service using tiled map services in Web-Mercator (WKID 102100). I use the following transformation in ArcGIS Desktop: OSGB_1936_To_WGS_1984_Petroleum - I understand that datum transformations are possible using the 10.1 Geometry service? I code my applications in Flex, so if anyone can offer some advice or guidance here, it would be appreciated.

Thanks,
Karl
Tags (2)
0 Kudos
2 Replies
nicogis
MVP Frequent Contributor
yes, in 10.1 was added see http://resources.arcgis.com/en/help/rest/apiref/project.html
you can see two new parameters: transformation for your wkid or enumerator esri and transformForward: a boolean indicating whether to transform forward or not. If you need code flex you can post on forum flex ( http://forums.arcgis.com/forums/18-ArcGIS-API-for-Flex )
0 Kudos
KarlBarker-Ottley
New Contributor
Following this on - many thanks to ESRI support here. The following code can fix this:

var datumTransform: DatumTransform = new DatumTransform();
datumTransform.wkid = 1314;
datumTransform.wkt = "OSGB_1936_To_WGS_1984_Petroleum";
projectParameters.datumTransform = datumTransform;
projectParameters.transformForward = false;
0 Kudos