So I am doing a pretty simple process that looks a lot like right out of the SOAP API/SDK for AGS10.
My webservices takes a Lat/Lon coord from a mobile app, I reproject it to Web-Mercator to identify against my mapservice data and return a result. Pretty simple, but for some reason that I am not seeing any place, the project method is returning blank, no exception raised, no errors on the server/service side.
SpatialReference inputSpatialReference = new GeographicCoordinateSystem();
inputSpatialReference.WKID = 4326; //WGS 84
inputSpatialReference.WKIDSpecified = true;
PointN llPnt = new PointN { X = lon, Y = lat, Z = 0 };
llPnt.SpatialReference = inputSpatialReference;
SpatialReference outputSpatialReference = new ProjectedCoordinateSystem();
outputSpatialReference.WKID = 3857; //Web Mercator (Auxiliary Sphere)
outputSpatialReference.WKIDSpecified = true;
Geometry[] inputGeometry = new Geometry[] { llPnt };
bool transformForward = false;
GeoTransformation transformation = new GeoTransformation();
// NAD1983_To_WGS1984_1
transformation.WKID = 108100;
transformation.WKIDSpecified = true;
EnvelopeN extent = null;
Geometry[] outputGeometry = geometryService.Project(inputSpatialReference, outputSpatialReference,
transformForward, transformation, extent,
inputGeometry);
PointN wmPnt = outputGeometry[0] as PointN;
Now; when my defining my points works great; I am able to see the point, my X, Y and Z values as well as my existing coordinate system look great. So I define where my coordinates are going, to, define my transformation since I need to get from Lat/Lon to WebMercator and then after that, fire the GeometryService.Project call.
Now when I look at the output in the debugger of the outputGeometr the point is blank; not even the existing coordinates the new point is null.
So I look to the server, to see what it says; no errors listed, so I am very puzzled.
Any thoughts or suggestions?