<?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: Returning XY Event Source Graphics With Query Task in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722040#M18522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got the answer on the Server REST API forum from Ravi Narayanan (ESRI):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;SP2 schedule is around April 2011.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a long time to wait, but we do not have a choice!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Dec 2010 10:35:08 GMT</pubDate>
    <dc:creator>PaulHuppé</dc:creator>
    <dc:date>2010-12-20T10:35:08Z</dc:date>
    <item>
      <title>Returning XY Event Source Graphics With Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722029#M18511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a service that contains an XY Event Source layer.&amp;nbsp; When I use a Query Task, to interrogate the service, for that layer, it only returns attribute data and not the graphics, in my case, points.&amp;nbsp; Is there a way for the Query Task to return the graphics as well for this type of layer.&amp;nbsp; Or, am I stuck having to get the XY values from the attribute data and recreate the points on the Graphics Layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even worse, if I use the Identify Task to interrogate that same service/layer, nothing gets returned!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 16:21:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722029#M18511</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2010-12-14T16:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Returning XY Event Source Graphics With Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722030#M18512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Go to the REST services directory, navigate to the service and then to the layer in question, and see if the Shape field is in there. Maybe the Shape field was not selected in the .mxd file and that's why you can get geometry back, and run spatial queries. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is, try running a query in there to see what results you will get. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is not in there, open the .mxd file, open the properties of the event layer, go to the Fields tab, and check the shape field. Save the document, restart the service, clear the REST cache, and try again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 16:53:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722030#M18512</guid>
      <dc:creator>DarinaTchountcheva</dc:creator>
      <dc:date>2010-12-14T16:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Returning XY Event Source Graphics With Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722031#M18513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Shape field is there. I tried running a query with the REST interface, and got results back looking like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# results: 1000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;65034&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Point:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;X: -62.233333&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Y: 41.4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;65034&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Point:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;X: -62.516666&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Y: 42.0000000000001&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.......&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, it seems to return points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just found my problem!!!!&amp;nbsp; In my code, as was treating the results as polygons instead of points!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 17:22:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722031#M18513</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2010-12-14T17:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Returning XY Event Source Graphics With Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722032#M18514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do get points back, but they do not display in the correct location.&amp;nbsp; In the MXD, for the Coordinate System of the Data Frame, I selected Canada Lambert Conformal Conic as the projection (WKID=102002) and when I call the query task, I specify the OutputSpatialReference to be equal to the Map.SpatialReference.&amp;nbsp; I verified with the debugger, and the Map.Spatialreference.WKID is equal to 102002.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The original XY event source data's coordinates are in lat/long and it that is currently what gets returned.&amp;nbsp; They do not get projected to the specified OutputSpatialReference desired and therefore, the graphics do not show in the proper locations.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 13:52:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722032#M18514</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2010-12-15T13:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Returning XY Event Source Graphics With Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722033#M18515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To show the results, I have made a screen capture (see attachment).&amp;nbsp; When I select points from the XY event layer data, the selected result points all end up one on top of the other at the same location.&amp;nbsp; See near the arrow at the bottom of the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 11:36:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722033#M18515</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2010-12-16T11:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Returning XY Event Source Graphics With Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722034#M18516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As long as your REST end point is returning geographical coordinates, you will run into this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At this time, I have no clue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try a web request like this one (after changing the url to your layer):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://serverapps.esri.com/ArcGIS/rest/services/California/MapServer/2/query?text=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;where=1%3D1&amp;amp;returnGeometry=true&amp;amp;outSR=102002&amp;amp;outFields=&amp;amp;f=html"&gt;http://serverapps.esri.com/ArcGIS/rest/services/California/MapServer/2/query?text=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;where=1%3D1&amp;amp;returnGeometry=true&amp;amp;outSR=102002&amp;amp;outFields=&amp;amp;f=html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You should get non geographical coordinates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: a workaround might be you to use a map in geographical coordinates, so a TiledMapServiceLayer using a geographical spatial reference.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 13:09:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722034#M18516</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-12-16T13:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Returning XY Event Source Graphics With Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722035#M18517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried to do a query like you suggested and still get lat/longs.&amp;nbsp; The url was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
http://myservernamehere.mydomain/ArcGIS/rest/services/TestGeology/MapServer/0/query?text=&amp;amp;geometry=%7B%22xmin%22%3A359116.578934065%2C%22ymin%22%3A3862731.70544748%2C%22xmax%22%3A401068.487002091%2C%22ymax%22%3A3890699.6441595%2C%22spatialReference%22%3A%7B%22wkid%22%3A102002%7D%7D&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=102002&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;objectIds=&amp;amp;where=&amp;amp;time=&amp;amp;returnCountOnly=false&amp;amp;returnIdsOnly=false&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;outSR=102002&amp;amp;outFields=PHOTO_NUM%2CPHOTO_LAT%2CPHOTO_LONG&amp;amp;f=html
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And the result is shown in the attachment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:53:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722035#M18517</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2021-12-12T06:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Returning XY Event Source Graphics With Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722036#M18518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Strange:confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, I can't help more. Could it be an event layer projection limitation? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try asking in the REST API or Server forums, perhaps more luck.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 13:38:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722036#M18518</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-12-16T13:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Returning XY Event Source Graphics With Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722037#M18519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I agree, very strange!:confused:&amp;nbsp; I will try those forums as you suggest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 13:48:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722037#M18519</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2010-12-16T13:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Returning XY Event Source Graphics With Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722038#M18520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After asking my question on the ArcGIS Server - REST API forum, it looks like it is a known bug.&amp;nbsp; Here is the response from Ravi Narayanan (ESRI):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This sounds related to this bug in MapServer (NIM051154) &lt;BR /&gt;&lt;A href="http://resources.arcgis.com/content/...D=TklNMDUxMTU0"&gt;http://resources.arcgis.com/content/...D=TklNMDUxMTU0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Does the query return correct results if a spatial filter is not used and if a WHERE clause is used? If so, then it is related to the above issue which will be addressed in 10.0 SP2.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tested with REST using only a WHERE clause and no spatial filter, and the results do come back with projected coordinates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The big question now is: &lt;/SPAN&gt;&lt;STRONG&gt;when is 10.0 SP2 coming out&lt;/STRONG&gt;&lt;SPAN&gt;???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 10:44:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722038#M18520</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2010-12-17T10:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Returning XY Event Source Graphics With Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722039#M18521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that question will be best answered by Server REST API team &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;SPAN&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 18:57:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722039#M18521</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-12-17T18:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Returning XY Event Source Graphics With Query Task</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722040#M18522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got the answer on the Server REST API forum from Ravi Narayanan (ESRI):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;SP2 schedule is around April 2011.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a long time to wait, but we do not have a choice!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 10:35:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/returning-xy-event-source-graphics-with-query-task/m-p/722040#M18522</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2010-12-20T10:35:08Z</dc:date>
    </item>
  </channel>
</rss>

