<?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: Issues with Spatial Query in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issues-with-spatial-query/m-p/62490#M1559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;if you make a spatial query with a MapPoint, this MapPoint must be in the Geometry you want to query. So you can try very long until you reach the correct location to query another MapPoint in your service &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You could use a IdentifyTask. There you can specify a tolerance for your MapPoint. But you can't specify a definitionquery, so sometimes you can't use this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can make an Envelope out of your MapPoint,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Envelope e&amp;nbsp; = new Envelope();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.XMax = mappoint.x + 100;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.XMin = mappoint.x -100;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.YMax = mappoint.y + 100;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.YMin = mappoint.y - 100;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then specify this new envelope as querygeometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;not very nice, but works for points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for polylines, try to set the spatialRelationship to Crosses or something other than Contains. I didn't try it but it should work on this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hope it works&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 May 2010 16:16:22 GMT</pubDate>
    <dc:creator>BedaKuster</dc:creator>
    <dc:date>2010-05-20T16:16:22Z</dc:date>
    <item>
      <title>Issues with Spatial Query</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issues-with-spatial-query/m-p/62489#M1558</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´m having a problem now with the spatial query. When i select the point or Polyline tool to make a selection on my dynamiclayers, those only work with dynamiclayers that have a Polygon geometry. If you try layers with point or line geometry it doesn´t seems to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anybody knows the way to fix this problem, solve it, deal with it...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andres Osorio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 15:21:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issues-with-spatial-query/m-p/62489#M1558</guid>
      <dc:creator>AndresOsorio</dc:creator>
      <dc:date>2010-05-20T15:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Spatial Query</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issues-with-spatial-query/m-p/62490#M1559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;if you make a spatial query with a MapPoint, this MapPoint must be in the Geometry you want to query. So you can try very long until you reach the correct location to query another MapPoint in your service &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You could use a IdentifyTask. There you can specify a tolerance for your MapPoint. But you can't specify a definitionquery, so sometimes you can't use this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can make an Envelope out of your MapPoint,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Envelope e&amp;nbsp; = new Envelope();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.XMax = mappoint.x + 100;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.XMin = mappoint.x -100;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.YMax = mappoint.y + 100;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.YMin = mappoint.y - 100;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then specify this new envelope as querygeometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;not very nice, but works for points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for polylines, try to set the spatialRelationship to Crosses or something other than Contains. I didn't try it but it should work on this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hope it works&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 16:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issues-with-spatial-query/m-p/62490#M1559</guid>
      <dc:creator>BedaKuster</dc:creator>
      <dc:date>2010-05-20T16:16:22Z</dc:date>
    </item>
  </channel>
</rss>

