Select to view content in your preferred language

Enhanced Search Widget for FlexViewer 2.3

1165
5
Jump to solution
04-27-2011 04:21 AM
by Anonymous User
Not applicable
Original User: xander

Hi Robert.

In certain scenarios I am getting the error faultstring= unable to complete operation; faultcode=400;faultdetail: unabale to complete query operation when i attempt to perform spatial searches (intersected by or contained in). It seems somewhat random, but I have noted a few things.

I have 19 wards in the city and thousands of crime points.
Maximum Number of Records Returned by Server is set to 15,000 for crime points.

I am using  <geometryservice>http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer</geometryservice>

When I select multiple wards with a small geographiphic footprint using the graphic tool and run the spatial search against crimes I do NOT receive the error (see capture1).

If I select multiple wards with a larger geographiphic extent using the graphic tool and run the spatial search against crimes I DO receive the error (see capture2).

I first thought it was the number of wards selected (>3) was causing the error, but it's not the case.

Any thoughts are appreciated.

Xander
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: rscheitlin

Xander,

   The likely issue is that the merged wards geometry is not a good geometry. So here is what I mean, to perform a query based on multiple polygon geometries I have a function that unions the geometries on the client side taking the rings of the polygons and adding them to a new polygon geometry and that new poly is what is used for the query. So it could be that if you have overlaps or gaps or slivers in your wards that this is causing an issue.

View solution in original post

0 Kudos
5 Replies
by Anonymous User
Not applicable
Original User: rscheitlin

Xander,

   The likely issue is that the merged wards geometry is not a good geometry. So here is what I mean, to perform a query based on multiple polygon geometries I have a function that unions the geometries on the client side taking the rings of the polygons and adding them to a new polygon geometry and that new poly is what is used for the query. So it could be that if you have overlaps or gaps or slivers in your wards that this is causing an issue.
0 Kudos
xanderm
Occasional Contributor
I'll check for gaps. I know I don't have slivers.

thank you for the immediate response.
0 Kudos
by Anonymous User
Not applicable
Original User: rscheitlin

Xander,

   I am also thinking that I might need to call a simplify on the unioned geometry before using it. Would you mind providing me with an email and I can send you a beta version of 2.3.1 of the widget to test if it fixes your issue? With the hundreds of people wanting help from me, I don't post my email on the forum.
0 Kudos
xanderm
Occasional Contributor
0 Kudos
by Anonymous User
Not applicable
Original User: tsandeep

Hi Robert,
Thanks for the previous response on changing the default state in my enhanced search (in the forum Enhanced Search Widget 2.1, I'm writing here thinking this is for 2.3.x).
I have a question with graphical search. When I identify a polygon layer, the info popup result is shown at the center of the geometry, i think this is because of the getGeomCenter function (correct me). I am wondering how can I make the info pop up displayed at the point where I have clicked instead at the center of the geometry. I could use single part polygons instead of multi part which may help a little but I would like to know is there a way to change it in the code. Please let me know what you think.
Thanks,
0 Kudos