<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GeometryService.ProjectAsync returning unexpected geometries in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geometryservice-projectasync-returning-unexpected/m-p/45188#M1253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are the params sent to the Geometry Service (from Fiddler):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;inSR: 102100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outSR: 32023&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;geometries: -9175820.91612625,4809507.24918867&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;f: json&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and the results from the service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "geometryType" : "esriGeometryPoint", &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "geometries" : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "x" : 2020297.96773847, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "y" : 586571.411815907&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks to be same results I was getting in the application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The results are the same from the sample service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Dec 2010 18:53:01 GMT</pubDate>
    <dc:creator>KevinSchumm</dc:creator>
    <dc:date>2010-12-15T18:53:01Z</dc:date>
    <item>
      <title>GeometryService.ProjectAsync returning unexpected geometries</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geometryservice-projectasync-returning-unexpected/m-p/45186#M1251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a map that has a spatial reference with a WKID of 32023. We're using the Bing layer, so I've set the Map in the silverlight app's spatial reference to 102100 to make them play together. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're also using the the FeatureService to save features. So in order to save the features correctly, I'm attempting to use the GeometryService to project the geometry to the correct spatial reference. However, when I do this I'm finding that the coordinates aren't exact, so the new feature doesn't display on the map as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got a point that, when the Bing layers are removed, looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;X: 2020341.1106&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Y: 586583.9612&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WKID: 32023&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the Bing layer is on and I've set the spatial reference to 102100, the point looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;x:-9175820.9161&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Y:4809507.2491&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WKID:102100&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm attempting to add a feature in that exact position, so I take those coordinates and then use the GeometryService to project them to WKID: 32023 with the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;GeometryService service = new GeometryService("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ourserver/ArcGIS/rest/services/Geometry/GeometryServer" rel="nofollow" target="_blank"&gt;http://ourserver/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;service.ProjectAsync(new List&amp;lt;Graphic&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; new Graphic&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Geometry = point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; new SpatialReference&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; WKID = 32023&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where "point" is the above referenced MapPoint with WKID: 102100.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I get back is a MapPoint that looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;X: 2020297.9677&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Y: 586571.4118&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WKID: 32023&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it's close, but close isn't cutting it for me. Would anyone have any advice on what I might doing wrong or what I should do instead?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 18:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geometryservice-projectasync-returning-unexpected/m-p/45186#M1251</guid>
      <dc:creator>KevinSchumm</dc:creator>
      <dc:date>2010-12-15T18:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryService.ProjectAsync returning unexpected geometries</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geometryservice-projectasync-returning-unexpected/m-p/45187#M1252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You get the same results when you perform the project from the web browser?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Replace this with your own Geometry Service URL: &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/project"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/project&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or compare the results from SL app, your Geometry Service and Sample Server 3 Geometry Service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get the actual parameters using Fiddler: (Post #14 in this thread)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/14730-Area-And-Perimeter"&gt;http://forums.arcgis.com/threads/14730-Area-And-Perimeter&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 18:39:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geometryservice-projectasync-returning-unexpected/m-p/45187#M1252</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-12-15T18:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryService.ProjectAsync returning unexpected geometries</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geometryservice-projectasync-returning-unexpected/m-p/45188#M1253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are the params sent to the Geometry Service (from Fiddler):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;inSR: 102100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outSR: 32023&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;geometries: -9175820.91612625,4809507.24918867&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;f: json&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and the results from the service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "geometryType" : "esriGeometryPoint", &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "geometries" : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "x" : 2020297.96773847, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "y" : 586571.411815907&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks to be same results I was getting in the application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The results are the same from the sample service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 18:53:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geometryservice-projectasync-returning-unexpected/m-p/45188#M1253</guid>
      <dc:creator>KevinSchumm</dc:creator>
      <dc:date>2010-12-15T18:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryService.ProjectAsync returning unexpected geometries</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geometryservice-projectasync-returning-unexpected/m-p/45189#M1254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for sharing this information with us. I asked the REST API team about this and here's the reply I got:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Geometry service project operation via REST does not support datum transformation.&amp;nbsp; In the case when a transformation is not provided to the geometry service project method, only 3 default transformations are used. Please see&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_cpp/componenthelp/index.html#//000w00000205000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_cpp/componenthelp/index.html#//000w00000205000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For transformation between WGS1984 to NAD_1927, the default transformation used is:&lt;BR /&gt;esriSRGeoTransformation_NAD1927_To_WGS1984_4, forward and reverse, WKID = 1173&lt;BR /&gt;&lt;BR /&gt;There are ~30 or so different transformations that can be applied for transformation between WGS1984 and NAD1927 and the results will vary depending upon which one is used. If the user is referencing the expected output based on transformation other than esriSRGeoTransformation_NAD1927_To_WGS1984_4, then the results returned by the project operation will be different.&lt;BR /&gt;&lt;BR /&gt;One suggestion I have for this user is to edit/add the feature directly in 102100. Feature service will be able to store the geometry in 32023 and will use the default transformation that is set in the map.&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have further questions about this, please post in their forum. &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/forums/11-ArcGIS-Server-REST-API"&gt;http://forums.arcgis.com/forums/11-ArcGIS-Server-REST-API&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 20:00:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/geometryservice-projectasync-returning-unexpected/m-p/45189#M1254</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-12-15T20:00:25Z</dc:date>
    </item>
  </channel>
</rss>

