<?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: Related Table Queries in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554668#M14234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response.&amp;nbsp; It looks like FindGraphicsInHostCoordinates() would work for instances where the user specifies a rectangle as an area of interest, but if they wanted a polygon or a circle (i.e. radius from an incident point) then I guess it's sounding like I have to do something like my Method 2 from above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A few questions...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a reason why a spatial filter can't be applied to a related query?&amp;nbsp; Will there be support for this in the future?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even better, are there plans for other client-side geometry operations for the Silverlight API?&amp;nbsp; I know that the ArcGIS API for Android has a GeometryEngine class with very helpful methods such as contains() and crosses() that can take any type of geometries as input, but so far I haven't come across any of its counterparts in Silverlight.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2012 19:00:29 GMT</pubDate>
    <dc:creator>JasonKnisley</dc:creator>
    <dc:date>2012-01-18T19:00:29Z</dc:date>
    <item>
      <title>Related Table Queries</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554664#M14230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to query related tables and finding the process cumbersome.&amp;nbsp; I'm hoping someone can shed light on a better way to accomplish this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;General scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a collection of layers (lets say 5 for this example) for various structures, and a single table of special equipment that is related to all 5 layers.&amp;nbsp; Entries in the equipment table have no specific spatial component since Equipment Type A may be located in a number of places across the 5 layers to which it is related.&amp;nbsp; A user wants to find locations for equipment that matches certain parameters (the specific equipment model doesn't matter as long as it meets height and weight requirements, for example).&amp;nbsp; Within the current API I see a few possible methods to accomplish this, but all of them present problems.&amp;nbsp; Hopefully there is a much easier solution that I am missing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Method 1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Query the equipment table first to find all equipment that matches the specified parameters.&amp;nbsp; Then use those object ids in a RelationshipParameter to perform 5 more queries (one for each layer) to get features related to the equipment.&amp;nbsp; Unfortunately, even though I'm preforming a related query against layers with geometry, for some reason the API doesn't seem to allow for a spatial filter at this point, so now I assume I have to call a GeometryService for each result in order to determine which final locations are actually within the user specified boundary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Total cost:&amp;nbsp; 6 queries (1 to the table + 5 to the associated layers) + 5 geometry service calls&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Disadvantage:&amp;nbsp; There is no good way to apply a spatial filter, and resources are wasted by obtaining full sets of results and the relying on several geometry service calls to obtain the final data set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Method 2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the previous method makes it complicated to apply a spatial filter in any of the queries, an alternate solution is to query the layers first, with the result of 5 different feature sets that are within the user specified boundary.&amp;nbsp; With each feature set I can make a related query where the DefinitionExpression includes the equipment-related parameters for further filtering.&amp;nbsp; I then compile each of the separate results into a single result set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Total cost:&amp;nbsp; 10 queries&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Disadvantage:&amp;nbsp; A large number of queries are needed... the equipment table must now be queried 5 times instead of just once.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Method 3:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the same strategy as the first method, and query the equipment table first.&amp;nbsp; However, instead of using a RelationshipParameter and executing a RelationshipQuery against each of the 5 layers, execute a regular query (with the appropriate spatial filter) against each of the 5 layers and programmatically define the relationships.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Total cost:&amp;nbsp; 6 queries&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Disadvantage:&amp;nbsp; Essentially ignore relationships defined in ArcGIS and instead hard code relationships.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would all be much easier if there was a way to apply a spatial filter to a related query.&amp;nbsp; Is there a way to accomplish this that I'm simply missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If looking at actual services help to visualize this problem, consider the services at &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSPetro/MapServer"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSPetro/MapServer&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; Let's say that the Tops table was related to 5 different layers, and a user wants to find locations in any layer (but within a specific boundary) where ELEVATION &amp;gt; x.&amp;nbsp; What, if any, is an effective way to accomplish this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 15:14:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554664#M14230</guid>
      <dc:creator>JasonKnisley</dc:creator>
      <dc:date>2012-01-18T15:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Related Table Queries</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554665#M14231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;FeatureLayer (and QueryTask) support spatial filter through its Geometry property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's are few examples: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer.Geometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerFiltering" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerFiltering&lt;/A&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer ID="SpatialFilterFeatureLayer"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/3" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Renderer="{StaticResource MySimplePolygonRenderer}"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;&amp;lt;esri:FeatureLayer.Geometry&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Envelope XMin="-100" YMin="42" XMax="-95" YMax="47" &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Envelope.SpatialReference&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SpatialReference WKID="4326"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Envelope.SpatialReference&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Envelope&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer.Geometry&amp;gt;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Query.Geometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery&lt;/A&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Query query = new ESRI.ArcGIS.Client.Tasks.Query();

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Specify fields to return from query
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.OutFields.AddRange(new string[] { "STATE_NAME", "SUB_REGION", "STATE_FIPS", "STATE_ABBR", "POP2000", "POP2007" });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;query.Geometry = args.Geometry;&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Return geometry with result features
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.ReturnGeometry = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.OutSpatialReference = MyMap.SpatialReference;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.ExecuteAsync(query);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:58:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554665#M14231</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T23:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Related Table Queries</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554666#M14232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't see how those can be used in this case, however.&amp;nbsp; Consider the Tops table for example (&lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSPetro/MapServer/2" rel="nofollow noopener noreferrer" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSPetro/MapServer/2&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp; It has no geometry directly associated with it, and if you try to query it with a spatial filter you get an error.&amp;nbsp; It's spatial information is actually obtained by performing a related query on the Wells layer, providing the object ids for the Tops that you are interested in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a more concrete example, say that I want to find all of the Tops locations where FORMATION = 'Heebner Shale Member', but I'm only interested in an area bounded by -75, 0, 0, 30 (spatial reference 4267).&amp;nbsp; This is just an arbitrary boundary within the full extent of the Wells layer, but in real life users are often only interested in areas that are a subset of the full extent of a layer.&amp;nbsp; How can I go about this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Relating to the first two methods I described above, here are the solutions (and problems) that I see.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Method 1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start by querying Tops...&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Query query = new Query() { Where = "FORMATION = 'Heebner Shale Member'" };&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I have a bunch of results with no geometry because the table has no geometry.&amp;nbsp; That's fine, it's a related table, I can get the geometry from a relationship query.&amp;nbsp; The problem is that in the relationship query, while I can get results with geometry, I can't apply a spatial filter as part of the relationship query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the QueryTask_ExecuteCompleted for my Tops query, I can do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;RelationshipParameter relationshipParameter = new RelationshipParameter() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; ObjectIds = (List&amp;lt;int&amp;gt;)e.FeatureSet.ObjectIDs,
&amp;nbsp;&amp;nbsp;&amp;nbsp; RelationshipId = 3,
&amp;nbsp;&amp;nbsp;&amp;nbsp; OutFields = new String[] { "*" }
};&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;but now I still have results from the full extent of the Wells layer, rather than the spatial boundary that I am interested in, and in the Silverlight API I don't know of a good way to perform the filter from this point.&amp;nbsp; Note that if there are multiple related layers, a separate relationship query must be performed for each.&amp;nbsp; This takes a total of 1 + n queries, where n is the number of layers related to the table of interest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Method 2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start by querying Wells... (in my real life example this means a separate query for each layer related to the table of interest).&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Query query = new Query() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; Geometry = spatialFilter&amp;nbsp; // user specified boundary
&amp;nbsp;&amp;nbsp;&amp;nbsp; ReturnGeometry = true
};
query.OutFields.Add("OBJECTID");&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I have all of the Well features within the boundary, but the user doesn't really care about this.&amp;nbsp; They want to know the locations where Tops FORMATION = 'Heebner Shale Member', so I do a related query against wells (and again in real life this involved a separate query for each related layer).&amp;nbsp; So, for each layer I do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;RelationshipParameter relationshipParameter = new RelationshipParameter() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; ObjectIds = (List&amp;lt;int&amp;gt;)e.FeatureSet.ObjectIDs,
&amp;nbsp;&amp;nbsp;&amp;nbsp; RelationshipId = 3,
&amp;nbsp;&amp;nbsp;&amp;nbsp; DefinitionExpression = "FORMATION = 'Heebner Shale Member'",
&amp;nbsp;&amp;nbsp;&amp;nbsp; OutFields = new String[] { "*" }
};&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;As a result I now get a RelatedRecordsGroup which is of type IDictionary&amp;lt;int,IEnumerable&amp;lt;Graphic&amp;gt;&amp;gt;, but since none of these graphics have geometry I have to iterate through each of them and set their geometry based on the results of the original query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The total number of queries that it takes to perform this search is 2*n where n is the number of layers related to the table of interest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In both cases I'm also wasting resources by returning geometry for features that I don't care about.&amp;nbsp; In Method 1 I'm returning geometry for only those features with Tops FORMATION = 'Heebner Shale Member' but those features are for the entire extent of the layer rather than the smaller extent of interest.&amp;nbsp; In Method 2 I'm returning geometry for only those features in the extent of interest, but I will still end up discarding all of them except where Tops FORMATION = 'Heebner Shale Member'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If a RelationshipParameter was able to take a spatial filter then I could apply Method 1 while still making relatively efficient use of resources.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Going back to the problem with method 1, where the results I am given span the entire extent since I can't specify Geometry for a RelationshipParameter, how can I go about applying a spatial filter to those results?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:58:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554666#M14232</guid>
      <dc:creator>JasonKnisley</dc:creator>
      <dc:date>2021-12-11T23:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Related Table Queries</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554667#M14233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This seem related thread: &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/forums.arcgis.com/threads/8680-FeatureLayer-and-SpatialRelationship-for-selection-geometry"&gt;forums.arcgis.com/threads/8680-FeatureLayer-and-SpatialRelationship-for-selection-geometry&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The RelationshipResult can be filtered by geometry from the client API using FindGraphicsInHostCoordinates() or Intersects(). See post# 4 in this thread: &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/forums.arcgis.com/threads/43496-Select-and-Delete-feature-overlapped-polygon-problem"&gt;forums.arcgis.com/threads/43496-Select-and-Delete-feature-overlapped-polygon-problem&lt;/A&gt;&lt;SPAN&gt;. These are the client-side operations.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 18:36:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554667#M14233</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-01-18T18:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Related Table Queries</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554668#M14234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response.&amp;nbsp; It looks like FindGraphicsInHostCoordinates() would work for instances where the user specifies a rectangle as an area of interest, but if they wanted a polygon or a circle (i.e. radius from an incident point) then I guess it's sounding like I have to do something like my Method 2 from above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A few questions...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a reason why a spatial filter can't be applied to a related query?&amp;nbsp; Will there be support for this in the future?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even better, are there plans for other client-side geometry operations for the Silverlight API?&amp;nbsp; I know that the ArcGIS API for Android has a GeometryEngine class with very helpful methods such as contains() and crosses() that can take any type of geometries as input, but so far I haven't come across any of its counterparts in Silverlight.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 19:00:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554668#M14234</guid>
      <dc:creator>JasonKnisley</dc:creator>
      <dc:date>2012-01-18T19:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Related Table Queries</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554669#M14235</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;there were some client side geometry methods added at the 2.3 release &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/2.3/help/index.html#/What_s_new_in_2_3/0166000000mm000000/"&gt;http://help.arcgis.com/en/webapi/silverlight/2.3/help/index.html#/What_s_new_in_2_3/0166000000mm000000/&lt;/A&gt;&lt;SPAN&gt; though at the moment it only supports a subset of operations. Also some geometry types have some spatial operations such as Envelope -&amp;gt; intersection, union etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should be possibe to create your own helper methods though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 19:16:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554669#M14235</guid>
      <dc:creator>DaveTimmins</dc:creator>
      <dc:date>2012-01-18T19:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Related Table Queries</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554670#M14236</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;forgot to add this example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;public static bool Contains(this Envelope envelope, Envelope contained)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (envelope == null || contained == null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!envelope.SpatialReference.Equals(contained.SpatialReference))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (envelope.XMin &amp;lt;= contained.XMin &amp;amp;&amp;amp; envelope.XMax &amp;gt;= contained.XMax &amp;amp;&amp;amp; envelope.YMin &amp;lt;= contained.YMin)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return envelope.YMax &amp;gt;= contained.YMax;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:58:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/related-table-queries/m-p/554670#M14236</guid>
      <dc:creator>DaveTimmins</dc:creator>
      <dc:date>2021-12-11T23:58:20Z</dc:date>
    </item>
  </channel>
</rss>

