Hi there,
prior to this new application I'm writing, I've primarily used Identify query to discover various layers on the map. For example, when a user clicks anywhere on the map, the results return what "assets" (hydrants, parcels etc) were discovered on that coordinate. Then I'd access the Attribute property to display details about those assets.
My new application still does those things, but this time I need to be able to make query on an area instead of just a point. So, I'd draw a rectangle, polygon, polyline etc, and that query would return all the assets discovered within that area. Now for this case, I have given spatial query a shot. It does return the results, but it's a bit difficult to expose the Attribute property onto the datagrid the way I want.
I find Identify query a bit simpler in the sense that I can make one query to include multiple layers at the same time. But if I used Spatial Query, I'd have to make queries to the layers individually (...MapServer/{Layer Number}). I haven't really tried other kinds of queries, but I have fair understanding of what they do. Either way, what do you think is the best practice for what I'm trying to achieve? What query type should I use? Or should I try to combine them?
Thank you