Select to view content in your preferred language

RelationParameter

861
9
03-21-2012 09:19 AM
GaryBushek
Deactivated User
Does anone know where to get the format for the Query/RelationParameter from?  i'm converting some old arcobjects code into the silverlight api format and below is what I have but I would like to know what the options are for RelationParameter.

query.SpatialRelationship = SpatialRelationship.esriSpatialRelRelation;
query.RelationParameter = "T********";
0 Kudos
9 Replies
JenniferNery
Esri Regular Contributor
0 Kudos
GaryBushek
Deactivated User
Jennifer,
   Thanks for your reponse to my question.  To say i'm more confused now would be an understatement I guess.  The example you pointed me to is for querying data from a "related" table and is executed using "queryTask.executeRelationshipQueryAsync(...)".  This is definitely not what i'm looking for.  Then there is the option to use the geometry service to determine the relation between input graphic geometries by executing "geometryService.RelationAsync(...)".  This also is not what i'm looking for.  What I need is to use the querytask and assigning a graphic geometry, spatial relationship type of "esriSpatialRelRelation" and a relation parameter to query a map service layer to return features by calling "queryTask.ExecuteAsync(...)".  The question i'm asking is, based on old arcObjects code where the developer used the relationship type of esriSpatialRelRelation, where is there documentation that explains how to use the "RelationParameter" attribute of the "ESRI.ArcGIS.Client.Tasks.Query" class.  This developer used "T********" as the value and I just need to see documetation on this to understand my options.  Hope this better explaines what i'm looking for.

Thanks, Gary
0 Kudos
ChrisBradberry
Deactivated User
0 Kudos
GaryBushek
Deactivated User
Chris,
   Thanks but this isn't quite what i'm asking.  I know what the relationship types are.  Im asking how the property specific to the type "esriSpatialRelRelation" called RelationParameter should be coded and specifically where this is documented. Somewhere, there should be documentation on this property but it could have been left out of this API's documetation since it is derived from an older ArcObjects concept.

Thanks, Gary
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Chris,
Thanks but this isn't quite what i'm asking. I know what the relationship types are. Im asking how the property specific to the type "esriSpatialRelRelation" called RelationParameter should be coded and specifically where this is documented. Somewhere, there should be documentation on this property but it could have been left out of this API's documetation since it is derived from an older ArcObjects concept.

Thanks, Gary


The REST API doesn't expose all ArcObjects concepts.
Concerning the spatial queries, you can still define the type of relationship but there is no more way to use the Shape Comparison language to define specific relationships that doesn't exist in the enumeration.
As Chris mentionned, the supported relationships are documented here.
0 Kudos
GaryBushek
Deactivated User
Dominique,
   I hate to be disagreeable but it absolutely does exist in the silverlight API because i'm using it.  Refering to my original post here I am specifying a spatialrelationship type of esriSpatialRelRelation and am assigning the value "T********" to the RelationParameter for said query.  What I have is a study area polygon that covers a region in NY and I am passing that geometry into a query task against a county layer to get all NY counties that fall within the study area boundary. This works passing me back 4 county features.  If I change "T********" by even one character the query task fails. Whether I could use a different relationship type to accomplish this is moot because it does work.  The code was extracted from an old 9.1 ADF app that ESRI wrote for a NY agency. I'm migrating the app to silverlight and reusing as much of the original logic as possible including this.  Like I said, it works, im just trying to find documentation on it. It would be nice to know how to manipulate queries using esriSpatialRelRelation.

Thanks, Gary
0 Kudos
GaryBushek
Deactivated User
this link might help me with my question.  I was just hoping this was documented in the silverlight api documentation somewhere since it does work in Silverlight.


http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriGeoDatabase/ISpatialFilter_SpatialRelDescrip...


thanks
0 Kudos
DominiqueBroux
Esri Frequent Contributor
I hate to be disagreeable but it absolutely does exist in the silverlight API because i'm using it. Refering to my original post here I am specifying a spatialrelationship type of esriSpatialRelRelation and am assigning the value "T********" to the RelationParameter for said query.

You are quite right. It's supported from ArcGIS Server 10 and I missed it.
Sorry about that.

We will try to complete the documentation in a future version.
Thanks.
0 Kudos
GaryBushek
Deactivated User
Thank you guys for trying to help.  It is much appreciated!!!!
0 Kudos