Select to view content in your preferred language

New Query Function in 1500

704
2
08-30-2010 10:49 AM
Yi-ChenYang
Emerging Contributor
Dear all,
  I tested the 1500 version and the New Query Function of the Featurelayer are cool!
  Just out of curiosity, can this Query function also preform on spatial query, such as "intersects" or "within"? 
  Or does the new SDK support this query function?
 
  Thanks a lot!

Ethan
0 Kudos
2 Replies
ShellyGill2
Regular Contributor
You might find the SDK offers what you need, as the API has always offered more ability for searching than the application itself, and it's still the case at 1500 - check out the Search method on the Table object (Table.Search method) - you can use a Filter with a query expression, or a spatial filter, or both. Spatial search methods supported by the API are: Contains, Crosses, EnvelopeIntersects, IndexIntersects, Intersects, Overlaps, Touches, Within, Undefined (not all apply to all shape types - full info in the Developer Help system for http://help.arcgis.com/en/arcgisexplorer/1500/sdk/componenthelp/index.html#//000300000m41000000). There's also a Table.SearchByDistance method in the API.
There's a conceptual topic you might might useful if you look at this - http://help.arcgis.com/en/arcgisexplorer/1500/sdk/conceptualhelp/index.html#/How_to_search_a_Table/0....

(I've included some links to topics in the online version of the developer help - note that there's a few issues with this new site at the moment - it's being fixed up, but you might find script error dialogs in IE (just OK them), or formatting issues - you should be able to read enough though.)
0 Kudos
ShellyGill2
Regular Contributor
Ach, I've seen this issue before, I've contacted someone about how to resolve it, but for now, I would be happy to email you the file - you can reach me at sgill@esri.com.
0 Kudos